Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBlockReply ¶
type GetBlockReply struct { ParentHash []common.Hash `json:"parentHash" gencodec:"required"` UncleHash []common.Hash `json:"sha3Uncles" gencodec:"required"` Coinbase []common.Address `json:"miner" gencodec:"required"` Root []common.Hash `json:"stateRoot" gencodec:"required"` TxHash []common.Hash `json:"transactionsRoot" gencodec:"required"` EtxHash []common.Hash `json:"extTransactionsRoot" gencodec:"required"` EtxRollupHash []common.Hash `json:"extRollupRoot" gencodec:"required"` ManifestHash []common.Hash `json:"manifestHash" gencodec:"required"` ReceiptHash []common.Hash `json:"receiptsRoot" gencodec:"required"` Bloom []types.Bloom `json:"logsBloom" gencodec:"required"` Difficulty []big.Int `json:"difficulty" gencodec:"required"` Number []big.Int `json:"number" gencodec:"required"` GasLimit []hexutil.Uint64 `json:"gasLimit" gencodec:"required"` GasUsed []hexutil.Uint64 `json:"gasUsed" gencodec:"required"` BaseFee []*hexutil.Big `json:"baseFeePerGas" gencodec:"required"` Location common.Location `json:"location" gencodec:"required"` Time hexutil.Uint64 `json:"timestamp" gencodec:"required"` Extra hexutil.Bytes `json:"extraData" gencodec:"required"` Nonce types.BlockNonce `json:"nonce"` Hash common.Hash `json:"hash"` }
type JsonRPCResponse ¶
type JsonRPCResponse struct { Version string `json:"version,omitempty"` ID json.RawMessage `json:"id,omitempty"` Error *JsonError `json:"error,omitempty"` Result *json.RawMessage `json:"result,omitempty"` }
type RPCClient ¶
type RPCClient struct { sync.RWMutex Url string Name string // contains filtered or unexported fields }
func NewRPCClient ¶
Click to show internal directories.
Click to hide internal directories.