Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { TransactionReceiptWithBlockNumber( ctx context.Context, hash common.Hash) (*RPCTransactionReceipt, error) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) bind.ContractBackend }
Interface can be implemented to provide an Ethereum rpc client.
type RPCClient ¶
RPCClient wraps the high level ethclient, extending it with more functions. Implements Interface.
func (*RPCClient) TransactionReceiptWithBlockNumber ¶
func (rpc *RPCClient) TransactionReceiptWithBlockNumber( ctx context.Context, hash common.Hash) (*RPCTransactionReceipt, error)
TransactionReceiptWithBlockNumber is like rpc.TransactionReceipt, but exposes the block number as well. If no receipt was found, `nil, nil` is returned.
type RPCTransactionReceipt ¶
RPCTransactionReceipt is a receipt extended with the block number.
func (*RPCTransactionReceipt) UnmarshalJSON ¶
func (rpcTR *RPCTransactionReceipt) UnmarshalJSON(msg []byte) error
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.