Namespace: Sequencer
types.Sequencer
Interfaces​
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​
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:101
InvokeFunctionTransaction​
Ƭ InvokeFunctionTransaction: Object
Type declaration​
Name | Type |
---|---|
type | "INVOKE_FUNCTION" |
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:112
Transaction​
Ƭ Transaction: DeclareTransaction
| DeployTransaction
| InvokeFunctionTransaction
| DeployAccountTransaction
Defined in​
src/types/api/sequencer.ts:123
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:129
GetCodeResponse​
Ƭ GetCodeResponse: Object
Type declaration​
Name | Type |
---|---|
bytecode | ByteCode |
abi | Abi |
Defined in​
src/types/api/sequencer.ts:136
TransactionResponse​
Ƭ TransactionResponse: DeclareTransaction
| DeployTransaction
| InvokeFunctionTransactionResponse
Defined in​
src/types/api/sequencer.ts:146
SuccessfulTransactionResponse​
Ƭ SuccessfulTransactionResponse: Object
Type declaration​
Name | Type |
---|---|
status | Status |
transaction | TransactionResponse |
block_hash | string |
block_number | BlockNumber |
transaction_index | number |
Defined in​
src/types/api/sequencer.ts:151
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:159
GetTransactionResponse​
Ƭ GetTransactionResponse: SuccessfulTransactionResponse
| FailedTransactionResponse
Defined in​
src/types/api/sequencer.ts:168
TransactionReceiptResponse​
Ƭ TransactionReceiptResponse: SuccessfulTransactionReceiptResponse
| FailedTransactionReceiptResponse
Defined in​
src/types/api/sequencer.ts:170
SuccessfulTransactionReceiptResponse​
Ƭ SuccessfulTransactionReceiptResponse: Object
Type declaration​
Name | Type |
---|---|
status | Status |
transaction_hash | string |
transaction_index | number |
block_hash | string |
block_number | BlockNumber |
l2_to_l1_messages | string [] |
events | string [] |
actual_fee | string |
execution_resources | ExecutionResources |
Defined in​
src/types/api/sequencer.ts:174
FailedTransactionReceiptResponse​
Ƭ FailedTransactionReceiptResponse: 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_hash | string |
l2_to_l1_messages | string [] |
events | string [] |
Defined in​
src/types/api/sequencer.ts:186
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 : Status ; transaction_index : number }; } |
parent_block_hash | string |
status | Status |
gas_price | string |
sequencer_address | string |
starknet_version | string |
Defined in​
src/types/api/sequencer.ts:197
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:226
CallContractResponse​
Ƭ CallContractResponse: Object
Type declaration​
Name | Type |
---|---|
result | string [] |
Defined in​
src/types/api/sequencer.ts:242
InvokeEstimateFee​
Ƭ InvokeEstimateFee: Omit
<InvokeFunctionTransaction
, "max_fee"
| "entry_point_type"
>
Defined in​
src/types/api/sequencer.ts:246
DeclareEstimateFee​
Ƭ DeclareEstimateFee: Omit
<DeclareTransaction
, "max_fee"
>
Defined in​
src/types/api/sequencer.ts:247
DeployAccountEstimateFee​
Ƭ DeployAccountEstimateFee: Omit
<DeployAccountTransaction
, "max_fee"
>
Defined in​
src/types/api/sequencer.ts:248
DeployEstimateFee​
Ƭ DeployEstimateFee: DeployTransaction
Defined in​
src/types/api/sequencer.ts:249
SimulateTransactionResponse​
Ƭ SimulateTransactionResponse: Object
Type declaration​
Name | Type |
---|---|
trace | TransactionTraceResponse |
fee_estimation | EstimateFeeResponse |
Defined in​
src/types/api/sequencer.ts:251
AccountTransactionItem​
Ƭ AccountTransactionItem: InvokeEstimateFee
| DeclareEstimateFee
| DeployEstimateFee
| DeployAccountEstimateFee
Defined in​
src/types/api/sequencer.ts:256
AccountTransaction​
Ƭ AccountTransaction: AllowArray
<AccountTransactionItem
>
Transaction filled with account data
Defined in​
src/types/api/sequencer.ts:265
EstimateFeeResponse​
Ƭ EstimateFeeResponse: { overall_fee
: number
; gas_price
: number
; gas_usage
: number
; uint
: string
} | { amount
: bigint
; unit
: string
}
Defined in​
src/types/api/sequencer.ts:268
EstimateFeeResponseBulk​
Ƭ EstimateFeeResponseBulk: AllowArray
<EstimateFeeResponse
>
Defined in​
src/types/api/sequencer.ts:280
BlockTransactionTracesResponse​
Ƭ BlockTransactionTracesResponse: Object
Type declaration​
Name | Type |
---|---|
traces | TransactionTraceResponse & { transaction_hash : string }[] |
Defined in​
src/types/api/sequencer.ts:282
Storage​
Ƭ Storage: string
Defined in​
src/types/api/sequencer.ts:286
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:288
StorageDiffs​
Ƭ StorageDiffs: Object
Index signature​
â–ª [address: string
]: StateDiffItem
[]
Defined in​
src/types/api/sequencer.ts:302
StateDiffItem​
Ƭ StateDiffItem: Object
Type declaration​
Name | Type |
---|---|
key | string |
value | string |
Defined in​
src/types/api/sequencer.ts:304
Nonces​
Ƭ Nonces: Object
Index signature​
â–ª [address: string
]: Nonce
Defined in​
src/types/api/sequencer.ts:306
Nonce​
Ƭ Nonce: string
Defined in​
src/types/api/sequencer.ts:308
DeployedContracts​
Ƭ DeployedContracts: DeployedContractItem
[]
Defined in​
src/types/api/sequencer.ts:310
OldDeclaredContracts​
Ƭ OldDeclaredContracts: string
[]
Defined in​
src/types/api/sequencer.ts:312
DeclaredClasses​
Ƭ DeclaredClasses: DeclaredClass
[]
Defined in​
src/types/api/sequencer.ts:314
DeclaredClass​
Ƭ DeclaredClass: Object
Type declaration​
Name | Type |
---|---|
class_hash | string |
compiled_class_hash | string |
Defined in​
src/types/api/sequencer.ts:316
ReplacedClasses​
Ƭ ReplacedClasses: string
[]
Defined in​
src/types/api/sequencer.ts:318
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 |