Documentation
¶
Index ¶
- type Client
- func (c *Client) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (c *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (c *Client) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (c *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (c *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (c *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type ETHClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) EstimateGas ¶
func (*Client) HeaderByNumber ¶
func (*Client) PendingNonceAt ¶
func (*Client) SuggestGasPrice ¶
func (*Client) TransactionByHash ¶
type ETHClient ¶
type ETHClient interface { HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) SuggestGasPrice(ctx context.Context) (*big.Int, error) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error) }
Click to show internal directories.
Click to hide internal directories.