{"id":23239150,"url":"https://github.com/th4s/ethane","last_synced_at":"2025-07-20T16:03:39.785Z","repository":{"id":53768418,"uuid":"322717333","full_name":"th4s/ethane","owner":"th4s","description":"Ethane is an alternative web3 implementation with the aim of being slim and simple.","archived":false,"fork":false,"pushed_at":"2021-05-13T15:42:37.000Z","size":119,"stargazers_count":15,"open_issues_count":3,"forks_count":9,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2025-07-14T14:37:36.706Z","etag":null,"topics":["ethereum","jsonrpc","rpc","simple","web3"],"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/th4s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-18T22:22:24.000Z","updated_at":"2023-11-05T05:02:23.000Z","dependencies_parsed_at":"2022-09-01T13:52:25.859Z","dependency_job_id":null,"html_url":"https://github.com/th4s/ethane","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/th4s/ethane","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th4s%2Fethane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th4s%2Fethane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th4s%2Fethane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th4s%2Fethane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/th4s","download_url":"https://codeload.github.com/th4s/ethane/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th4s%2Fethane/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266152253,"owners_count":23884473,"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":["ethereum","jsonrpc","rpc","simple","web3"],"created_at":"2024-12-19T04:22:03.425Z","updated_at":"2025-07-20T16:03:39.763Z","avatar_url":"https://github.com/th4s.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ethane \n\n**THIS PROJECT IS CONTINUED AT [zgendao/ethane](https://github.com/zgendao/ethane).**\n\nEthane is an alternative web3 implementation with the aim of being slim and simple.\nIt does not depend on futures or any executors. It currently supports http and\nwebsockets (both plain and TLS) and inter process communication via Unix domain sockets (Unix only). For\nhttp and websockets it also supports Http Basic and Bearer Authentication.\n\n**This library is very raw. Expect to find some bugs and use at your own risk!**\n\nPlease also have a look at the [documentation](https://docs.rs/ethane).\nIf you just want to use this crate, it is also available on crates.io\n([Ethane](https://crates.io/crates/ethane)). If you find any bugs please\ndo not hesitate to open an issue.\n\n## How to use this library\n\nIn order to get started, create a connector over some transport.\nThe following examples show you how to make a request and how to subscribe to events.\n\n### Request over http\n```rust\nuse ethane::Connector;\nuse ethane::rpc::eth_get_balance;\nuse ethane::types::H160;\n\n// Start up connector\nlet node_endpoint = \"http://127.0.0.1:8545\";\nlet mut connector = Connector::http(node_endpoint, None).unwrap();\n\n// Make a request\nlet address = H160::zero();\nlet balance = connector.call(eth_get_balance(address, None)).unwrap();\n```\n\n### Starting a subscription over websocket\n```rust\nuse ethane::Connector;\nuse ethane::rpc::sub::eth_subscribe_new_pending_transactions;\n\n// Start up connector with websockets\nlet node_endpoint = \"ws://127.0.0.1:8546\";\nlet mut connector = Connector::websocket(node_endpoint, None).unwrap();\n\n// Subscribe to pending transactions\nlet mut tx_subscription = connector\n    .subscribe(eth_subscribe_new_pending_transactions()).unwrap();\n\n// Get next transaction item\nlet tx = tx_subscription.next_item().unwrap();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth4s%2Fethane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fth4s%2Fethane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth4s%2Fethane/lists"}