An open API service indexing awesome lists of open source software.

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.

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
];
```