{"id":13414013,"url":"https://github.com/onrik/ethrpc","last_synced_at":"2025-04-04T19:14:07.168Z","repository":{"id":46139872,"uuid":"79898412","full_name":"onrik/ethrpc","owner":"onrik","description":"Golang client for ethereum json rpc api","archived":false,"fork":false,"pushed_at":"2024-01-05T10:05:59.000Z","size":81,"stargazers_count":265,"open_issues_count":13,"forks_count":105,"subscribers_count":16,"default_branch":"main","last_synced_at":"2024-07-31T20:53:14.827Z","etag":null,"topics":["ethereum","go","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/onrik.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":"2017-01-24T09:47:00.000Z","updated_at":"2024-06-22T11:12:54.000Z","dependencies_parsed_at":"2024-06-22T15:01:15.118Z","dependency_job_id":null,"html_url":"https://github.com/onrik/ethrpc","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fethrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fethrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fethrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fethrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onrik","download_url":"https://codeload.github.com/onrik/ethrpc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"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","go","golang"],"created_at":"2024-07-30T20:01:55.205Z","updated_at":"2025-04-04T19:14:07.152Z","avatar_url":"https://github.com/onrik.png","language":"Go","readme":"# Ethrpc\n[![Tests](https://github.com/onrik/ethrpc/workflows/Tests/badge.svg)](https://github.com/onrik/ethrpc/actions)\n[![Coverage Status](https://coveralls.io/repos/github/onrik/ethrpc/badge.svg?branch=master)](https://coveralls.io/github/onrik/ethrpc?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/onrik/ethrpc)](https://goreportcard.com/report/github.com/onrik/ethrpc)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/onrik/ethrpc)](https://pkg.go.dev/github.com/onrik/ethrpc)\n\nGolang client for ethereum [JSON RPC API](https://github.com/ethereum/wiki/wiki/JSON-RPC).\n\nBeer for author by Ethereum: 0xf4144308d6D67A1F00a61A596c0eB7B08411344a\n\n\n#### Usage:\n```go\npackage main\n\nimport (\n    \"log\"\n\n    \"github.com/onrik/ethrpc\"\n)\n\nfunc main() {\n    client := ethrpc.New(\"http://127.0.0.1:8545\")\n\n    version, err := client.Web3ClientVersion()\n    if err != nil {\n        log.Println(err)\n        return\n    }\n    log.Println(version)\n\n    // Send 1 eth\n    txid, err := client.EthSendTransaction(ethrpc.T{\n        From:  \"0x6247cf0412c6462da2a51d05139e2a3c6c630f0a\",\n        To:    \"0xcfa202c4268749fbb5136f2b68f7402984ed444b\",\n        Value: ethrpc.Eth1(),\n    })\n    if err != nil {\n        log.Println(err)\n        return\n    }\n    log.Println(txid)\n}\n```\n\n#### Methods:\n\n- [x] web3_clientVersion\n- [x] web3_sha3\n- [x] net_version\n- [x] net_peerCount\n- [x] net_listening\n- [x] eth_protocolVersion\n- [x] eth_syncing\n- [x] eth_coinbase\n- [x] eth_mining\n- [x] eth_hashrate\n- [x] eth_gasPrice\n- [x] eth_accounts\n- [x] eth_blockNumber\n- [x] eth_getBalance\n- [x] eth_getStorageAt\n- [x] eth_getTransactionCount\n- [x] eth_getBlockTransactionCountByHash\n- [x] eth_getBlockTransactionCountByNumber\n- [x] eth_getUncleCountByBlockHash\n- [x] eth_getUncleCountByBlockNumber\n- [x] eth_getCode\n- [x] eth_sign\n- [x] eth_sendTransaction\n- [x] eth_sendRawTransaction\n- [x] eth_call\n- [x] eth_estimateGas\n- [x] eth_getBlockByHash\n- [x] eth_getBlockByNumber\n- [x] eth_getTransactionByHash\n- [x] eth_getTransactionByBlockHashAndIndex\n- [x] eth_getTransactionByBlockNumberAndIndex\n- [x] eth_getTransactionReceipt\n- [ ] eth_pendingTransactions\n- [ ] eth_getUncleByBlockHashAndIndex\n- [ ] eth_getUncleByBlockNumberAndIndex\n- [x] eth_getCompilers (DEPRECATED)\n- [ ] eth_compileLLL (DEPRECATED)\n- [ ] eth_compileSolidity (DEPRECATED)\n- [ ] eth_compileSerpent (DEPRECATED)\n- [x] eth_newFilter\n- [x] eth_newBlockFilter\n- [x] eth_newPendingTransactionFilter\n- [x] eth_uninstallFilter\n- [x] eth_getFilterChanges\n- [x] eth_getFilterLogs\n- [x] eth_getLogs\n- [ ] eth_getWork\n- [ ] eth_submitWork\n- [ ] eth_submitHashrate\n- [ ] eth_getProof\n- [ ] db_putString\n- [ ] db_getString\n- [ ] db_putHex\n- [ ] db_getHex\n- [ ] shh_post\n- [ ] shh_version\n- [ ] shh_newIdentity\n- [ ] shh_hasIdentity\n- [ ] shh_newGroup\n- [ ] shh_addToGroup\n- [ ] shh_newFilter\n- [ ] shh_uninstallFilter\n- [ ] shh_getFilterChanges\n- [ ] shh_getMessages\n","funding_links":[],"categories":["Third-party APIs","第三方API`第三方API 汇总`","第三方api","第三方API","Utility","\u003cspan id=\"第三方api-third-party-apis\"\u003e第三方API Third-party APIs\u003c/span\u003e"],"sub_categories":["Utility/Miscellaneous","查询语","HTTP Clients","Advanced Console UIs","实用程序/Miscellaneous","交流","Fail injection","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonrik%2Fethrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonrik%2Fethrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonrik%2Fethrpc/lists"}