Documentation ¶
Index ¶
- Variables
- func IsNonceTooLow(err error) bool
- func WrapError(err error) error
- type Client
- func (c *Client) CheckHash(hash string) (status int, blocknumber int, err error)
- func (c *Client) EthBlockNumber() (id int, err error)
- func (c *Client) EthGasPrice() (gasPrice big.Int, err error)
- func (c *Client) EthGetBalance(address, block string) (balance big.Int, err error)
- func (c *Client) EthGetBlockByNumber(number int, withTransactions bool) (block *ethrpc.Block, err error)
- func (c *Client) EthGetTransactionByHash(hash string) (tx *ethrpc.Transaction, err error)
- func (c *Client) EthGetTransactionCount(address, block string) (no int, err error)
- func (c *Client) EthGetTransactionReceipt(hash string) (tx *ethrpc.TransactionReceipt, err error)
- func (c *Client) EthSendRawTransaction(sign string) (hash string, err error)
- func (c *Client) EthSendTransaction(transaction ethrpc.T) (hash string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Prec, _ = new(big.Float).SetString(new(big.Int).Exp(big.NewInt(10), big.NewInt(18), nil).String())
View Source
var ZeroAddress = common.HexToAddress("0x0000000000000000000000000000000000000000")
Functions ¶
func IsNonceTooLow ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) EthBlockNumber ¶
func (*Client) EthGetBalance ¶
func (*Client) EthGetBlockByNumber ¶
func (*Client) EthGetTransactionByHash ¶
func (c *Client) EthGetTransactionByHash(hash string) (tx *ethrpc.Transaction, err error)
func (*Client) EthGetTransactionCount ¶
func (*Client) EthGetTransactionReceipt ¶
func (c *Client) EthGetTransactionReceipt(hash string) (tx *ethrpc.TransactionReceipt, err error)
func (*Client) EthSendRawTransaction ¶
Click to show internal directories.
Click to hide internal directories.