{"id":25561947,"url":"https://github.com/0xvv/snowsight-rs","last_synced_at":"2026-01-31T00:35:18.712Z","repository":{"id":132215588,"uuid":"502725357","full_name":"0xvv/snowsight-rs","owner":"0xvv","description":"Basic example to connect to snowsight mempool streaming service in Rust","archived":false,"fork":false,"pushed_at":"2023-05-16T09:03:43.000Z","size":12,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:14:57.127Z","etag":null,"topics":["avalanche","mempool","mev","snowsight"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xvv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-12T20:51:56.000Z","updated_at":"2024-03-28T20:48:37.000Z","dependencies_parsed_at":"2024-03-30T18:48:25.646Z","dependency_job_id":null,"html_url":"https://github.com/0xvv/snowsight-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvv%2Fsnowsight-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvv%2Fsnowsight-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvv%2Fsnowsight-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvv%2Fsnowsight-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xvv","download_url":"https://codeload.github.com/0xvv/snowsight-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525138,"owners_count":21118619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avalanche","mempool","mev","snowsight"],"created_at":"2025-02-20T18:37:04.733Z","updated_at":"2026-01-31T00:35:18.669Z","avatar_url":"https://github.com/0xvv.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snowsight-rs\n\nBasic Rust example of a client for snowsight Avalanche mempool streaming service.\nThis uses `tokio-tungstenite` for the websocket, `ethers-rs` and `cast` to interact with the chain and `chacha20poly1305` for private key encryption.\n\nThis contains examples for:\n- Connecting to the websocket and receiving transactions\n- Paying the snowsight fee for a given tier\n- Using the transaction propagator \n \nThis could be used as a basis for a bot, although private key management should be improved.\n\n### Running the code\n\nYou should change the NONCE constant at line 14 in `main.rs` before use.\n\nYou can choose to include the line to pay the fee or not (line 35 in `main.rs`).\nPaying for the trial tier (0) costs a couple cents as of writing this.\n\nYou can now compile the code, during compilation keep reading.\n\nSet the env var `BOT_PWD` with a 32 chars long password to encrypt and decrypt the private key.\n\nSet the env var `RPC_URL` to an Avalanche mainnet RPC.\n\nYou can then run : \n\n```shell\nsnowsight-rs \u003cprivate-key\u003e\n```\nYour private key will be encrypted and stored in the home directory for later use.\n\nThen run the code to see the transactions stream.\n```shell\nsnowsight-rs \n```\n\nThe code is under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xvv%2Fsnowsight-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xvv%2Fsnowsight-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xvv%2Fsnowsight-rs/lists"}