Versions in this module Expand all Collapse all v0 v0.0.3 May 11, 2021 v0.0.2 May 11, 2021 Changes in this version + func DefaultQueryCtx(ctxs ...context.Context) (ctx context.Context, cancel context.CancelFunc) + func MustGetABI(json string) abi.ABI + func NewClient(rpcUrl string, secondaryRPCURLs ...url.URL) (*client, error) + func NewClientWith(rpcClient RPCClient, gethClient GethClient) *client + type CallArgs struct + Data hexutil.Bytes + To common.Address + type Client interface + BatchCallContext func(ctx context.Context, b []rpc.BatchElem) error + Call func(result interface{}, method string, args ...interface{}) error + CallContext func(ctx context.Context, result interface{}, method string, args ...interface{}) error + Close func() + Dial func(ctx context.Context) error + GetERC20Balance func(address common.Address, contractAddress common.Address) (*big.Int, error) + GetEthBalance func(ctx context.Context, account common.Address, blockNumber *big.Int) (*assets.Eth, error) + GetLINKBalance func(linkAddress common.Address, address common.Address) (*assets.Link, error) + HeaderByNumber func(ctx context.Context, n *big.Int) (*models.Head, error) + RoundRobinBatchCallContext func(ctx context.Context, b []rpc.BatchElem) error + SendRawTx func(bytes []byte) (common.Hash, error) + SubscribeNewHead func(ctx context.Context, ch chan<- *models.Head) (ethereum.Subscription, error) + type GethClient interface + BalanceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) + BlockByNumber func(ctx context.Context, number *big.Int) (*types.Block, error) + CallContract func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + ChainID func(ctx context.Context) (*big.Int, error) + CodeAt func(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) + EstimateGas func(ctx context.Context, call ethereum.CallMsg) (uint64, error) + FilterLogs func(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) + PendingCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + PendingNonceAt func(ctx context.Context, account common.Address) (uint64, error) + SendTransaction func(ctx context.Context, tx *types.Transaction) error + SubscribeFilterLogs func(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + SuggestGasPrice func(ctx context.Context) (*big.Int, error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type MaybeHeader struct + Error error + Header models.Head + type NullClient struct + func (nc *NullClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) + func (nc *NullClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error + func (nc *NullClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) + func (nc *NullClient) Call(result interface{}, method string, args ...interface{}) error + func (nc *NullClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error + func (nc *NullClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + func (nc *NullClient) ChainID(ctx context.Context) (*big.Int, error) + func (nc *NullClient) Close() + func (nc *NullClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) + func (nc *NullClient) Dial(ctx context.Context) error + func (nc *NullClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error) + func (nc *NullClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) + func (nc *NullClient) GetERC20Balance(address common.Address, contractAddress common.Address) (*big.Int, error) + func (nc *NullClient) GetEthBalance(context.Context, common.Address, *big.Int) (*assets.Eth, error) + func (nc *NullClient) GetLINKBalance(linkAddress common.Address, address common.Address) (*assets.Link, error) + func (nc *NullClient) HeaderByNumber(ctx context.Context, n *big.Int) (*models.Head, error) + func (nc *NullClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) + func (nc *NullClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) + func (nc *NullClient) RoundRobinBatchCallContext(ctx context.Context, b []rpc.BatchElem) error + func (nc *NullClient) SendRawTx(bytes []byte) (common.Hash, error) + func (nc *NullClient) SendTransaction(ctx context.Context, tx *types.Transaction) error + func (nc *NullClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + func (nc *NullClient) SubscribeNewHead(ctx context.Context, ch chan<- *models.Head) (ethereum.Subscription, error) + func (nc *NullClient) SuggestGasPrice(ctx context.Context) (*big.Int, error) + func (nc *NullClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type RPCClient interface + BatchCallContext func(ctx context.Context, b []rpc.BatchElem) error + Call func(result interface{}, method string, args ...interface{}) error + CallContext func(ctx context.Context, result interface{}, method string, args ...interface{}) error + Close func() + EthSubscribe func(ctx context.Context, channel interface{}, args ...interface{}) (ethereum.Subscription, error) + type SendError struct + func NewFatalSendError(e error) *SendError + func NewFatalSendErrorS(s string) *SendError + func NewSendError(e error) *SendError + func NewSendErrorS(s string) *SendError + func (s *SendError) Error() string + func (s *SendError) Fatal() bool + func (s *SendError) IsInsufficientEth() bool + func (s *SendError) IsNonceTooLowError() bool + func (s *SendError) IsReplacementUnderpriced() bool + func (s *SendError) IsTemporarilyUnderpriced() bool + func (s *SendError) IsTerminallyUnderpriced() bool + func (s *SendError) IsTooExpensive() bool + func (s *SendError) IsTransactionAlreadyInMempool() bool + func (s *SendError) StrPtr() *string + type Subscription interface + Err func() <-chan error + Unsubscribe func()