Documentation ¶
Index ¶
- type Client
- func (e *Client) Balance(ctx context.Context, address types.Address) (*big.Int, error)
- func (e *Client) Block(ctx context.Context) (*types.Block, error)
- func (e *Client) BlockNumber(ctx context.Context) (*big.Int, error)
- func (e *Client) Call(ctx context.Context, call types.Call) ([]byte, error)
- func (e *Client) CallBlocks(ctx context.Context, call types.Call, blocks []int64) ([][]byte, error)
- func (e *Client) FilterLogs(ctx context.Context, query types.FilterLogsQuery) ([]types.Log, error)
- func (e *Client) MultiCall(ctx context.Context, calls []types.Call) ([][]byte, error)
- func (e *Client) SendTransaction(ctx context.Context, transaction *types.Transaction) (*types.Hash, error)
- func (e *Client) Storage(ctx context.Context, address types.Address, key types.Hash) ([]byte, error)
- type Key
- func (k *Key) Address() types.Address
- func (k *Key) SignHash(hash types.Hash) (*types.Signature, error)
- func (k *Key) SignMessage(data []byte) (*types.Signature, error)
- func (k *Key) SignTransaction(tx *types.Transaction) error
- func (k *Key) VerifyHash(hash types.Hash, sig types.Signature) bool
- func (k *Key) VerifyMessage(data []byte, sig types.Signature) bool
- type RPC
- func (r *RPC) Accounts(ctx context.Context) ([]types.Address, error)
- func (r *RPC) BlockByHash(ctx context.Context, hash types.Hash, full bool) (*types.Block, error)
- func (r *RPC) BlockByNumber(ctx context.Context, number types.BlockNumber, full bool) (*types.Block, error)
- func (r *RPC) BlockNumber(ctx context.Context) (*big.Int, error)
- func (r *RPC) Call(ctx context.Context, call types.Call, block types.BlockNumber) ([]byte, error)
- func (r *RPC) ChainID(ctx context.Context) (uint64, error)
- func (r *RPC) EstimateGas(ctx context.Context, call types.Call, block types.BlockNumber) (uint64, error)
- func (r *RPC) GasPrice(ctx context.Context) (*big.Int, error)
- func (r *RPC) GetBalance(ctx context.Context, address types.Address, block types.BlockNumber) (*big.Int, error)
- func (r *RPC) GetBlockTransactionCountByHash(ctx context.Context, hash types.Hash) (uint64, error)
- func (r *RPC) GetBlockTransactionCountByNumber(ctx context.Context, number types.BlockNumber) (uint64, error)
- func (r *RPC) GetCode(ctx context.Context, account types.Address, block types.BlockNumber) ([]byte, error)
- func (r *RPC) GetLogs(ctx context.Context, query types.FilterLogsQuery) ([]types.Log, error)
- func (r *RPC) GetStorageAt(ctx context.Context, account types.Address, key types.Hash, ...) (*types.Hash, error)
- func (r *RPC) GetTransactionByBlockHashAndIndex(ctx context.Context, hash types.Hash, index uint64) (*types.OnChainTransaction, error)
- func (r *RPC) GetTransactionByBlockNumberAndIndex(ctx context.Context, number types.BlockNumber, index uint64) (*types.OnChainTransaction, error)
- func (r *RPC) GetTransactionByHash(ctx context.Context, hash types.Hash) (*types.OnChainTransaction, error)
- func (r *RPC) GetTransactionCount(ctx context.Context, account types.Address, block types.BlockNumber) (uint64, error)
- func (r *RPC) GetTransactionReceipt(ctx context.Context, hash types.Hash) (*types.TransactionReceipt, error)
- func (r *RPC) GetUncleCountByBlockHash(ctx context.Context, hash types.Hash) (uint64, error)
- func (r *RPC) GetUncleCountByBlockNumber(ctx context.Context, number types.BlockNumber) (uint64, error)
- func (r *RPC) MaxPriorityFeePerGas(ctx context.Context) (*big.Int, error)
- func (r *RPC) SendRawTransaction(ctx context.Context, data []byte) (*types.Hash, error)
- func (r *RPC) SendTransaction(ctx context.Context, tx types.Transaction) (*types.Hash, error)
- func (r *RPC) Sign(ctx context.Context, account types.Address, data []byte) (*types.Signature, error)
- func (r *RPC) SignTransaction(ctx context.Context, tx types.Transaction) ([]byte, *types.Transaction, error)
- func (r *RPC) SubscribeLogs(ctx context.Context, query types.FilterLogsQuery) (chan types.Log, error)
- func (r *RPC) SubscribeNewHeads(ctx context.Context) (chan types.Block, error)
- func (r *RPC) SubscribeNewPendingTransactions(ctx context.Context) (chan types.Hash, error)
- type Recoverer
- func (r *Recoverer) Recover(_ context.Context, _ string, p datapoint.Point, _ types.Signature) (*types.Address, error)
- func (r *Recoverer) RecoverHash(hash types.Hash, sig types.Signature) (*types.Address, error)
- func (r *Recoverer) RecoverMessage(data []byte, sig types.Signature) (*types.Address, error)
- func (r *Recoverer) RecoverTransaction(tx *types.Transaction) (*types.Address, error)
- func (r *Recoverer) Supports(_ context.Context, _ datapoint.Point) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) BlockNumber ¶ added in v0.5.0
func (*Client) CallBlocks ¶ added in v0.5.0
func (*Client) FilterLogs ¶ added in v0.7.1
func (*Client) SendTransaction ¶
type Key ¶ added in v0.10.0
func (*Key) SignMessage ¶ added in v0.10.0
func (*Key) SignTransaction ¶ added in v0.10.0
func (k *Key) SignTransaction(tx *types.Transaction) error
func (*Key) VerifyHash ¶ added in v0.10.0
type RPC ¶ added in v0.10.0
func (*RPC) BlockByHash ¶ added in v0.10.0
func (*RPC) BlockByNumber ¶ added in v0.10.0
func (*RPC) BlockNumber ¶ added in v0.10.0
func (*RPC) EstimateGas ¶ added in v0.10.0
func (*RPC) GetBalance ¶ added in v0.10.0
func (*RPC) GetBlockTransactionCountByHash ¶ added in v0.10.0
func (*RPC) GetBlockTransactionCountByNumber ¶ added in v0.10.0
func (*RPC) GetStorageAt ¶ added in v0.10.0
func (*RPC) GetTransactionByBlockHashAndIndex ¶ added in v0.10.0
func (*RPC) GetTransactionByBlockNumberAndIndex ¶ added in v0.10.0
func (r *RPC) GetTransactionByBlockNumberAndIndex(ctx context.Context, number types.BlockNumber, index uint64) (*types.OnChainTransaction, error)
func (*RPC) GetTransactionByHash ¶ added in v0.10.0
func (*RPC) GetTransactionCount ¶ added in v0.10.0
func (*RPC) GetTransactionReceipt ¶ added in v0.10.0
func (*RPC) GetUncleCountByBlockHash ¶ added in v0.10.0
func (*RPC) GetUncleCountByBlockNumber ¶ added in v0.10.0
func (*RPC) MaxPriorityFeePerGas ¶ added in v0.10.0
func (*RPC) SendRawTransaction ¶ added in v0.10.0
func (*RPC) SendTransaction ¶ added in v0.10.0
func (*RPC) SignTransaction ¶ added in v0.10.0
func (r *RPC) SignTransaction(ctx context.Context, tx types.Transaction) ([]byte, *types.Transaction, error)
func (*RPC) SubscribeLogs ¶ added in v0.10.0
func (*RPC) SubscribeNewHeads ¶ added in v0.10.0
type Recoverer ¶ added in v0.10.0
func (*Recoverer) RecoverHash ¶ added in v0.10.0
func (*Recoverer) RecoverMessage ¶ added in v0.10.0
func (*Recoverer) RecoverTransaction ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.