Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // TransactionReceipt returns the transaction receipt for the given transaction hash TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) // HeaderByNumber returns the block header for the given block number HeaderByNumber(ctx context.Context, number *big.Int) (*Header, error) // IsFinalized determines whether or not the given transaction receipt is finalized on the chain IsFinalized(ctx context.Context, conf uint64, txReceipt *types.Receipt) (bool, error) // Close closes the client connection Close() }
Client provides calls to EVM JSON-RPC endpoints
type Header ¶ added in v0.26.4
type Header struct { ParentHash common.Hash `json:"parentHash" gencodec:"required"` Number *hexutil.Big `json:"number" gencodec:"required"` Time hexutil.Uint64 `json:"timestamp" gencodec:"required"` Hash common.Hash `json:"hash"` Transactions []common.Hash `json:"transactions" gencodec:"required"` L1BlockNumber *hexutil.Big `json:"l1BlockNumber"` }
Header represents a block header in any EVM blockchain
type MoonbeamHeader ¶
type MoonbeamHeader struct { ParentHash common.Hash `json:"parentHash" gencodec:"required"` ExtrinsicsRoot common.Hash `json:"extrinsicsRoot" gencodec:"required"` StateRoot common.Hash `json:"stateRoot" gencodec:"required"` Number *hexutil.Big `json:"number" gencodec:"required"` }
MoonbeamHeader represents a block header in the Moonbeam blockchain
Source Files ¶
Click to show internal directories.
Click to hide internal directories.