web3-go

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 9 Imported by: 0

README

Examples

go run main.go --eth-client-url wss://mainnet.infura.io/ws getBlockNumber
go run main.go --eth-client-url ws://alethio-geth-trace:9546 getCode 0xb8c77482e45f1f44de1745f52c74426c631bdd52

structs

This package aims at defining a single source of data structures matching some of the parity JSONRPC responses

It currently supports the following calls:

  • eth_getBlockByNumber
  • eth_getTransactionReceipt
  • eth_getUncleByBlockHashAndIndex
  • trace_block
  • trace_replayBlockTransactions

validator

This tool is intended for validating the logical integrity of JSONRPC responses coming from parity.

Checking one block would involve the following steps:

  1. instantiate a new validator instance
  2. load all the JSONRPC responses into the validator
  3. call the Run() function which returns a boolean and an error

For more details, check the example function

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
provider/httprpc
Inspired by https://github.com/vektah/dataloaden with some tweaks
Inspired by https://github.com/vektah/dataloaden with some tweaks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL