Documentation
¶
Index ¶
- type ClientWithFallback
- func (c *ClientWithFallback) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (c *ClientWithFallback) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (c *ClientWithFallback) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (c *ClientWithFallback) BlockNumber(ctx context.Context) (uint64, error)
- func (c *ClientWithFallback) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (c *ClientWithFallback) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (c *ClientWithFallback) CallContractAtHash(ctx context.Context, msg ethereum.CallMsg, blockHash common.Hash) ([]byte, error)
- func (c *ClientWithFallback) Close()
- func (c *ClientWithFallback) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (c *ClientWithFallback) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (c *ClientWithFallback) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (c *ClientWithFallback) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (c *ClientWithFallback) GetBaseFeeFromBlock(blockNumber *big.Int) (string, error)
- func (c *ClientWithFallback) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (c *ClientWithFallback) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (c *ClientWithFallback) NetworkID(ctx context.Context) (*big.Int, error)
- func (c *ClientWithFallback) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (c *ClientWithFallback) PeerCount(ctx context.Context) (uint64, error)
- func (c *ClientWithFallback) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (c *ClientWithFallback) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)
- func (c *ClientWithFallback) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (c *ClientWithFallback) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (c *ClientWithFallback) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (c *ClientWithFallback) PendingTransactionCount(ctx context.Context) (uint, error)
- func (c *ClientWithFallback) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (c *ClientWithFallback) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (c *ClientWithFallback) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (c *ClientWithFallback) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (c *ClientWithFallback) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (c *ClientWithFallback) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (c *ClientWithFallback) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (c *ClientWithFallback) ToBigInt() *big.Int
- func (c *ClientWithFallback) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)
- func (c *ClientWithFallback) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (c *ClientWithFallback) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (c *ClientWithFallback) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (c *ClientWithFallback) TransactionSender(ctx context.Context, tx *types.Transaction, block common.Hash, index uint) (common.Address, error)
- type FeeHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWithFallback ¶
type ClientWithFallback struct { ChainID uint64 IsConnected bool LastCheckedAt int64 // contains filtered or unexported fields }
func NewSimpleClient ¶
func NewSimpleClient(main *rpc.Client, chainID uint64) *ClientWithFallback
func (*ClientWithFallback) BlockByHash ¶
func (*ClientWithFallback) BlockByNumber ¶
func (*ClientWithFallback) BlockNumber ¶
func (c *ClientWithFallback) BlockNumber(ctx context.Context) (uint64, error)
func (*ClientWithFallback) CallContext ¶
func (c *ClientWithFallback) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
func (*ClientWithFallback) CallContract ¶
func (*ClientWithFallback) CallContractAtHash ¶
func (*ClientWithFallback) Close ¶
func (c *ClientWithFallback) Close()
func (*ClientWithFallback) EstimateGas ¶
func (c *ClientWithFallback) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
func (*ClientWithFallback) FeeHistory ¶
func (*ClientWithFallback) FilterLogs ¶
func (*ClientWithFallback) GetBaseFeeFromBlock ¶
func (c *ClientWithFallback) GetBaseFeeFromBlock(blockNumber *big.Int) (string, error)
func (*ClientWithFallback) HeaderByHash ¶
func (*ClientWithFallback) HeaderByNumber ¶
func (*ClientWithFallback) PeerCount ¶
func (c *ClientWithFallback) PeerCount(ctx context.Context) (uint64, error)
func (*ClientWithFallback) PendingBalanceAt ¶
func (*ClientWithFallback) PendingCallContract ¶
func (c *ClientWithFallback) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)
func (*ClientWithFallback) PendingCodeAt ¶
func (*ClientWithFallback) PendingNonceAt ¶
func (*ClientWithFallback) PendingStorageAt ¶
func (*ClientWithFallback) PendingTransactionCount ¶
func (c *ClientWithFallback) PendingTransactionCount(ctx context.Context) (uint, error)
func (*ClientWithFallback) SendTransaction ¶
func (c *ClientWithFallback) SendTransaction(ctx context.Context, tx *types.Transaction) error
func (*ClientWithFallback) SubscribeFilterLogs ¶
func (*ClientWithFallback) SubscribeNewHead ¶
func (*ClientWithFallback) SuggestGasPrice ¶
func (*ClientWithFallback) SuggestGasTipCap ¶
func (*ClientWithFallback) SyncProgress ¶
func (c *ClientWithFallback) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
func (*ClientWithFallback) ToBigInt ¶
func (c *ClientWithFallback) ToBigInt() *big.Int
func (*ClientWithFallback) TransactionByHash ¶
func (c *ClientWithFallback) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)
func (*ClientWithFallback) TransactionCount ¶
func (*ClientWithFallback) TransactionInBlock ¶
func (c *ClientWithFallback) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
func (*ClientWithFallback) TransactionReceipt ¶
func (*ClientWithFallback) TransactionSender ¶
type FeeHistory ¶
type FeeHistory struct {
BaseFeePerGas []string `json:"baseFeePerGas"`
}
Click to show internal directories.
Click to hide internal directories.