{"id":28962717,"url":"https://github.com/rafaelpil/axum-ethers","last_synced_at":"2026-05-16T08:32:42.860Z","repository":{"id":300633107,"uuid":"1006679430","full_name":"RafaelPil/axum-ethers","owner":"RafaelPil","description":"Rust API built with Axum and ethers-rs to fetch ETH and ERC-20 token balances on Ethereum via Alchemy.","archived":false,"fork":false,"pushed_at":"2025-06-22T19:35:38.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T20:32:23.761Z","etag":null,"topics":["alchemy","alchemyapi","api","axum","axum-server","erc-20","eth","ethereum","ethers","rest-api","rust","rust-crate","rust-lang","rustapi"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RafaelPil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-22T19:26:21.000Z","updated_at":"2025-06-22T19:40:17.000Z","dependencies_parsed_at":"2025-06-22T20:43:02.565Z","dependency_job_id":null,"html_url":"https://github.com/RafaelPil/axum-ethers","commit_stats":null,"previous_names":["rafaelpil/axum-ethers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RafaelPil/axum-ethers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelPil%2Faxum-ethers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelPil%2Faxum-ethers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelPil%2Faxum-ethers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelPil%2Faxum-ethers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RafaelPil","download_url":"https://codeload.github.com/RafaelPil/axum-ethers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelPil%2Faxum-ethers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270771554,"owners_count":24642333,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alchemy","alchemyapi","api","axum","axum-server","erc-20","eth","ethereum","ethers","rest-api","rust","rust-crate","rust-lang","rustapi"],"created_at":"2025-06-24T03:11:51.665Z","updated_at":"2026-05-16T08:32:42.776Z","avatar_url":"https://github.com/RafaelPil.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# axum-ethers\n\nA simple Rust web API built with [Axum](https://github.com/tokio-rs/axum) and [ethers-rs](https://github.com/gakonst/ethers-rs) to fetch Ethereum ETH and ERC-20 token balances using Alchemy’s JSON-RPC API.\n\n## Features\n\n- Fetch ETH balance for any Ethereum address\n- Fetch ERC-20 token balances via Alchemy API\n- Built with async Rust for high performance and safety\n\n## Getting Started\n\n### Prerequisites\n\n- Rust (recommended latest stable)\n- An [Alchemy API key](https://dashboard.alchemy.com/) with Ethereum Mainnet access\n\n### Setup\n\n1. Clone the repository\n\n   ```bash\n   git clone https://github.com/RafaelPil/axum-ethers.git\n   cd axum-ethers\n   ```\n2. Create a .env file in the project root with your Alchemy API key:\n\n   ```bash\n   ETH_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY\n   ```\n3. Build and run the server:\n   ```bash\n   cargo run\n   ```\n4. The server will run on http://localhost:3000\n\n### Usage\n\n- Get ETH balance for an address:\n   ```bash\n   curl http://localhost:3000/eth/balance/address\n   ```\n\n- Get ERC-20 token balances for an address:\n   ```bash\n   curl curl http://localhost:3000/eth/tokens/address\n   ```\n\n### Project Structure\n- main.rs: app entry point, routing setup\n- handlers.rs: request handlers for balances\n- .env: environment variables (not committed to Git)\n\n### Notes\n- Make sure .env is included in .gitignore to keep your API keys private.\n- This project uses Alchemy’s API; ensure your API key has the necessary permissions.\n- Extend or customize the token balance parsing to fit your needs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelpil%2Faxum-ethers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelpil%2Faxum-ethers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelpil%2Faxum-ethers/lists"}