Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessEntry ¶
type AccessEntry struct {
Address address
Storage []hash
}
type AccessList ¶
type AccessList []AccessEntry
func (*AccessList) UnmarshalRLPWith ¶
func (a *AccessList) UnmarshalRLPWith(v *fastrlp.Value) error
type AncientStore ¶
type AncientStore struct {
// contains filtered or unexported fields
}
func NewAncientStore ¶
func NewAncientStore(path string) (*AncientStore, error)
func (*AncientStore) Iterator ¶
func (a *AncientStore) Iterator() Iterator
func (*AncientStore) LastNum ¶
func (a *AncientStore) LastNum() uint64
type Body ¶
type Body struct {
Transactions []*Transaction
Uncles []*Header
}
func (*Body) UnmarshalRLP ¶
type Header ¶
type Header struct {
Hash hash
ParentHash hash
Sha3Uncles hash
Miner address
StateRoot hash
TxRoot hash
ReceiptsRoot hash
LogsBloom [32]byte
Difficulty uint64
Number uint64
GasLimit uint64
GasUsed uint64
Timestamp uint64
ExtraData []byte
MixHash hash
Nonce [8]byte
BaseFee *big.Int
}
func (*Header) UnmarshalRLP ¶
type LevelDbStore ¶
type LevelDbStore struct {
// contains filtered or unexported fields
}
func NewLevelDBStore ¶
func NewLevelDBStore(path string) (*LevelDbStore, error)
func (*LevelDbStore) Iterator ¶
func (l *LevelDbStore) Iterator() Iterator
type Receipt ¶
func (*Receipt) UnmarshalRLP ¶
type Transaction ¶
type Transaction struct {
Type TransactionType
// legacy values
Hash hash
From address
To *address
Input []byte
GasPrice uint64
Gas uint64
Value *big.Int
Nonce uint64
V []byte
R []byte
S []byte
// eip-2930 values
ChainID *big.Int
AccessList AccessList
// eip-1559 values
MaxPriorityFeePerGas *big.Int
MaxFeePerGas *big.Int
}
func (*Transaction) UnmarshalRLP ¶
func (t *Transaction) UnmarshalRLP(buf []byte) error
func (*Transaction) UnmarshalRLPFrom ¶
type TransactionType ¶
type TransactionType int
const ( TransactionLegacy TransactionType = 0 // eip-2930 TransactionAccessList TransactionType = 1 // eip-1559 TransactionDynamicFee TransactionType = 2 )
Click to show internal directories.
Click to hide internal directories.