Skip to content

neko/ding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ding logo

small rust monitor for famous fox ding! transactions on solana.

it listens to helius enhanced websockets, decodes mpl core createv2 instruction data, fetches the token metadata uri for the image, resolves primary sns names when present, and sends a compact discord embed.

Deploy on Railway

setup

copy .env.example to .env and fill in the values.

HELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=<API_KEY>
HELIUS_WS_URL=wss://mainnet.helius-rpc.com/?api-key=<API_KEY>
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/<ID>/<TOKEN>

railway Deploy on Railway

before the first deploy, add the required service variables from .env.example:

HELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=<API_KEY>
HELIUS_WS_URL=wss://mainnet.helius-rpc.com/?api-key=<API_KEY>
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/<ID>/<TOKEN>

railway uses railway.json to build with railpack and keep the monitor running as a long-lived worker.

run

cargo run --release

send a test webhook from the default example tx:

cargo run -- -t

send a test webhook from a specific tx:

cargo run -- -t <signature>

env

HELIUS_RPC_URL is used for test tx fetches and sns account lookups.

HELIUS_WS_URL is used for enhanced websocket transaction subscriptions.

DISCORD_WEBHOOK_URL is where ding embeds are sent.

DING_TEST_SIGNATURE optionally overrides the default test tx.

About

monitor famous fox "ding!"(s) onchain

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages