Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessList ¶
type AccessList struct { Address primitives.Data20 `json:"address" json:"address"` StorageKeys []primitives.Data32 `json:"storageKeys" json:"storageKeys"` }
type Block ¶
type Block struct { ChainId uint64 `cbor:"chain_id" json:"chain_id"` Height uint64 `cbor:"height" json:"height"` Sequence uint64 `cbor:"sequence" json:"sequence"` GasLimit primitives.Quantity `cbor:"gas_limit" json:"gas_limit"` GasUsed primitives.Quantity `cbor:"gas_used" json:"gas_used"` Timestamp Timestamp `cbor:"timestamp" json:"timestamp"` Hash primitives.Data32 `cbor:"hash" json:"hash"` ParentHash primitives.Data32 `cbor:"parent_hash" json:"parent_hash"` TransactionsRoot primitives.Data32 `cbor:"transactions_root" json:"transactions_root"` ReceiptsRoot primitives.Data32 `cbor:"receipts_root" json:"receipts_root"` StateRoot primitives.Data32 `cbor:"state_root" json:"state_root"` Size Size `cbor:"size" json:"size"` Miner primitives.Data20 `cbor:"miner" json:"miner"` LogsBloom primitives.Data256 `cbor:"logs_bloom" json:"logs_bloom"` Transactions []*Transaction `cbor:"transactions" json:"transactions"` NearBlock any `cbor:"near_metadata" json:"near_metadata"` }
type InputOutputData ¶
type InputOutputData primitives.VarData
func (*InputOutputData) UnmarshalCBOR ¶
func (iod *InputOutputData) UnmarshalCBOR(b []byte) error
func (*InputOutputData) UnmarshalJSON ¶
func (iod *InputOutputData) UnmarshalJSON(b []byte) error
type Log ¶
type Log struct { Address primitives.Data20 `cbor:"Address" json:"address"` Topics []Topic `cbor:"Topics" json:"topics"` Data InputOutputData `cbor:"data" json:"data"` }
type NearHash ¶
type NearHash primitives.Data32
func (*NearHash) UnmarshalCBOR ¶
func (*NearHash) UnmarshalJSON ¶
type NearTransaction ¶
type Timestamp ¶
type Timestamp uint64
func (*Timestamp) UnmarshalCBOR ¶
func (*Timestamp) UnmarshalJSON ¶
type Topic ¶
type Topic primitives.Data32
func (Topic) MarshalJSON ¶ added in v1.0.2
func (*Topic) UnmarshalCBOR ¶
func (*Topic) UnmarshalJSON ¶
type Transaction ¶
type Transaction struct { Hash primitives.Data32 `cbor:"hash" json:"hash"` BlockHash primitives.Data32 `cbor:"block_hash" json:"block_hash"` BlockHeight uint64 `cbor:"block_height" json:"block_height"` ChainId uint64 `cbor:"chain_id" json:"chain_id"` TransactionIndex uint64 `cbor:"transaction_index" json:"transaction_index"` From primitives.Data20 `cbor:"from" json:"from"` To *primitives.Data20 `cbor:"to" json:"to"` Nonce primitives.Quantity `cbor:"nonce" json:"nonce"` GasPrice primitives.Quantity `cbor:"gas_price" json:"gas_price"` GasLimit primitives.Quantity `cbor:"gas_limit" json:"gas_limit"` GasUsed uint64 `cbor:"gas_used" json:"gas_used"` MaxPriorityFeePerGas primitives.Quantity `cbor:"max_priority_fee_per_gas" json:"max_priority_fee_per_gas"` MaxFeePerGas primitives.Quantity `cbor:"max_fee_per_gas" json:"max_fee_per_gas"` Value primitives.Quantity `cbor:"value" json:"value"` Input InputOutputData `cbor:"input" json:"input"` Output InputOutputData `cbor:"output" json:"output"` AccessList []AccessList `cbor:"access_list" json:"access_list"` TxType uint64 `cbor:"tx_type" json:"tx_type"` Status bool `cbor:"status" json:"status"` Logs []*Log `cbor:"logs" json:"logs"` LogsBloom primitives.Data256 `cbor:"logs_bloom" json:"logs_bloom"` ContractAddress *primitives.Data20 `cbor:"contract_address" json:"contract_address"` V uint64 `cbor:"v" json:"v"` R primitives.Quantity `cbor:"r" json:"r"` S primitives.Quantity `cbor:"s" json:"s"` NearTransaction NearTransaction `cbor:"near_metadata" json:"near_metadata"` }
Click to show internal directories.
Click to hide internal directories.