Skip to content

A custom transaction watcher for evm. Watch Token Transfers and Native Transfers.

Notifications You must be signed in to change notification settings

AfroLabsInc/trx-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallet Watcher

This is an abstract code to be integrated in the wallet wise app

get started

(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 👇

const watchList = [
  {
    address: "0x74....",
    blockchains: {
      mainnet: {
        subscribeToNativeTransfer: true,
        selectedTokens: [
          {
            contractAddress: "0x53...",
            tokenName: "Shiba Inu",
          },
          {
            contractAddress: "0x53...",
            tokenName: "Tether USD",
          },
        ],
      },
      polygon: null,
    },
  },

  // more
];

About

A custom transaction watcher for evm. Watch Token Transfers and Native Transfers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published