{"id":21184631,"url":"https://github.com/getamis/eth-client","last_synced_at":"2025-07-10T00:33:50.483Z","repository":{"id":57500323,"uuid":"107509296","full_name":"getamis/eth-client","owner":"getamis","description":"A Golang client library for communicating with Ethereum RPC server","archived":false,"fork":false,"pushed_at":"2017-12-11T08:02:50.000Z","size":60642,"stargazers_count":55,"open_issues_count":4,"forks_count":14,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-06-19T01:54:58.019Z","etag":null,"topics":["ethereum","ethereum-client","golang","json-rpc-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getamis.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}},"created_at":"2017-10-19T06:55:12.000Z","updated_at":"2024-05-03T01:14:54.000Z","dependencies_parsed_at":"2022-08-30T20:50:10.352Z","dependency_job_id":null,"html_url":"https://github.com/getamis/eth-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getamis%2Feth-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getamis%2Feth-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getamis%2Feth-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getamis%2Feth-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getamis","download_url":"https://codeload.github.com/getamis/eth-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225606545,"owners_count":17495551,"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","ethereum-client","golang","json-rpc-client"],"created_at":"2024-11-20T18:10:16.000Z","updated_at":"2024-11-20T18:10:16.697Z","avatar_url":"https://github.com/getamis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"eth-client\n==========\n\n[![Travis](https://img.shields.io/travis/rust-lang/rust.svg)](https://travis-ci.org/getamis/eth-client)\n[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)\n[![Go Report Card](https://goreportcard.com/badge/github.com/getamis/eth-client)](https://goreportcard.com/report/github.com/getamis/eth-client)\n\nA Golang client library to communicate with Ethereum RPC server.\n* Implements most of JSON-RPC methods and several client-specific methods.\n* Provides a high-level interface to **propose/get validators** on Istanbul blockchain.\n* Provides a high-level interface to **create private contracts** on Quorum blockchain.\n\nUsage\n-----\n```golang\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/getamis/eth-client/client\"\n)\n\nfunc main() {\n\turl := \"http://127.0.0.1:8545\"\n\tclient, err := client.Dial(url)\n\tif err != nil {\n\t\tfmt.Println(\"Failed to dial, url: \", url, \", err: \", err)\n\t\treturn\n\t}\n\n\terr = client.StartMining(context.Background())\n\tif err != nil {\n\t\tfmt.Println(\"Failed to start mining, err: \", err)\n\t\treturn\n\t}\n\tfmt.Println(\"start mining\")\n}\n\n```\n\nImplemented JSON-RPC methods\n----------------------------\n\n* admin_addPeer\n* admin_adminPeers\n* admin_nodeInfo\n* eth_blockNumber\n* eth_sendRawTransaction\n* eth_getBlockByHash\n* eth_getBlockByNumber\n* eth_getBlockByHash\n* eth_getBlockByNumber\n* eth_getTransactionByHash\n* eth_getBlockTransactionCountByHash\n* eth_getTransactionByBlockHashAndIndex\n* eth_getTransactionReceipt\n* eth_syncing\n* eth_getBalance\n* eth_getStorageAt\n* eth_getCode\n* eth_getBlockTransactionCountByNumber\n* eth_call\n* eth_gasPrice\n* eth_estimateGas\n* eth_sendRawTransaction\n* miner_startMining\n* miner_stopMining\n* net_version\n* logs\n* newHeads\n* eth_getLogs\n\n### Istanbul-only JSON-RPC methods\nTo use these methods, make sure that\n* Server is running on [Istanbul consensus](https://github.com/ethereum/EIPs/issues/650).\n* Connect to server through `istanbul.Dial` function (not the original [Geth client](https://github.com/ethereum/go-ethereum/tree/master/ethclient)).\n\nMethods:\n\n* istanbul_getValidators\n* istanbul_propose\n\n### Quorum-only JSON-RPC methods\n\nTo use these methods, make sure that\n* Server is running on [Quorum blockchain](https://github.com/jpmorganchase/quorum/wiki)\n* Connect to server through `quorum.Dial` function (not the original [Geth client](https://github.com/ethereum/go-ethereum/tree/master/ethclient)).\n  \nMethods:\n\n* quorum_privateContract\n* quorum_contract\n\nContributing\n------------\n\nFeel free to contribute to this repository.\n\n1. Fork it!\n2. Create your feature branch: git checkout -b my-new-feature\n3. Commit your changes: git commit -am 'Add some feature'\n4. Push to the branch: git push origin my-new-feature\n5. Submit a pull request\n\nReference\n---------\n\n* https://github.com/ethereum/go-ethereum\n* https://github.com/ethereum/wiki/wiki/JSON-RPC\n* https://github.com/ethereum/EIPs/issues/650\n* https://github.com/jpmorganchase/quorum\n* https://github.com/getamis/istanbul-tools\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetamis%2Feth-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetamis%2Feth-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetamis%2Feth-client/lists"}