Type aliases
KeyPair
KeyPair: EC.KeyPair
Signature
Signature: EC.Signature
GetContractAddressesResponse
GetContractAddressesResponse: { Starknet: string; GpsStatementVerifier: string }
Type declaration
Starknet: string
GpsStatementVerifier: string
Status
Status: "NOT_RECEIVED" | "RECEIVED" | "PENDING" | "REJECTED" | "ACCEPTED_ONCHAIN"
TxStatus
TxStatus: "TRANSACTION_RECEIVED"
Type
Type: "DEPLOY" | "INVOKE_FUNCTION"
EntryPointType
EntryPointType: "EXTERNAL"
CompressedProgram
CompressedProgram: string
AbiEntry
AbiEntry: { name: string; type: "felt" | "felt*" | string }
Type declaration
name: string
type: "felt" | "felt*" | string
FunctionAbi
Function
Abi: { inputs: AbiEntry[]; name: string; outputs: AbiEntry[]; type: "function"; stateMutability?: "view" }Type declaration
name: string
type: "function"
Optional stateMutability?: "view"
StructAbi
Struct
Abi: { members: (AbiEntry & { offset: number })[]; name: string; size: number; type: "struct" }Type declaration
members: (AbiEntry & { offset: number })[]
name: string
size: number
type: "struct"
Abi
EntryPointsByType
EntryPointsByType: object
Program
Program: object
CompiledContract
CompressedCompiledContract
DeployTransaction
Type declaration
type: "DEPLOY"
constructor_calldata: string[]
InvokeFunctionTransaction
Invoke
FunctionTransaction: { type: "INVOKE_FUNCTION"; contract_address: string; entry_point_selector: string; signature?: [BigNumberish, BigNumberish]; entry_point_type?: EntryPointType; calldata?: string[] }Type declaration
type: "INVOKE_FUNCTION"
contract_address: string
entry_point_selector: string
Optional calldata?: string[]
CallContractTransaction
Transaction
CallContractResponse
CallContractResponse: { result: string[] }
GetBlockResponse
Get
BlockResponse: { sequence_number: number; state_root: string; block_hash: string; transactions: {}; timestamp: number; transaction_receipts: {}; previous_block_hash: string; status: Status }Type declaration
sequence_number: number
state_root: string
block_hash: string
transactions: {}
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: number; status: Status; transaction_index: number }
block_hash: string
transaction_hash: string
l2_to_l1_messages: { to_address: string; payload: string[]; from_address: string }[]
block_number: number
transaction_index: number
previous_block_hash: string
GetCodeResponse
Get
CodeResponse: { bytecode: string[]; abi: Abi[] }Type declaration
bytecode: string[]
abi: Abi[]
GetTransactionStatusResponse
Get
TransactionStatusResponse: { tx_status: Status; block_hash: string }GetTransactionResponse
Get
TransactionResponse: { status: Status; transaction: Transaction; block_hash: string; block_number: number; transaction_index: number; transaction_hash: string }Type declaration
block_hash: string
block_number: number
transaction_index: number
transaction_hash: string
AddTransactionResponse
Add
TransactionResponse: { code: TxStatus; transaction_hash: string; address?: string }Type declaration
transaction_hash: string
Optional address?: string
Args
Args: {}
Type declaration
[inputName: string]: string | string[]
Calldata
Calldata: string[]