Skip to content

A wallet bot for cosmos and EVM chains, that will send alerts over a slack webhook.

Notifications You must be signed in to change notification settings

validaoxyz/wallet-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

wallet-bot

This script continuously monitors a range of blockchain wallets, across (currently) ETH and cosmos.

This can be used to track balances of an operator's relayers, restake wallets, and EVM accounts.

Additionally, it will alert if there are problems with the specified RPC endpoint.

networks.json includes the following information about each network:

  • identifier: the name of the network, as it is indexed on cosmos.directory
  • endpoint: optionally specify which endpoint to use
  • walletAddress: the wallet address
  • minBalance: the amount below which an account will be considered as low on funds, and an alert sent on Slack
  • failureThreshold: the number of hours of unsuccessful requests, after which we will be sent an alert of RPC issues over Slack
  • currencyUnit denom: the denomination of the relevant coin. This would be e.g. uatom, aevmos, or wei
  • priceSource: the name to use when getting the price to calculate the value in alerts through the coingecko API

Running it

To run it, first specify your slack webhooks in WebhookBalance WebhookRPC. These will be used to send wallet alerts, and rpc failure alerts, respectively.

Then, simply run it:

go build check_balances.go
./check_balances

About

A wallet bot for cosmos and EVM chains, that will send alerts over a slack webhook.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages