Documentation ¶
Index ¶
- type Client
- func (cc *Client) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (cc *Client) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (cc *Client) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (cc *Client) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (cc *Client) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (cc *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (cc *Client) GetBaseFeeFromBlock(blockNumber *big.Int) (string, error)
- func (cc *Client) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (cc *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (cc *Client) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (cc *Client) ToBigInt() *big.Int
- func (cc *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (cc *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type FeeHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ChainID uint64 // contains filtered or unexported fields }
func (*Client) BlockByHash ¶
func (*Client) BlockByNumber ¶
func (*Client) CallContract ¶
func (*Client) FilterLogs ¶
func (*Client) GetBaseFeeFromBlock ¶ added in v0.109.1
func (*Client) HeaderByHash ¶
func (*Client) HeaderByNumber ¶
func (*Client) TransactionByHash ¶
type FeeHistory ¶ added in v0.109.1
type FeeHistory struct {
BaseFeePerGas []string `json:"baseFeePerGas"`
}
Click to show internal directories.
Click to hide internal directories.