Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainID2GenesisJSON = map[uint64]string{ params.MainNetChainID: GenesisJSON, params.TestNetChainID: TestnetGenesisJSON, params.DevNetChainID: PrivateGenesisJSON, }
View Source
var GenesisJSON = `` /* 1401-byte string literal not displayed */
View Source
var PrivateGenesisJSON = `` /* 1357-byte string literal not displayed */
View Source
var TestnetGenesisJSON = `` /* 1401-byte string literal not displayed */
Functions ¶
func GetGenesisByChainID ¶
Types ¶
type Header ¶
type Header 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"` 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 uint64 `json:"gasLimit" gencodec:"required"` GasUsed uint64 `json:"gasUsed" gencodec:"required"` Time uint64 `json:"timestamp" gencodec:"required"` Extra []byte `json:"extraData" gencodec:"required"` MixDigest common.Hash `json:"mixHash"` Nonce types.BlockNonce `json:"nonce"` // BaseFee was added by EIP-1559 and is ignored in legacy headers. BaseFee *big.Int `json:"baseFeePerGas" rlp:"optional"` }
Click to show internal directories.
Click to hide internal directories.