eth

package
v0.0.0-...-ff649a9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block eth.Blockchain

Block .

type CallSite

type CallSite struct {
	From     string `json:"from,omitempty"`
	To       string `json:"to,omitempty"`
	Value    string `json:"value,omitempty"`
	GasPrice string `json:"gasPrice,omitempty"`
	Gas      string `json:"gas,omitempty"`
	Data     string `json:"data,omitempty"`
}

CallSite .

type Client

type Client interface {
	BlockNumber() (int64, error)
	BlockByNumber(number int64, block interface{}) error
	BalanceOf(address string, asset string) (string, error)
	SendTransaction(data []byte) (string, error)
	GetTransactionReceipt(tx string) (val *TransactionReceipt, err error)
}

Client .

func New

func New(url string) Client

New create eth rpc client with remote node url

type Transaction

type Transaction eth.Transaction

Transaction .

type TransactionReceipt

type TransactionReceipt eth.TransactionReceipt

TransactionReceipt .

Jump to

Keyboard shortcuts

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