Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EthClient ¶
type EthClient interface { bind.ContractBackend ReceiptFetcher HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error) BlockInfoByNumber(ctx context.Context, number *big.Int) (*BlockInfo, error) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) }
type RPCEthClient ¶
func NewRPCEthClient ¶
func NewRPCEthClient(url string) (*RPCEthClient, error)
func (*RPCEthClient) BlockInfoByNumber ¶
type ReceiptFetcher ¶
type SimulatedEthClient ¶
type SimulatedEthClient struct {
*backends.SimulatedBackend
}
func (*SimulatedEthClient) BlockInfoByNumber ¶
Click to show internal directories.
Click to hide internal directories.