https://github.com/johnexzy/bloc-watcher
A custom transaction watcher for evm. Watch Token Transfers and Native Transfers.
https://github.com/johnexzy/bloc-watcher
evm-blockchain real-time transactions watcher webhooks websockets
Last synced: 4 months ago
JSON representation
A custom transaction watcher for evm. Watch Token Transfers and Native Transfers.
- Host: GitHub
- URL: https://github.com/johnexzy/bloc-watcher
- Owner: johnexzy
- Created: 2023-09-25T20:18:34.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-02T22:59:01.000Z (about 1 year ago)
- Last Synced: 2025-04-16T19:03:55.116Z (6 months ago)
- Topics: evm-blockchain, real-time, transactions, watcher, webhooks, websockets
- Language: TypeScript
- Homepage:
- Size: 1.02 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Wallet Watcher
This is an abstract code to be integrated in the wallet wise app
## get started
```js
(async () => {
new MainIndexer({
// array of chains
network: ["mainnet", "goerli"],// array of addresses to watch
watchList,// a webhook url for the Bloc Receiver
webHookUrl: "https://87f1-197-210-79-154.ngrok.io/webhook",
}).init();
})();
```Later on we'll implement a more robust `watchList` standard where addresss can be passed with its config and selection
example watchList structure 👇
```js
const watchList = [
{
address: "0x74....",
blockchains: {
mainnet: {
subscribeToNativeTransfer: true,
selectedTokens: [
{
contractAddress: "0x53...",
tokenName: "Shiba Inu",
},
{
contractAddress: "0x53...",
tokenName: "Tether USD",
},
],
},
polygon: null,
},
},// more
];
```