Documentation ¶
Index ¶
- type BatchElem
- type EthClient
- func (client EthClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (client EthClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (client EthClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (client EthClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (client EthClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (client EthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (client EthClient) TransactionSender(ctx context.Context, tx *types.Transaction, block common.Hash, index uint) (common.Address, error)
- type RpcClient
- func (client RpcClient) BatchCall(batch []BatchElem) error
- func (client RpcClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (client RpcClient) IpcPath() string
- func (client RpcClient) Subscribe(namespace string, payloadChan interface{}, args ...interface{}) (*rpc.ClientSubscription, error)
- func (client RpcClient) SupportedModules() (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthClient ¶
type EthClient struct {
// contains filtered or unexported fields
}
func NewEthClient ¶
func (EthClient) BlockByNumber ¶
func (EthClient) CallContract ¶
func (EthClient) FilterLogs ¶
func (EthClient) HeaderByNumber ¶
func (EthClient) TransactionReceipt ¶
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func (RpcClient) CallContext ¶
func (RpcClient) Subscribe ¶ added in v0.0.8
func (client RpcClient) Subscribe(namespace string, payloadChan interface{}, args ...interface{}) (*rpc.ClientSubscription, error)
Subscribe subscribes to an rpc "namespace_subscribe" subscription with the given channel The first argument needs to be the method we wish to invoke
Click to show internal directories.
Click to hide internal directories.