Versions in this module Expand all Collapse all v0 v0.0.5 Dec 31, 2021 v0.0.4 Nov 21, 2021 v0.0.3 Oct 26, 2021 v0.0.2 Oct 11, 2021 Changes in this version + const Fatal + const InsufficientEth + const LimitReached + const NonceTooLow + const NullClientChainID + const ReplacementTransactionUnderpriced + const TerminallyUnderpriced + const TooExpensive + const TransactionAlreadyInMempool + func DefaultQueryCtx(ctxs ...context.Context) (ctx context.Context, cancel context.CancelFunc) + func ExtractRevertReasonFromRPCError(err error) (string, error) + func MustGetABI(json string) abi.ABI + func NewClient(rpcUrl string, rpcHTTPURL *url.URL, secondaryRPCURLs []url.URL) (*client, error) + type CallArgs struct + Data hexutil.Bytes + To common.Address + type Client interface + BalanceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) + BatchCallContext func(ctx context.Context, b []rpc.BatchElem) error + BlockByNumber func(ctx context.Context, number *big.Int) (*types.Block, error) + Call func(result interface{}, method string, args ...interface{}) error + CallContext func(ctx context.Context, result interface{}, method string, args ...interface{}) error + CallContract func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + ChainID func(ctx context.Context) (*big.Int, error) + Close func() + CodeAt func(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) + Dial func(ctx context.Context) error + EstimateGas func(ctx context.Context, call ethereum.CallMsg) (uint64, error) + FilterLogs func(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, 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) + NonceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error) + PendingCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + PendingNonceAt func(ctx context.Context, account common.Address) (uint64, error) + RoundRobinBatchCallContext func(ctx context.Context, b []rpc.BatchElem) 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) + SubscribeNewHead func(ctx context.Context, ch chan<- *models.Head) (ethereum.Subscription, error) + SuggestGasPrice func(ctx context.Context) (*big.Int, error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type ClientErrors = map[int]*regexp.Regexp + type JsonError struct + Code int + Data interface{} + Message string + func (err *JsonError) Error() string + 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) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, 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) 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 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) CauseStr() string + 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()