Documentation
¶
Index ¶
- func BlockNumArg(blockNum *big.Int) rpc.BlockNumberOrHash
- func CallArgsFromCallMsg(callMsg ethereum.CallMsg) ethapi.CallArgs
- func PendingBlockNumArg() rpc.BlockNumberOrHash
- type Backend
- func (b Backend) CallContract(ctx context.Context, callMsg ethereum.CallMsg, blockNum *big.Int) ([]byte, error)
- func (b Backend) CodeAt(ctx context.Context, contract libcommon.Address, blockNum *big.Int) ([]byte, error)
- func (b Backend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (b Backend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (b Backend) PendingCodeAt(ctx context.Context, account libcommon.Address) ([]byte, error)
- func (b Backend) PendingNonceAt(ctx context.Context, account libcommon.Address) (uint64, error)
- func (b Backend) SendTransaction(ctx context.Context, txn types.Transaction) error
- func (b Backend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (b Backend) SuggestGasPrice(ctx context.Context) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockNumArg ¶
func BlockNumArg(blockNum *big.Int) rpc.BlockNumberOrHash
func PendingBlockNumArg ¶
func PendingBlockNumArg() rpc.BlockNumberOrHash
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewDirectBackend ¶
func (Backend) CallContract ¶
func (Backend) EstimateGas ¶
func (Backend) FilterLogs ¶
func (Backend) PendingCodeAt ¶
func (Backend) PendingNonceAt ¶
func (Backend) SendTransaction ¶
func (Backend) SubscribeFilterLogs ¶
func (b Backend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
Click to show internal directories.
Click to hide internal directories.