Namespace: Sequencer
types.Sequencer
Interfaces​
References​
GetTransactionStatusResponse​
Re-exports GetTransactionStatusResponse
GetContractAddressesResponse​
Re-exports GetContractAddressesResponse
FunctionInvocation​
Re-exports FunctionInvocation
ExecutionResources​
Re-exports ExecutionResources
CallL1Handler​
Re-exports CallL1Handler
DeployedContractItem​
Re-exports DeployedContractItem
SequencerIdentifier​
Re-exports SequencerIdentifier
Type Aliases​
TransactionTraceResponse​
Ƭ TransactionTraceResponse: Object
Type declaration​
Name | Type |
---|---|
validate_invocation? | FunctionInvocation |
function_invocation? | FunctionInvocation |
fee_transfer_invocation? | FunctionInvocation |
constructor_invocation? | FunctionInvocation |
signature | string [] |
Defined in​
DeclareTransaction​
Ƭ DeclareTransaction: Object
Type declaration​
Name | Type |
---|---|
type | DECLARE |
sender_address | string |
contract_class | ContractClass |
signature? | string [] |
nonce | BigNumberish |
max_fee? | BigNumberish |
version? | BigNumberish |
compiled_class_hash? | string |
Defined in​
DeployTransaction​
Ƭ DeployTransaction: Object
Type declaration​
Name | Type |
---|---|
type | DEPLOY |
contract_definition | ContractClass |
contract_address_salt | BigNumberish |
constructor_calldata | string [] |
nonce? | BigNumberish |
Defined in​
src/types/api/sequencer.ts:100
DeployAccountTransaction​
Ƭ DeployAccountTransaction: Object
Type declaration​
Name | Type |
---|---|
type | DEPLOY_ACCOUNT |
class_hash | string |
contract_address_salt | BigNumberish |
constructor_calldata | string [] |
signature? | string [] |
max_fee? | BigNumberish |
version? | BigNumberish |
nonce? | BigNumberish |
Defined in​
src/types/api/sequencer.ts:108
InvokeFunctionTransaction​
Ƭ InvokeFunctionTransaction: Object
Type declaration​
Name | Type |
---|---|
type | INVOKE |
sender_address | string |
signature? | string [] |
entry_point_type? | EXTERNAL |
calldata? | RawCalldata |
nonce | BigNumberish |
max_fee? | BigNumberish |
version? | BigNumberish |
Defined in​
src/types/api/sequencer.ts:119
Transaction​
Ƭ Transaction: DeclareTransaction
| DeployTransaction
| InvokeFunctionTransaction
| DeployAccountTransaction
Defined in​
src/types/api/sequencer.ts:130
AddTransactionResponse​
Ƭ AddTransactionResponse: Object
Type declaration​
Name | Type |
---|---|
transaction_hash | string |
code? | "TRANSACTION_RECEIVED" |
address? | string |
class_hash? | string |
Defined in​
src/types/api/sequencer.ts:136
GetCodeResponse​
Ƭ GetCodeResponse: Object
Type declaration​
Name | Type |
---|---|
bytecode | ByteCode |
abi | Abi |
Defined in​
src/types/api/sequencer.ts:143
TransactionResponse​
Ƭ TransactionResponse: DeclareTransaction
| DeployTransaction
| InvokeFunctionTransactionResponse
Defined in​
src/types/api/sequencer.ts:153
SuccessfulTransactionResponse​
Ƭ SuccessfulTransactionResponse: Object
Type declaration​
Name | Type |
---|---|
execution_status | SUCCEEDED |
finality_status | TransactionFinalityStatus |
status | TransactionStatus |
block_hash | string |
block_number | BlockNumber |
transaction_index | number |
transaction | TransactionResponse |
Defined in​
src/types/api/sequencer.ts:158
RevertedTransactionResponse​
Ƭ RevertedTransactionResponse: Object
Type declaration​
Name | Type |
---|---|
execution_status | REVERTED |
finality_status | TransactionFinalityStatus |
status | TransactionStatus |
block_hash | string |
block_number | BlockNumber |
transaction_index | number |
transaction | TransactionResponse |
revert_error | string |
Defined in​
src/types/api/sequencer.ts:168
FailedTransactionResponse​
Ƭ FailedTransactionResponse: Object
Type declaration​
Name | Type |
---|---|
status | REJECTED |
transaction_failure_reason | { code : string ; error_message : string } |
transaction_failure_reason.code | string |
transaction_failure_reason.error_message | string |
transaction | TransactionResponse |
Defined in​
src/types/api/sequencer.ts:179
GetTransactionResponse​
Ƭ GetTransactionResponse: SuccessfulTransactionResponse
| RevertedTransactionResponse
| FailedTransactionResponse
Defined in​
src/types/api/sequencer.ts:188
TransactionReceiptResponse​
Ƭ TransactionReceiptResponse: SuccessfulTransactionReceiptResponse
| RevertedTransactionReceiptResponse
| RejectedTransactionReceiptResponse
Defined in​
src/types/api/sequencer.ts:193
SuccessfulTransactionReceiptResponse​
Ƭ SuccessfulTransactionReceiptResponse: Object
Type declaration​
Name | Type |
---|---|
execution_status | SUCCEEDED |
finality_status | TransactionFinalityStatus |
status | TransactionStatus |
actual_fee | string |
block_hash | string |
block_number | BlockNumber |
transaction_hash | string |
transaction_index | number |
l2_to_l1_messages | string [] |
events | string [] |
execution_resources? | ExecutionResources |
Defined in​
src/types/api/sequencer.ts:198
RevertedTransactionReceiptResponse​
Ƭ RevertedTransactionReceiptResponse: Object
Type declaration​
Name | Type |
---|---|
execution_status | REVERTED |
finality_status | TransactionFinalityStatus |
status | REVERTED |
actual_fee | string |
block_hash | string |
block_number | BlockNumber |
transaction_hash | string |
transaction_index | number |
l2_to_l1_messages | string [] |
events | string [] |
revert_error | string |
Defined in​
src/types/api/sequencer.ts:212
RejectedTransactionReceiptResponse​
Ƭ RejectedTransactionReceiptResponse: Object
Type declaration​
Name | Type |
---|---|
execution_status | REJECTED |
finality_status | TransactionFinalityStatus |
status | REJECTED |
transaction_hash | string |
l2_to_l1_messages | string [] |
events | string [] |
transaction_failure_reason | { code : string ; error_message : string } |
transaction_failure_reason.code | string |
transaction_failure_reason.error_message | string |
Defined in​
src/types/api/sequencer.ts:226
GetBlockResponse​
Ƭ GetBlockResponse: Object
Type declaration​
Name | Type |
---|---|
block_number | number |
state_root | string |
block_hash | string |
transactions | { [txHash: string] : TransactionResponse ; } |
timestamp | number |
transaction_receipts | { [txHash: string] : { block_hash : string ; transaction_hash : string ; l2_to_l1_messages : { to_address : string ; payload : string [] ; from_address : string }[] ; block_number : BlockNumber ; status : TransactionStatus ; transaction_index : number }; } |
parent_block_hash | string |
status | BlockStatus |
gas_price | string |
sequencer_address | string |
starknet_version | string |
Defined in​
src/types/api/sequencer.ts:239
CallContractTransaction​
Ƭ CallContractTransaction: { calldata?
: RawCalldata
; max_fee?
: BigNumberish
; version?
: BigNumberish
; entry_point_selector
: string
} & { sender_address
: string
; signature
: string
[] } | { contract_address
: string
; signature?
: never
}
Defined in​
src/types/api/sequencer.ts:268
CallContractResponse​
Ƭ CallContractResponse: Object
Type declaration​
Name | Type |
---|---|
result | string [] |
Defined in​
src/types/api/sequencer.ts:284
InvokeEstimateFee​
Ƭ InvokeEstimateFee: Omit
<InvokeFunctionTransaction
, "max_fee"
| "entry_point_type"
>
Defined in​
src/types/api/sequencer.ts:288
DeclareEstimateFee​
Ƭ DeclareEstimateFee: Omit
<DeclareTransaction
, "max_fee"
>
Defined in​
src/types/api/sequencer.ts:289
DeployAccountEstimateFee​
Ƭ DeployAccountEstimateFee: Omit
<DeployAccountTransaction
, "max_fee"
>
Defined in​
src/types/api/sequencer.ts:290
DeployEstimateFee​
Ƭ DeployEstimateFee: DeployTransaction
Defined in​
src/types/api/sequencer.ts:291
SimulateTransactionResponse​
Ƭ SimulateTransactionResponse: Object
Type declaration​
Name | Type |
---|---|
trace | TransactionTraceResponse |
fee_estimation | EstimateFeeResponse |
Defined in​
src/types/api/sequencer.ts:293
AccountTransactionItem​
Ƭ AccountTransactionItem: InvokeEstimateFee
| DeclareEstimateFee
| DeployEstimateFee
| DeployAccountEstimateFee
Defined in​
src/types/api/sequencer.ts:298
AccountTransaction​
Ƭ AccountTransaction: AllowArray
<AccountTransactionItem
>
Transaction filled with account data
Defined in​
src/types/api/sequencer.ts:307
EstimateFeeResponse​
Ƭ EstimateFeeResponse: { overall_fee
: number
; gas_price
: number
; gas_usage
: number
; uint
: string
} | { amount
: bigint
; unit
: string
}
Defined in​
src/types/api/sequencer.ts:310
EstimateFeeResponseBulk​
Ƭ EstimateFeeResponseBulk: AllowArray
<EstimateFeeResponse
>
Defined in​
src/types/api/sequencer.ts:322
BlockTransactionTracesResponse​
Ƭ BlockTransactionTracesResponse: Object
Type declaration​
Name | Type |
---|---|
traces | TransactionTraceResponse & { transaction_hash : string }[] |
Defined in​
src/types/api/sequencer.ts:324
Storage​
Ƭ Storage: string
Defined in​
src/types/api/sequencer.ts:328
StateUpdateResponse​
Ƭ StateUpdateResponse: Object
Type declaration​
Name | Type |
---|---|
block_hash | string |
new_root | string |
old_root | string |
state_diff | { storage_diffs : StorageDiffs ; nonces : Nonces ; deployed_contracts : DeployedContractItem [] ; old_declared_contracts : OldDeclaredContracts ; declared_classes : DeclaredClasses ; replaced_classes : ReplacedClasses } |
state_diff.storage_diffs | StorageDiffs |
state_diff.nonces | Nonces |
state_diff.deployed_contracts | DeployedContractItem [] |
state_diff.old_declared_contracts | OldDeclaredContracts |
state_diff.declared_classes | DeclaredClasses |
state_diff.replaced_classes | ReplacedClasses |
Defined in​
src/types/api/sequencer.ts:330
StorageDiffs​
Ƭ StorageDiffs: Object
Index signature​
â–ª [address: string
]: StateDiffItem
[]
Defined in​
src/types/api/sequencer.ts:344
StateDiffItem​
Ƭ StateDiffItem: Object
Type declaration​
Name | Type |
---|---|
key | string |
value | string |
Defined in​
src/types/api/sequencer.ts:346
Nonces​
Ƭ Nonces: Object
Index signature​
â–ª [address: string
]: Nonce
Defined in​
src/types/api/sequencer.ts:348
Nonce​
Ƭ Nonce: string
Defined in​
src/types/api/sequencer.ts:350
DeployedContracts​
Ƭ DeployedContracts: DeployedContractItem
[]
Defined in​
src/types/api/sequencer.ts:352
OldDeclaredContracts​
Ƭ OldDeclaredContracts: string
[]
Defined in​
src/types/api/sequencer.ts:354
DeclaredClasses​
Ƭ DeclaredClasses: DeclaredClass
[]
Defined in​
src/types/api/sequencer.ts:356
DeclaredClass​
Ƭ DeclaredClass: Object
Type declaration​
Name | Type |
---|---|
class_hash | string |
compiled_class_hash | string |
Defined in​
src/types/api/sequencer.ts:358
ReplacedClasses​
Ƭ ReplacedClasses: string
[]
Defined in​
src/types/api/sequencer.ts:360
Endpoints​
Ƭ Endpoints: Object
Type declaration​
Name | Type |
---|---|
get_contract_addresses | { QUERY : never ; REQUEST : never ; RESPONSE : GetContractAddressesResponse } |
get_contract_addresses.QUERY | never |
get_contract_addresses.REQUEST | never |
get_contract_addresses.RESPONSE | GetContractAddressesResponse |
add_transaction | { QUERY : never ; REQUEST : Transaction ; RESPONSE : AddTransactionResponse } |
add_transaction.QUERY | never |
add_transaction.REQUEST | Transaction |
add_transaction.RESPONSE | AddTransactionResponse |
get_transaction | { QUERY : { transactionHash : string } ; REQUEST : never ; RESPONSE : GetTransactionResponse } |
get_transaction.QUERY | { transactionHash : string } |
get_transaction.QUERY.transactionHash | string |
get_transaction.REQUEST | never |
get_transaction.RESPONSE | GetTransactionResponse |
get_transaction_status | { QUERY : { transactionHash : string } ; REQUEST : never ; RESPONSE : GetTransactionStatusResponse } |
get_transaction_status.QUERY | { transactionHash : string } |
get_transaction_status.QUERY.transactionHash | string |
get_transaction_status.REQUEST | never |
get_transaction_status.RESPONSE | GetTransactionStatusResponse |
get_transaction_trace | { QUERY : { transactionHash : string } ; REQUEST : never ; RESPONSE : TransactionTraceResponse } |
get_transaction_trace.QUERY | { transactionHash : string } |
get_transaction_trace.QUERY.transactionHash | string |
get_transaction_trace.REQUEST | never |
get_transaction_trace.RESPONSE | TransactionTraceResponse |
get_transaction_receipt | { QUERY : { transactionHash : string } ; REQUEST : never ; RESPONSE : TransactionReceiptResponse } |
get_transaction_receipt.QUERY | { transactionHash : string } |
get_transaction_receipt.QUERY.transactionHash | string |
get_transaction_receipt.REQUEST | never |
get_transaction_receipt.RESPONSE | TransactionReceiptResponse |
get_nonce | { QUERY : { contractAddress : string ; blockIdentifier : BlockIdentifier } ; REQUEST : never ; RESPONSE : Nonce } |
get_nonce.QUERY | { contractAddress : string ; blockIdentifier : BlockIdentifier } |
get_nonce.QUERY.contractAddress | string |
get_nonce.QUERY.blockIdentifier | BlockIdentifier |
get_nonce.REQUEST | never |
get_nonce.RESPONSE | Nonce |
get_storage_at | { QUERY : { contractAddress : string ; key : BigNumberish ; blockIdentifier : BlockIdentifier } ; REQUEST : never ; RESPONSE : Storage } |
get_storage_at.QUERY | { contractAddress : string ; key : BigNumberish ; blockIdentifier : BlockIdentifier } |
get_storage_at.QUERY.contractAddress | string |
get_storage_at.QUERY.key | BigNumberish |
get_storage_at.QUERY.blockIdentifier | BlockIdentifier |
get_storage_at.REQUEST | never |
get_storage_at.RESPONSE | Storage |
get_code | { QUERY : { contractAddress : string ; blockIdentifier : BlockIdentifier } ; REQUEST : never ; RESPONSE : GetCodeResponse } |
get_code.QUERY | { contractAddress : string ; blockIdentifier : BlockIdentifier } |
get_code.QUERY.contractAddress | string |
get_code.QUERY.blockIdentifier | BlockIdentifier |
get_code.REQUEST | never |
get_code.RESPONSE | GetCodeResponse |
get_block | { QUERY : { blockIdentifier : BlockIdentifier } ; REQUEST : never ; RESPONSE : GetBlockResponse } |
get_block.QUERY | { blockIdentifier : BlockIdentifier } |
get_block.QUERY.blockIdentifier | BlockIdentifier |
get_block.REQUEST | never |
get_block.RESPONSE | GetBlockResponse |
call_contract | { QUERY : { blockIdentifier : BlockIdentifier } ; REQUEST : CallContractTransaction ; RESPONSE : CallContractResponse } |
call_contract.QUERY | { blockIdentifier : BlockIdentifier } |
call_contract.QUERY.blockIdentifier | BlockIdentifier |
call_contract.REQUEST | CallContractTransaction |
call_contract.RESPONSE | CallContractResponse |
estimate_fee | { QUERY : { blockIdentifier : BlockIdentifier ; skipValidate : boolean } ; REQUEST : AccountTransactionItem ; RESPONSE : EstimateFeeResponse } |
estimate_fee.QUERY | { blockIdentifier : BlockIdentifier ; skipValidate : boolean } |
estimate_fee.QUERY.blockIdentifier | BlockIdentifier |
estimate_fee.QUERY.skipValidate | boolean |
estimate_fee.REQUEST | AccountTransactionItem |
estimate_fee.RESPONSE | EstimateFeeResponse |
get_class_by_hash | { QUERY : { classHash : string ; blockIdentifier? : BlockIdentifier } ; REQUEST : never ; RESPONSE : CompiledContract } |
get_class_by_hash.QUERY | { classHash : string ; blockIdentifier? : BlockIdentifier } |
get_class_by_hash.QUERY.classHash | string |
get_class_by_hash.QUERY.blockIdentifier? | BlockIdentifier |
get_class_by_hash.REQUEST | never |
get_class_by_hash.RESPONSE | CompiledContract |
get_class_hash_at | { QUERY : { contractAddress : string ; blockIdentifier? : BlockIdentifier } ; REQUEST : never ; RESPONSE : string } |
get_class_hash_at.QUERY | { contractAddress : string ; blockIdentifier? : BlockIdentifier } |
get_class_hash_at.QUERY.contractAddress | string |
get_class_hash_at.QUERY.blockIdentifier? | BlockIdentifier |
get_class_hash_at.REQUEST | never |
get_class_hash_at.RESPONSE | string |
get_state_update | { QUERY : { blockHash? : string ; blockNumber? : BlockNumber } ; REQUEST : never ; RESPONSE : StateUpdateResponse } |
get_state_update.QUERY | { blockHash? : string ; blockNumber? : BlockNumber } |
get_state_update.QUERY.blockHash? | string |
get_state_update.QUERY.blockNumber? | BlockNumber |
get_state_update.REQUEST | never |
get_state_update.RESPONSE | StateUpdateResponse |
get_full_contract | { QUERY : { contractAddress : string ; blockIdentifier? : BlockIdentifier } ; REQUEST : never ; RESPONSE : CompiledContract } |
get_full_contract.QUERY | { contractAddress : string ; blockIdentifier? : BlockIdentifier } |
get_full_contract.QUERY.contractAddress | string |
get_full_contract.QUERY.blockIdentifier? | BlockIdentifier |
get_full_contract.REQUEST | never |
get_full_contract.RESPONSE | CompiledContract |
estimate_message_fee | { QUERY : any ; REQUEST : any ; RESPONSE : EstimateFeeResponse } |
estimate_message_fee.QUERY | any |
estimate_message_fee.REQUEST | any |
estimate_message_fee.RESPONSE | EstimateFeeResponse |
simulate_transaction | { QUERY : { blockIdentifier : BlockIdentifier ; skipValidate : boolean } ; REQUEST : AccountTransaction ; RESPONSE : SimulateTransactionResponse } |
simulate_transaction.QUERY | { blockIdentifier : BlockIdentifier ; skipValidate : boolean } |
simulate_transaction.QUERY.blockIdentifier | BlockIdentifier |
simulate_transaction.QUERY.skipValidate | boolean |
simulate_transaction.REQUEST | AccountTransaction |
simulate_transaction.RESPONSE | SimulateTransactionResponse |
estimate_fee_bulk | { QUERY : { blockIdentifier : BlockIdentifier ; skipValidate : boolean } ; REQUEST : AccountTransaction ; RESPONSE : EstimateFeeResponseBulk } |
estimate_fee_bulk.QUERY | { blockIdentifier : BlockIdentifier ; skipValidate : boolean } |
estimate_fee_bulk.QUERY.blockIdentifier | BlockIdentifier |
estimate_fee_bulk.QUERY.skipValidate | boolean |
estimate_fee_bulk.REQUEST | AccountTransaction |
estimate_fee_bulk.RESPONSE | EstimateFeeResponseBulk |
get_block_traces | { QUERY : { blockHash? : string ; blockNumber? : BlockNumber } ; REQUEST : never ; RESPONSE : BlockTransactionTracesResponse } |
get_block_traces.QUERY | { blockHash? : string ; blockNumber? : BlockNumber } |
get_block_traces.QUERY.blockHash? | string |
get_block_traces.QUERY.blockNumber? | BlockNumber |
get_block_traces.REQUEST | never |
get_block_traces.RESPONSE | BlockTransactionTracesResponse |
get_compiled_class_by_class_hash | { QUERY : { classHash : string ; blockIdentifier? : BlockIdentifier } ; REQUEST : any ; RESPONSE : CairoAssembly } |
get_compiled_class_by_class_hash.QUERY | { classHash : string ; blockIdentifier? : BlockIdentifier } |
get_compiled_class_by_class_hash.QUERY.classHash | string |
get_compiled_class_by_class_hash.QUERY.blockIdentifier? | BlockIdentifier |
get_compiled_class_by_class_hash.REQUEST | any |
get_compiled_class_by_class_hash.RESPONSE | CairoAssembly |