{"id":50736864,"url":"https://github.com/satyakwok/evm-rust-lab","last_synced_at":"2026-06-10T14:32:04.299Z","repository":{"id":361928888,"uuid":"1256460167","full_name":"satyakwok/evm-rust-lab","owner":"satyakwok","description":"Practical Rust EVM examples using Alloy, revm, and real RPC workflows.","archived":false,"fork":false,"pushed_at":"2026-06-10T06:17:44.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T08:10:34.257Z","etag":null,"topics":["alloy-rs","blockchain-infrastructure","developer-tools","ethereum","evm","evm-compatible","json-rpc","protocol-engineering","revm","rpc","rust"],"latest_commit_sha":null,"homepage":"https://satyakwok.dev/projects","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/satyakwok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-01T19:54:40.000Z","updated_at":"2026-06-10T06:17:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/satyakwok/evm-rust-lab","commit_stats":null,"previous_names":["satyakwok/evm-rust-lab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/satyakwok/evm-rust-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyakwok%2Fevm-rust-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyakwok%2Fevm-rust-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyakwok%2Fevm-rust-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyakwok%2Fevm-rust-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satyakwok","download_url":"https://codeload.github.com/satyakwok/evm-rust-lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satyakwok%2Fevm-rust-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34157453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["alloy-rs","blockchain-infrastructure","developer-tools","ethereum","evm","evm-compatible","json-rpc","protocol-engineering","revm","rpc","rust"],"created_at":"2026-06-10T14:32:01.196Z","updated_at":"2026-06-10T14:32:04.275Z","avatar_url":"https://github.com/satyakwok.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# evm-rust-lab\n\nPractical Rust EVM examples using Alloy, revm, and real RPC workflows.\n\n[![CI](https://github.com/satyakwok/evm-rust-lab/actions/workflows/ci.yml/badge.svg)](https://github.com/satyakwok/evm-rust-lab/actions/workflows/ci.yml)\n![Rust](https://img.shields.io/badge/rust-stable-orange)\n![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue)\n![Status](https://img.shields.io/badge/status-experimental-yellow)\n\n`evm-rust-lab` is a hands-on Rust EVM infrastructure lab for developers who want to learn by running small, focused examples instead of starting from a large framework.\n\n## What You Can Do With It\n\n- Check whether an EVM RPC endpoint is reachable and responding.\n- Fetch chain ID, latest block number, latest block hash, and basic latency.\n- Decode ERC-20 `transfer(address,uint256)` calldata.\n- Read raw EVM storage slots.\n- Run a minimal local EVM transfer simulation with revm.\n\n## Quick Start\n\n```sh\ngit clone https://github.com/satyakwok/evm-rust-lab\ncd evm-rust-lab\ncp .env.example .env\nEVM_RPC_URL=https://ethereum.publicnode.com cargo run --example rpc_chain_health\n```\n\n## Example Output\n\n```text\nRPC URL: https://ethereum.publicnode.com\nlatency: 103 ms\nchain id: 1\nlatest block: ...\nlatest block hash: 0x...\nstatus: OK\n```\n\nBlock numbers, hashes, and latency will vary by network and RPC endpoint.\n\n## Current Examples\n\n| Example | What it demonstrates |\n| --- | --- |\n| `rpc_chain_health` | Checks whether an EVM-compatible RPC endpoint is reachable and responding. |\n| `rpc_fetch_block` | Fetches chain ID, latest block number, latest block hash, and timestamp. |\n| `abi_decode_erc20_transfer` | Decodes ERC-20 `transfer(address,uint256)` calldata. |\n| `storage_read_slot` | Reads a raw EVM storage slot through JSON-RPC. |\n| `revm_simple_transfer` | Runs a minimal local value transfer simulation with revm. |\n\n## Run Examples\n\n```sh\ncargo run --example rpc_chain_health\n```\n\n```sh\ncargo run --example rpc_fetch_block\n```\n\n```sh\ncargo run --example abi_decode_erc20_transfer\n```\n\n```sh\ncargo run --example storage_read_slot\n```\n\n```sh\ncargo run --example revm_simple_transfer\n```\n\n## Why This Exists\n\nMost EVM learning material starts at smart contracts or JavaScript tooling. This repo focuses on the lower-level Rust side: RPC calls, ABI decoding, storage reads, and execution simulation.\n\nThis repository is not a framework.\nIt is not a toy blockchain.\nIt is a collection of small, focused, working examples for developers who want to understand EVM infrastructure from the Rust side.\n\n## What This Repo Is\n\n- A practical Rust EVM infrastructure lab.\n- A collection of compile-correct examples.\n- A reference for developers learning Alloy, revm, and EVM RPC workflows.\n- A foundation for future EVM diagnostics tooling.\n\n## What This Repo Is Not\n\n- It is not a blockchain framework.\n- It is not a toy chain.\n- It is not a wallet, explorer, indexer, or production RPC service.\n- It is not tied to any single EVM network.\n\n## Who It Is For\n\n- Rust developers entering Ethereum/EVM infrastructure.\n- Web3 developers moving from JavaScript tooling to Rust.\n- Protocol and infrastructure engineers who want small runnable references.\n- Builders working on EVM-compatible chains, RPC tooling, explorers, or execution systems.\n\n## Requirements\n\n- Rust stable\n- Cargo\n- An EVM-compatible RPC endpoint\n\n## Configuration\n\nThe RPC examples read `EVM_RPC_URL` from `.env`:\n\n```sh\nEVM_RPC_URL=https://ethereum.publicnode.com\n```\n\nAny EVM-compatible RPC endpoint can be used:\n\n```sh\nEVM_RPC_URL=https://mainnet.base.org cargo run --example rpc_chain_health\n```\n\n```sh\nEVM_RPC_URL=https://arb1.arbitrum.io/rpc cargo run --example rpc_chain_health\n```\n\n## Roadmap\n\n- Add block movement checks.\n- Add RPC method compatibility checks.\n- Add JSON output mode.\n- Add optional CLI mode.\n- Add WebSocket health checks.\n- Add better examples for logs and event decoding.\n\n## Design Philosophy\n\n- Small examples over large abstractions.\n- Real RPC calls over mocked behavior.\n- Compile-correct code over pseudo-code.\n- Practical infrastructure workflows over theory.\n- Neutral examples that work with any EVM-compatible chain.\n\n## License\n\nLicensed under either of:\n\n- MIT, see `LICENSE-MIT`\n- Apache-2.0, see `LICENSE-APACHE`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatyakwok%2Fevm-rust-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatyakwok%2Fevm-rust-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatyakwok%2Fevm-rust-lab/lists"}