Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
BlockHash *Felt `json:"block_hash"`
ParentBlockHash *Felt `json:"parent_block_hash"`
BlockNumber uint64 `json:"block_number"`
StateRoot string `json:"state_root"`
Status string `json:"status"`
GasPrice string `json:"gas_price"`
Transactions []*Transaction `json:"Transactions"`
Timestamp int64 `json:"timestamp"`
SequencerAddress string `json:"sequencer_address"`
TransactionReceipts []*TransactionReceipt `json:"transaction_receipts"`
}
type BuiltinInstanceCounter ¶
type BuiltinInstanceCounter struct {
PedersenBuiltin int `json:"pedersen_builtin"`
RangeCheckBuiltin int `json:"range_check_builtin"`
OutputBuiltin int `json:"output_builtin"`
EcdsaBuiltin int `json:"ecdsa_builtin"`
BitwiseBuiltin int `json:"bitwise_builtin"`
EcOpBuiltin int `json:"ec_op_builtin"`
}
type ExecutionResource ¶
type ExecutionResource struct {
NSteps int `json:"n_steps"`
BuiltinInstanceCounter *BuiltinInstanceCounter `json:"builtin_instance_counter"`
NMemoryHoles int `json:"n_memory_holes"`
}
type L1ToL2Message ¶
type Sequencer ¶
type Sequencer struct {
// contains filtered or unexported fields
}
func (*Sequencer) GetBlockByNumber ¶
func (*Sequencer) GetLatestBlock ¶
type Transaction ¶
type Transaction struct {
ContractAddress *Felt `json:"contract_address"`
ContractAddressSalt *Felt `json:"contract_address_salt,omitempty"`
ClassHash *Felt `json:"class_hash,omitempty"`
ConstructorCalldata []*Felt `json:"constructor_calldata,omitempty"`
TransactionHash *Felt `json:"transaction_hash"`
Type string `json:"type"`
EntryPointSelector *Felt `json:"entry_point_selector,omitempty"`
EntryPointType string `json:"entry_point_type,omitempty"`
Calldata []*Felt `json:"calldata,omitempty"`
MaxFee *Felt `json:"max_fee,omitempty"`
}
type TransactionReceipt ¶
type TransactionReceipt struct {
TransactionIndex int `json:"transaction_index"`
TransactionHash *Felt `json:"transaction_hash"`
L2ToL1Messages []*L1ToL2Message `json:"l2_to_l1_messages"`
Events []*Event `json:"events"`
ExecutionResources *ExecutionResource `json:"execution_resources"`
ActualFee string `json:"actual_fee"`
L1ToL2ConsumedMessage *L1ToL2Message `json:"l1_to_l2_consumed_message,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.