All Projects → getamis → eth-client

getamis / eth-client

Licence: LGPL-3.0 License
A Golang client library for communicating with Ethereum RPC server

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to eth-client

Android-Wallet-Token-ERC20
Android Wallet (Token ERC20)
Stars: ✭ 30 (-40%)
Mutual labels:  ethereum-client
JsonRpc.Standard
An asynchronous .NET Standard library for JSON RPC client & server implementation.
Stars: ✭ 27 (-46%)
Mutual labels:  json-rpc-client
jsonrpc2-zeromq-python
JSON-RPC 2.0 over ZeroMQ in Python
Stars: ✭ 52 (+4%)
Mutual labels:  json-rpc-client
ethereum
Drupal Ethereum module
Stars: ✭ 21 (-58%)
Mutual labels:  ethereum-client
ethereum-kit-ios
Comprehensive EVM SDK (ex: Ethereum, Binance Smart Chain) for iOS, implemented on Swift. Create wallets, watch wallets (read-only), sync transactions, filter transactions by type (erc20, bep20, swap transactions etc.), swap using native DEX protocols, easily extendable to work with custom smart contracts, and full support for EIP1159.
Stars: ✭ 148 (+196%)
Mutual labels:  ethereum-client
web3scala
Scala library for integration with Ethereum clients
Stars: ✭ 24 (-52%)
Mutual labels:  ethereum-client
Nethereum.UI.Wallet.Sample
Cross platform wallet example using Nethereum, Xamarin.Forms and MvvmCross
Stars: ✭ 77 (+54%)
Mutual labels:  ethereum-client
xmlrpcwsc-dotnet
XML-RPC Web Service Client C# implementation
Stars: ✭ 30 (-40%)
Mutual labels:  json-rpc-client
ethereum-php
Ethereum Client for PHP.
Stars: ✭ 50 (+0%)
Mutual labels:  ethereum-client
Aleth
Aleth – Ethereum C++ client, tools and libraries
Stars: ✭ 3,885 (+7670%)
Mutual labels:  ethereum-client
Ethlist
The Comprehensive Ethereum Reading List
Stars: ✭ 3,576 (+7052%)
Mutual labels:  ethereum-client
Webapiclient
An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously.
Stars: ✭ 1,618 (+3136%)
Mutual labels:  json-rpc-client

eth-client

Travis License: LGPL v3 Go Report Card

A Golang client library to communicate with Ethereum RPC server.

  • Implements most of JSON-RPC methods and several client-specific methods.
  • Provides a high-level interface to propose/get validators on Istanbul blockchain.
  • Provides a high-level interface to create private contracts on Quorum blockchain.

Usage

package main

import (
	"context"
	"fmt"

	"github.com/getamis/eth-client/client"
)

func main() {
	url := "http://127.0.0.1:8545"
	client, err := client.Dial(url)
	if err != nil {
		fmt.Println("Failed to dial, url: ", url, ", err: ", err)
		return
	}

	err = client.StartMining(context.Background())
	if err != nil {
		fmt.Println("Failed to start mining, err: ", err)
		return
	}
	fmt.Println("start mining")
}

Implemented JSON-RPC methods

  • admin_addPeer
  • admin_adminPeers
  • admin_nodeInfo
  • eth_blockNumber
  • eth_sendRawTransaction
  • eth_getBlockByHash
  • eth_getBlockByNumber
  • eth_getBlockByHash
  • eth_getBlockByNumber
  • eth_getTransactionByHash
  • eth_getBlockTransactionCountByHash
  • eth_getTransactionByBlockHashAndIndex
  • eth_getTransactionReceipt
  • eth_syncing
  • eth_getBalance
  • eth_getStorageAt
  • eth_getCode
  • eth_getBlockTransactionCountByNumber
  • eth_call
  • eth_gasPrice
  • eth_estimateGas
  • eth_sendRawTransaction
  • miner_startMining
  • miner_stopMining
  • net_version
  • logs
  • newHeads
  • eth_getLogs

Istanbul-only JSON-RPC methods

To use these methods, make sure that

Methods:

  • istanbul_getValidators
  • istanbul_propose

Quorum-only JSON-RPC methods

To use these methods, make sure that

Methods:

  • quorum_privateContract
  • quorum_contract

Contributing

Feel free to contribute to this repository.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].