Starknet.js API - v8.6.0
Namespaces
- constants
- encode
- hash
- v3hash
- v2hash
- json
- num
- transaction
- stark
- eth
- merkle
- uint256
- shortString
- typedData
- ec
- starknetId
- paymaster
- provider
- selector
- events
- outsideExecution
- src5
- wallet
- RPC08
- RPC09
- RPC
- cairo
- byteArray
Classes
- WalletAccount
- Account
- AccountInterface
- Deployer
- DeployerInterface
- Contract
- ContractInterface
- PaymasterRpc
- PaymasterInterface
- Provider
- LibraryError
- RpcError
- ProviderInterface
- LedgerSigner111
- LedgerSigner221
- LedgerSigner231
- SignerInterface
- Signer
- EthSigner
- TimeoutError
- WebSocketNotConnectedError
- WebSocketChannel
- Subscription
- BatchClient
- ResponseParser
- RPCResponseParser
- CairoUint8
- CairoUint16
- CairoUint64
- CairoUint96
- CairoUint128
- CairoUint256
- CairoUint512
- CairoInt8
- CairoInt16
- CairoInt32
- CairoInt64
- CairoInt128
- CairoFixedArray
- CairoByteArray
- CairoBytes31
- CairoFelt252
- CairoUint32
- CallData
- AbiParser2
- AbiParser1
- AbiParserInterface
- CairoCustomEnum
- CairoOption
- CairoResult
- ReceiptTx
Interfaces
- SubscribeNewHeadsParams
- SubscribeEventsParams
- SubscribeTransactionStatusParams
- SubscribeNewTransactionReceiptsParams
- SubscribeNewTransactionsParams
- Uint256
- Uint512
- Program
- ProviderOptions
- UniversalDetails
- PaymasterDetails
- DeployContractResponse
- OutsideExecutionOptions
- OutsideCall
- OutsideExecution
- OutsideTransaction
- PaymasterOptions
- TokenData
- PaymasterTimeBounds
References
RpcProvider
Renames and re-exports Provider
LedgerSigner
Renames and re-exports LedgerSigner111
getLedgerPathBuffer
Renames and re-exports getLedgerPathBuffer111
RpcChannel
Re-exports RpcChannel
TypedDataRevision
Re-exports TypedDataRevision
StarknetEnumType
Re-exports StarknetEnumType
StarknetMerkleType
Re-exports StarknetMerkleType
StarknetType
Re-exports StarknetType
StarknetDomain
Re-exports StarknetDomain
TypedData
Re-exports TypedData
Type Aliases
TypedContractV2
Ƭ TypedContractV2<TAbi>: AbiWanTypedContract<TAbi> & Contract
Type parameters
| Name | Type |
|---|---|
TAbi | extends AbiKanabi |
Defined in
TipEstimate
Ƭ TipEstimate: Object
Result of provider.getTipStatsFromBlocks().
Param
minimum tip encountered in the analyzed blocks.
Param
maximum tip encountered in the analyzed blocks.
Param
average tip encountered in the analyzed blocks.
Param
median (middle value) tip encountered in the analyzed blocks.
Param
mode (most frequent) tip encountered in the analyzed blocks.
Param
suggested tip amount (median tip) for optimal inclusion probability.
Param
90th percentile tip (90% of tips are below this value).
Param
95th percentile tip (95% of tips are below this value).
Param
Optional performance metrics for the analysis.
Type declaration
| Name | Type |
|---|---|
minTip | bigint |
maxTip | bigint |
averageTip | bigint |
medianTip | bigint |
modeTip | bigint |
recommendedTip | bigint |
p90Tip | bigint |
p95Tip | bigint |
metrics? | { blocksAnalyzed: number ; transactionsTipsFound: bigint[] } |
metrics.blocksAnalyzed | number |
metrics.transactionsTipsFound | bigint[] |
Defined in
src/provider/modules/tip.ts:22
TipType
Ƭ TipType: Exclude<keyof TipEstimate, "metrics">
Defined in
src/provider/modules/tip.ts:37
TipAnalysisOptions
Ƭ TipAnalysisOptions: Object
Options for customizing tip analysis behavior.
Type declaration
| Name | Type | Description |
|---|---|---|
maxBlocks? | number | Maximum number of blocks to analyze going backwards from the starting block. Default ts 3 |
minTxsNecessary? | number | Minimum number of transactions required to generate reliable statistics. Default ts 10 |
includeZeroTips? | boolean | Whether to include transactions with zero tips in the analysis. Default ts true |
Defined in
src/provider/modules/tip.ts:42
SubscriptionNewHeadsEvent
Ƭ SubscriptionNewHeadsEvent: Subscription<NewHeadsEvent["result"]>
Defined in
SubscriptionStarknetEventsEvent
Ƭ SubscriptionStarknetEventsEvent: Subscription<StarknetEventsEvent["result"]>
Defined in
SubscriptionTransactionStatusEvent
Ƭ SubscriptionTransactionStatusEvent: Subscription<TransactionsStatusEvent["result"]>
Defined in
SubscriptionNewTransactionReceiptsEvent
Ƭ SubscriptionNewTransactionReceiptsEvent: Subscription<NewTransactionReceiptsEvent["result"]>
Defined in
SubscriptionNewTransactionEvent
Ƭ SubscriptionNewTransactionEvent: Subscription<NewTransactionEvent["result"]>
Defined in
ReconnectOptions
Ƭ ReconnectOptions: Object
Options for configuring the automatic reconnection behavior of the WebSocketChannel.
Type declaration
| Name | Type | Description |
|---|---|---|
retries? | number | The number of retries to attempt before giving up. Default ts 5 |
delay? | number | The initial delay in milliseconds before the first retry. Default ts 2000 |
exponential? | number | boolean | Whether to use the exponential backoff (delay being doubled for each subsequent retry). Default ts true |
Defined in
WebSocketModule
Ƭ WebSocketModule: (nodeUrl: string) => WebSocket
The type of the WebSocket implementation.
Type declaration
• new WebSocketModule(nodeUrl): WebSocket
Parameters
| Name | Type |
|---|---|
nodeUrl | string |
Returns
WebSocket
Defined in
WebSocketOptions
Ƭ WebSocketOptions: Object
Options for configuring the WebSocketChannel.
Type declaration
| Name | Type | Description |
|---|---|---|
nodeUrl | string | The URL of the WebSocket endpoint of the Starknet node. Example ts 'ws://localhost:9545' |
websocket? | WebSocketModule | This parameter can be used to provide a custom WebSocket implementation. This is useful in environments where the global WebSocket object is not available (e.g., Node.js). Example typescript import WebSocket from 'ws'; const channel = new WebSocketChannel({ nodeUrl: '...', websocket: WebSocket }); |
maxBufferSize? | number | The maximum number of events to buffer per subscription when no handler is attached. Default ts 1000 |
autoReconnect? | boolean | Whether to automatically reconnect when the connection is lost. Default ts true |
reconnectOptions? | ReconnectOptions | Options for the automatic reconnection behavior. |
requestTimeout? | number | The timeout in milliseconds for a sendReceive call. Default ts 60000 |
Defined in
SubscriptionOptions
Ƭ SubscriptionOptions: Object
Options for creating a new Subscription instance
Type declaration
| Name | Type | Description |
|---|---|---|
channel | WebSocketChannel | The containing WebSocketChannel instance |
method | string | The JSON-RPC method used to create this subscription |
params? | object | The parameters used to create this subscription (optional, defaults to empty object) |
id | SUBSCRIPTION_ID | The unique identifier for this subscription |
maxBufferSize | number | The maximum number of events to buffer |
Defined in
src/channel/ws/subscription.ts:16
WeierstrassSignatureType
Ƭ WeierstrassSignatureType: SignatureType
Defined in
ArraySignatureType
Ƭ ArraySignatureType: string[]
Defined in
Signature
Ƭ Signature: ArraySignatureType | WeierstrassSignatureType
Defined in
BigNumberish
Ƭ BigNumberish: string | number | bigint
Defined in
ByteArray
Ƭ ByteArray: Object
Type declaration
| Name | Type |
|---|---|
data | BigNumberish[] |
pending_word | BigNumberish |
pending_word_len | BigNumberish |
Defined in
Calldata
Ƭ Calldata: string[] & { __compiled__?: true }
Compiled calldata ready to be sent
decimal-string array
Defined in
AbiEntryType
Ƭ AbiEntryType: AbiEntry["type"]
"Abi Entry type"
Example
'core::bytes_31::bytes31';
'core::bool';
'core::felt';
'core::uint256';
'core::uint512';
Defined in
RawCalldata
Ƭ RawCalldata: BigNumberish[]
BigNumberish array
use CallData.compile() to convert to Calldata
Defined in
HexCalldata
Ƭ HexCalldata: string[]
Hexadecimal-string array
Defined in
AllowArray
Ƭ AllowArray<T>: T | T[]
Type parameters
| Name |
|---|
T |
Defined in
OptionalPayload
Ƭ OptionalPayload<T>: { payload: T } | T
Type parameters
| Name |
|---|
T |
Defined in
RawArgs
Ƭ RawArgs: RawArgsObject | RawArgsArray
Defined in
RawArgsObject
Ƭ RawArgsObject: Object
Index signature
▪ [inputName: string]: MultiType | MultiType[] | RawArgs
Defined in
RawArgsArray
Ƭ RawArgsArray: (MultiType | MultiType[] | RawArgs)[]
Defined in
MultiType
Ƭ MultiType: BigNumberish | Uint256 | object | boolean | CairoEnum
Defined in
UniversalDeployerContractPayload
Ƭ UniversalDeployerContractPayload: Object
Type declaration
| Name | Type |
|---|---|
classHash | BigNumberish |
salt? | string |
unique? | boolean |
constructorCalldata? | RawArgs |
abi? | Abi |
Defined in
DeployAccountContractPayload
Ƭ DeployAccountContractPayload: Object
Type declaration
| Name | Type |
|---|---|
classHash | string |
constructorCalldata? | RawArgs |
addressSalt? | BigNumberish |
contractAddress? | string |
Defined in
DeployAccountContractTransaction
Ƭ DeployAccountContractTransaction: Omit<DeployAccountContractPayload, "contractAddress"> & { signature?: Signature }
Defined in
DeclareContractPayload
Ƭ DeclareContractPayload: DeclareWithCasm | DeclareWithCompiledClassHash
Payload for declaring a contract on Starknet. Either provide CASM code, or a pre-computed compiledClassHash for optimization.
Defined in
ContractClassIdentifier
Ƭ ContractClassIdentifier: DeclareContractPayload | { classHash: string }
DeclareContractPayload with classHash or contract defined
Defined in
CompleteDeclareContractPayload
Ƭ CompleteDeclareContractPayload: Object
Type declaration
| Name | Type |
|---|---|
contract | CompiledContract | string |
classHash | string |
casm? | CompiledSierraCasm |
compiledClassHash | string |
Defined in
DeclareAndDeployContractPayload
Ƭ DeclareAndDeployContractPayload: Omit<UniversalDeployerContractPayload, "classHash"> & DeclareContractPayload
Defined in
DeclareContractTransaction
Ƭ DeclareContractTransaction: Object
Type declaration
| Name | Type |
|---|---|
contract | ContractClass |
senderAddress | string |
signature? | Signature |
compiledClassHash? | string |
Defined in
CallDetails
Ƭ CallDetails: Object
Type declaration
| Name | Type |
|---|---|
contractAddress | string |
calldata? | RawArgs | Calldata |
Defined in
Invocation
Ƭ Invocation: CallDetails & { signature?: Signature }
Defined in
Call
Ƭ Call: CallDetails & { entrypoint: string }
Defined in
CairoVersion
Ƭ CairoVersion: "0" | "1" | undefined
Defined in
CompilerVersion
Ƭ CompilerVersion: "0" | "1" | "2" | undefined
Defined in
InvocationsDetails
Ƭ InvocationsDetails: { nonce?: BigNumberish ; maxFee?: BigNumberish ; version?: BigNumberish } & Partial<V3TransactionDetails>
Defined in
V3TransactionDetails
Ƭ V3TransactionDetails: Object
Type declaration
| Name | Type |
|---|---|
nonce | BigNumberish |
version | BigNumberish |
resourceBounds | ResourceBoundsBN |
tip | BigNumberish |
paymasterData | BigNumberish[] |
accountDeploymentData | BigNumberish[] |
nonceDataAvailabilityMode | EDataAvailabilityMode |
feeDataAvailabilityMode | EDataAvailabilityMode |
Defined in
Details
Ƭ Details: Object
Contain all additional details params
Type declaration
| Name | Type |
|---|---|
nonce | BigNumberish |
maxFee | BigNumberish |
version | BigNumberish |
chainId | StarknetChainId |
Defined in
InvocationsDetailsWithNonce
Ƭ InvocationsDetailsWithNonce: InvocationsDetails & { nonce: BigNumberish } | V3TransactionDetails
Defined in
BlockNumber
Ƭ BlockNumber: BlockTag | null | number
new statuses are defined by props: finality_status and execution_status to be #deprecated
Defined in
BlockIdentifier
Ƭ BlockIdentifier: BlockNumber | BigNumberish
hex string and BigInt are detected as block hashes
decimal string and number are detected as block numbers
text string are detected as block tag
null return 'pending' block tag
Defined in
SubscriptionBlockIdentifier
Ƭ SubscriptionBlockIdentifier: SubscriptionBlockTag | string & {} | number | bigint
Defined in
AccountInvocationItem
Ƭ AccountInvocationItem: { type: typeof DECLARE } & DeclareContractTransaction | { type: typeof DEPLOY_ACCOUNT } & DeployAccountContractTransaction | { type: typeof INVOKE } & Invocation & InvocationsDetailsWithNonce
items used by AccountInvocations
Defined in
AccountInvocations
Ƭ AccountInvocations: AccountInvocationItem[]
Complete invocations array with account details (internal type from account -> provider)
Defined in
Invocations
Ƭ Invocations: ({ type: typeof DECLARE } & OptionalPayload<DeclareContractPayload> | { type: typeof DEPLOY } & OptionalPayload<AllowArray<UniversalDeployerContractPayload>> | { type: typeof DEPLOY_ACCOUNT } & OptionalPayload<DeployAccountContractPayload> | { type: typeof INVOKE } & OptionalPayload<AllowArray<Call>>)[]
Invocations array user provide to bulk method (simulate)
Defined in
Tupled
Ƭ Tupled: Object
Type declaration
| Name | Type |
|---|---|
element | any |
type | string |
Defined in
Args
Ƭ Args: Object
Index signature
▪ [inputName: string]: BigNumberish | BigNumberish[] | ParsedStruct | ParsedStruct[]
Defined in
ParsedStruct
Ƭ ParsedStruct: Object
Index signature
▪ [key: string]: BigNumberish | BigNumberish[] | ParsedStruct | Uint256
Defined in
waitForTransactionOptions
Ƭ waitForTransactionOptions: Object
Type declaration
| Name | Type | Description |
|---|---|---|
lifeCycleRetries? | number | Define the number of retries before throwing an error for the transaction life cycle when the transaction is not found after it had a valid status. This is useful for nodes that are not fully synced yet when connecting to service that rotate nodes. |
retries? | number | Define the number of retries before throwing an error |
retryInterval? | number | Define the time interval between retries in milliseconds |
successStates? | (TransactionFinalityStatus | TransactionExecutionStatus)[] | Define which states are considered as successful |
errorStates? | (TransactionFinalityStatus | TransactionExecutionStatus)[] | Define which states are considered as errors |
Defined in
fastWaitForTransactionOptions
Ƭ fastWaitForTransactionOptions: Object
Type declaration
| Name | Type |
|---|---|
retries? | number |
retryInterval? | number |
Defined in
getSimulateTransactionOptions
Ƭ getSimulateTransactionOptions: Object
Type declaration
| Name | Type |
|---|---|
blockIdentifier? | BlockIdentifier |
skipValidate? | boolean |
skipExecute? | boolean |
skipFeeCharge? | boolean |
Defined in
getContractVersionOptions
Ƭ getContractVersionOptions: Object
Type declaration
| Name | Type |
|---|---|
blockIdentifier? | BlockIdentifier |
compiler? | boolean |
Defined in
getEstimateFeeBulkOptions
Ƭ getEstimateFeeBulkOptions: Object
Type declaration
| Name | Type |
|---|---|
blockIdentifier? | BlockIdentifier |
skipValidate? | boolean |
Defined in
ContractVersion
Ƭ ContractVersion: Object
Represent Contract version
Type declaration
| Name | Type | Description |
|---|---|---|
cairo | CairoVersion | version of the cairo language |
compiler | CompilerVersion | version of the cairo compiler used to compile the contract |
Defined in
ContractClass
Ƭ ContractClass: LegacyContractClass | SierraContractClass
format produced after compressing compiled contract
CompressedCompiledContract
Defined in
src/types/lib/contract/index.ts:11
CompiledContract
Ƭ CompiledContract: LegacyCompiledContract | CompiledSierra
format produced after compile .cairo to .json
Defined in
src/types/lib/contract/index.ts:16
CairoContract
Ƭ CairoContract: ContractClass | CompiledContract
Compressed or decompressed Cairo0 or Cairo1 Contract
Defined in
src/types/lib/contract/index.ts:21
EntryPointType
Ƭ EntryPointType: ValuesType<typeof EntryPointType>
Defined in
src/types/lib/contract/index.ts:24
src/types/lib/contract/index.ts:30
Abi
Ƭ Abi: ReadonlyArray<FunctionAbi | AbiEvent | AbiStruct | InterfaceAbi | any>
ABI
Defined in
src/types/lib/contract/abi.ts:6
AbiEntry
Ƭ AbiEntry: Object
Type declaration
| Name | Type |
|---|---|
name | string |
type | "felt" | "felt*" | "event" | string |
Defined in
src/types/lib/contract/abi.ts:9
EventEntry
Ƭ EventEntry: Object
Type declaration
| Name | Type |
|---|---|
name | string |
type | "felt" | "felt*" | string |
kind | "key" | "data" |
Defined in
src/types/lib/contract/abi.ts:11
FunctionAbi
Ƭ FunctionAbi: Object
Type declaration
| Name | Type |
|---|---|
inputs | AbiEntry[] |
name | string |
outputs | AbiEntry[] |
stateMutability? | "view" |
state_mutability? | string |
type | FunctionAbiType |
Defined in
src/types/lib/contract/abi.ts:16
AbiStructs
Ƭ AbiStructs: Object
Index signature
▪ [name: string]: AbiStruct
Defined in
src/types/lib/contract/abi.ts:25
AbiStruct
Ƭ AbiStruct: Object
Type declaration
| Name | Type |
|---|---|
members | AbiEntry & { offset: number }[] |
name | string |
size | number |
type | "struct" |
Defined in
src/types/lib/contract/abi.ts:27
AbiInterfaces
Ƭ AbiInterfaces: Object
Index signature
▪ [name: string]: InterfaceAbi
Defined in
src/types/lib/contract/abi.ts:34
InterfaceAbi
Ƭ InterfaceAbi: Object
Type declaration
| Name | Type |
|---|---|
items | FunctionAbi[] |
name | string |
type | "interface" |
Defined in
src/types/lib/contract/abi.ts:35
AbiEnums
Ƭ AbiEnums: Object
Index signature
▪ [name: string]: AbiEnum
Defined in
src/types/lib/contract/abi.ts:41
AbiEnum
Ƭ AbiEnum: Object
Type declaration
| Name | Type |
|---|---|
variants | AbiEntry & { offset: number }[] |
name | string |
size | number |
type | "enum" |
Defined in
src/types/lib/contract/abi.ts:42
AbiEvents
Ƭ AbiEvents: Object
Index signature
▪ [hash: string]: AbiEvent
Defined in
src/types/lib/contract/abi.ts:55
AbiEvent
Ƭ AbiEvent: CairoEvent | LegacyEvent
Defined in
src/types/lib/contract/abi.ts:59
CairoEvent
Ƭ CairoEvent: CairoEventDefinition | AbiEvents
Defined in
src/types/lib/contract/abi.ts:62
CairoEventDefinition
Ƭ CairoEventDefinition: STRUCT_EVENT & { name: string ; type: "event" }
Defined in
src/types/lib/contract/abi.ts:64
CairoEventVariant
Ƭ CairoEventVariant: ENUM_EVENT & { name: string ; type: string }
Defined in
src/types/lib/contract/abi.ts:69
LegacyEvent
Ƭ LegacyEvent: Object
Type declaration
| Name | Type |
|---|---|
name | string |
type | "event" |
data | EVENT_FIELD[] |
keys | EVENT_FIELD[] |
Defined in
src/types/lib/contract/abi.ts:74
LegacyContractClass
Ƭ LegacyContractClass: Object
format produced after compressing 'program' property
Type declaration
| Name | Type |
|---|---|
program | CompressedProgram |
entry_points_by_type | EntryPointsByType |
abi | Abi |
Defined in
src/types/lib/contract/legacy.ts:7
LegacyCompiledContract
Ƭ LegacyCompiledContract: Omit<LegacyContractClass, "program"> & { program: Program }
format produced after compiling .cairo to .json
Defined in
src/types/lib/contract/legacy.ts:16
Builtins
Ƭ Builtins: string[]
SUBTYPES
Defined in
src/types/lib/contract/legacy.ts:21
CompressedProgram
Ƭ CompressedProgram: string
Defined in
src/types/lib/contract/legacy.ts:22
Hint
Ƭ Hint: Record<string, unknown>
Defined in
src/types/lib/contract/legacy.ts:23
EntryPointsByType
Ƭ EntryPointsByType: Object
Type declaration
| Name | Type |
|---|---|
CONSTRUCTOR | ContractEntryPointFields[] |
EXTERNAL | ContractEntryPointFields[] |
L1_HANDLER | ContractEntryPointFields[] |
Defined in
src/types/lib/contract/legacy.ts:25
ContractEntryPointFields
Ƭ ContractEntryPointFields: Object
Type declaration
| Name | Type |
|---|---|
selector | string |
offset | string | number |
builtins? | Builtins |
Defined in
src/types/lib/contract/legacy.ts:31
CairoAssembly
Ƭ CairoAssembly: Object
Cairo Assembly .casm
Type declaration
| Name | Type |
|---|---|
prime | string |
compiler_version | string |
bytecode | ByteCode |
hints | any[] |
pythonic_hints? | PythonicHints |
bytecode_segment_lengths? | number[] |
entry_points_by_type | EntryPointsByType |
Defined in
src/types/lib/contract/sierra.ts:5
CompiledSierra
Ƭ CompiledSierra: Object
format produced after starknet-compile .cairo to .json
sierra_program is hex array
Type declaration
| Name | Type |
|---|---|
sierra_program | ByteCode |
sierra_program_debug_info? | SierraProgramDebugInfo |
contract_class_version | string |
entry_points_by_type | SierraEntryPointsByType |
abi | Abi |
Defined in
src/types/lib/contract/sierra.ts:21
SierraContractClass
Ƭ SierraContractClass: Omit<CompiledSierra, "abi" | "sierra_program" | "sierra_program_debug_info"> & { sierra_program: string ; abi: string }
format produced after compressing 'sierra_program', stringifies 'abi' property and omit sierra_program_debug_info
CompressedCompiledSierra
Defined in
src/types/lib/contract/sierra.ts:34
CompiledSierraCasm
Ƭ CompiledSierraCasm: CairoAssembly
Defined in
src/types/lib/contract/sierra.ts:42
ByteCode
Ƭ ByteCode: string[]
SUBTYPES
Defined in
src/types/lib/contract/sierra.ts:45
PythonicHints
Ƭ PythonicHints: [number, string[]][]
Defined in
src/types/lib/contract/sierra.ts:46
SierraProgramDebugInfo
Ƭ SierraProgramDebugInfo: Object
Type declaration
| Name | Type |
|---|---|
type_names | [number, string][] |
libfunc_names | [number, string][] |
user_func_names | [number, string][] |
Defined in
src/types/lib/contract/sierra.ts:48
SierraEntryPointsByType
Ƭ SierraEntryPointsByType: Object
Type declaration
| Name | Type |
|---|---|
CONSTRUCTOR | SierraContractEntryPointFields[] |
EXTERNAL | SierraContractEntryPointFields[] |
L1_HANDLER | SierraContractEntryPointFields[] |
Defined in
src/types/lib/contract/sierra.ts:54
SierraContractEntryPointFields
Ƭ SierraContractEntryPointFields: Object
Type declaration
| Name | Type |
|---|---|
selector | string |
function_idx | number |
Defined in
src/types/lib/contract/sierra.ts:60
RpcProviderOptions
Ƭ RpcProviderOptions: Object
Type declaration
| Name | Type | Description |
|---|---|---|
nodeUrl? | string | NetworkName | - |
retries? | waitForTransactionOptions["retries"] | Define the number of retries for waitForTransaction |
transactionRetryIntervalFallback? | number | Define the time interval between retries in milliseconds |
headers? | object | Define the headers |
blockIdentifier? | BlockIdentifier | - |
chainId? | StarknetChainId | - |
specVersion? | SupportedRpcVersion | - |
default? | boolean | - |
waitMode? | boolean | - |
baseFetch? | WindowOrWorkerGlobalScope["fetch"] | - |
resourceBoundsOverhead? | ResourceBoundsOverhead | false | - |
batch? | false | number | - |
Defined in
src/provider/types/configuration.type.ts:7
Block
Ƭ Block: Simplify<BLOCK_WITH_TX_HASHES>
Defined in
src/provider/types/response.type.ts:32
PendingBlock
Ƭ PendingBlock: Simplify<PENDING_BLOCK_WITH_TX_HASHES>
Defined in
src/provider/types/response.type.ts:33
GetBlockResponse
Ƭ GetBlockResponse: Simplify<BlockWithTxHashes>
Defined in
src/provider/types/response.type.ts:34
GetTxReceiptResponseWithoutHelper
Ƭ GetTxReceiptResponseWithoutHelper: TransactionReceipt
Defined in
src/provider/types/response.type.ts:36
SuccessfulTransactionReceiptResponse
Ƭ SuccessfulTransactionReceiptResponse: IsSucceeded<TransactionReceipt>
Defined in
src/provider/types/response.type.ts:38
RevertedTransactionReceiptResponse
Ƭ RevertedTransactionReceiptResponse: IsReverted<TransactionReceipt>
Defined in
src/provider/types/response.type.ts:39
InvokeTransactionReceiptResponse
Ƭ InvokeTransactionReceiptResponse: IsType<TransactionReceipt, "INVOKE">
Defined in
src/provider/types/response.type.ts:40
DeployTransactionReceiptResponse
Ƭ DeployTransactionReceiptResponse: InvokeTransactionReceiptResponse
Defined in
src/provider/types/response.type.ts:41
DeclareTransactionReceiptResponse
Ƭ DeclareTransactionReceiptResponse: IsType<TransactionReceipt, "DECLARE">
Defined in
src/provider/types/response.type.ts:42
DeployAccountTransactionReceiptResponse
Ƭ DeployAccountTransactionReceiptResponse: IsType<TransactionReceipt, "DEPLOY_ACCOUNT">
Defined in
src/provider/types/response.type.ts:43
L1HandlerTransactionReceiptResponse
Ƭ L1HandlerTransactionReceiptResponse: IsType<TransactionReceipt, "L1_HANDLER">
Defined in
src/provider/types/response.type.ts:44
GetTransactionResponse
Ƭ GetTransactionResponse: TransactionWithHash
Defined in
src/provider/types/response.type.ts:46
EstimateFeeResponseOverhead
Ƭ EstimateFeeResponseOverhead: Object
Estimate fee response with overhead
Type declaration
| Name | Type |
|---|---|
resourceBounds | ResourceBoundsBN |
overall_fee | bigint |
unit | PRICE_UNIT |
Defined in
src/provider/types/response.type.ts:51
EstimateFeeResponseBulkOverhead
Ƭ EstimateFeeResponseBulkOverhead: EstimateFeeResponseOverhead[]
Defined in
src/provider/types/response.type.ts:57
InvokeFunctionResponse
Ƭ InvokeFunctionResponse: InvokedTransaction
Defined in
src/provider/types/response.type.ts:59
DeclareContractResponse
Ƭ DeclareContractResponse: DeclaredTransaction
Defined in
src/provider/types/response.type.ts:61
CallContractResponse
Ƭ CallContractResponse: string[]
Defined in
src/provider/types/response.type.ts:63
Storage
Ƭ Storage: FELT
Defined in
src/provider/types/response.type.ts:65
Nonce
Ƭ Nonce: string
Defined in
src/provider/types/response.type.ts:67
SimulationFlags
Ƭ SimulationFlags: SIMULATION_FLAG[]
Defined in
src/provider/types/response.type.ts:70
SimulateTransactionOverhead
Ƭ SimulateTransactionOverhead: { transaction_trace: TransactionTrace } & EstimateFeeResponseOverhead
Defined in
src/provider/types/response.type.ts:72
SimulateTransactionOverheadResponse
Ƭ SimulateTransactionOverheadResponse: SimulateTransactionOverhead[]
Defined in
src/provider/types/response.type.ts:76
PreConfirmedStateUpdate
Ƭ PreConfirmedStateUpdate: PRE_CONFIRMED_STATE_UPDATE
Defined in
src/provider/types/response.type.ts:78
StateUpdate
Ƭ StateUpdate: STATE_UPDATE
Defined in
src/provider/types/response.type.ts:79
StateUpdateResponse
Ƭ StateUpdateResponse: StateUpdate | PreConfirmedStateUpdate
Defined in
src/provider/types/response.type.ts:80
PendingStateUpdate
Ƭ PendingStateUpdate: PENDING_STATE_UPDATE
PreConfirmedStateUpdate but left old name
Defined in
src/provider/types/response.type.ts:84
ContractClassResponse
Ƭ ContractClassResponse: LegacyContractClass | Omit<CompiledSierra, "sierra_program_debug_info">
Standardized type
Cairo0 program compressed and Cairo1 sierra_program decompressed
abi Abi
CompiledSierra without '.sierra_program_debug_info'
Defined in
src/provider/types/response.type.ts:95
GasPrices
Ƭ GasPrices: Object
Result of provider.getGasPrices().
Param
price in fri of the layer 1 data gas price.
Param
price in fri of the layer 1 gas price.
Param
price in fri of the layer 2 gas price.
Type declaration
| Name | Type |
|---|---|
l1DataGasPrice | bigint |
l1GasPrice | bigint |
l2GasPrice | bigint |
Defined in
src/provider/types/gasPrice.type.ts:7
Simplify
Ƭ Simplify<T>: { [K in keyof T]: T[K] } & {}
Type parameters
| Name |
|---|
T |
Defined in
src/provider/types/spec.type.ts:7
RequiredKeysOf
Ƭ RequiredKeysOf<T>: Exclude<{ [K in keyof T]: T extends Record<K, T[K]> ? K : never }[keyof T], undefined>
Type parameters
| Name | Type |
|---|---|
T | extends object |
Defined in
src/provider/types/spec.type.ts:10
ETransactionVersion
Ƭ ETransactionVersion: ETransactionVersion
Defined in
src/provider/types/spec.type.ts:55
src/provider/types/spec.type.ts:56
ETransactionVersion2
Ƭ ETransactionVersion2: ETransactionVersion2
Defined in
src/provider/types/spec.type.ts:58
src/provider/types/spec.type.ts:59
ETransactionVersion3
Ƭ ETransactionVersion3: ETransactionVersion3
Defined in
src/provider/types/spec.type.ts:61
src/provider/types/spec.type.ts:62
BLOCK_HASH
Ƭ BLOCK_HASH: Merge<BLOCK_HASH, BLOCK_HASH>
Defined in
src/provider/types/spec.type.ts:65
BLOCK_NUMBER
Ƭ BLOCK_NUMBER: Merge<BLOCK_NUMBER, BLOCK_NUMBER>
Defined in
src/provider/types/spec.type.ts:66
FELT
Defined in
src/provider/types/spec.type.ts:67
TXN_HASH
Ƭ TXN_HASH: Merge<TXN_HASH, TXN_HASH>
Defined in
src/provider/types/spec.type.ts:68
PRICE_UNIT
Ƭ PRICE_UNIT: Merge<PRICE_UNIT, PRICE_UNIT>
Defined in
src/provider/types/spec.type.ts:70
RESOURCE_PRICE
Ƭ RESOURCE_PRICE: Merge<RESOURCE_PRICE, RESOURCE_PRICE>
Defined in
src/provider/types/spec.type.ts:71
SIMULATION_FLAG
Ƭ SIMULATION_FLAG: Merge<SIMULATION_FLAG, SIMULATION_FLAG>
Defined in
src/provider/types/spec.type.ts:72
STATE_UPDATE
Ƭ STATE_UPDATE: Merge<STATE_UPDATE, STATE_UPDATE>
Defined in
src/provider/types/spec.type.ts:74
PENDING_STATE_UPDATE
Ƭ PENDING_STATE_UPDATE: Merge<PENDING_STATE_UPDATE, PRE_CONFIRMED_STATE_UPDATE>
Defined in
src/provider/types/spec.type.ts:75
PRE_CONFIRMED_STATE_UPDATE
Ƭ PRE_CONFIRMED_STATE_UPDATE: PRE_CONFIRMED_STATE_UPDATE
Defined in
src/provider/types/spec.type.ts:79
PENDING_INVOKE_TXN_RECEIPT
Ƭ PENDING_INVOKE_TXN_RECEIPT: IsPending<IsType<TransactionReceipt, "INVOKE">>
Defined in
src/provider/types/spec.type.ts:89
PENDING_DECLARE_TXN_RECEIPT
Ƭ PENDING_DECLARE_TXN_RECEIPT: IsPending<IsType<TransactionReceipt, "DECLARE">>
Defined in
src/provider/types/spec.type.ts:92
PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT
Ƭ PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT: IsPending<IsType<TransactionReceipt, "DEPLOY_ACCOUNT">>
Defined in
src/provider/types/spec.type.ts:95
PENDING_L1_HANDLER_TXN_RECEIPT
Ƭ PENDING_L1_HANDLER_TXN_RECEIPT: IsPending<IsType<TransactionReceipt, "L1_HANDLER">>
Defined in
src/provider/types/spec.type.ts:98
BlockWithTxHashes
Ƭ BlockWithTxHashes: Merge<BlockWithTxHashes, BlockWithTxHashes>
Defined in
src/provider/types/spec.type.ts:103
ContractClassPayload
Ƭ ContractClassPayload: Merge<ContractClass, ContractClass>
Defined in
src/provider/types/spec.type.ts:104
DeclaredTransaction
Ƭ DeclaredTransaction: Merge<DeclaredTransaction, DeclaredTransaction>
Defined in
src/provider/types/spec.type.ts:105
InvokedTransaction
Ƭ InvokedTransaction: Merge<InvokedTransaction, InvokedTransaction>
Defined in
src/provider/types/spec.type.ts:109
DeployedAccountTransaction
Ƭ DeployedAccountTransaction: Merge<DeployedAccountTransaction, DeployedAccountTransaction>
Defined in
src/provider/types/spec.type.ts:110
L1_HANDLER_TXN
Ƭ L1_HANDLER_TXN: L1_HANDLER_TXN
Defined in
src/provider/types/spec.type.ts:115
EDataAvailabilityMode
Ƭ EDataAvailabilityMode: EDataAvailabilityMode
Defined in
src/provider/types/spec.type.ts:116
src/provider/types/spec.type.ts:117
EDAMode
Ƭ EDAMode: EDAMode
Defined in
src/provider/types/spec.type.ts:118
src/provider/types/spec.type.ts:119
EmittedEvent
Ƭ EmittedEvent: Merge<EmittedEvent, EmittedEvent>
Defined in
src/provider/types/spec.type.ts:120
Event
Defined in
src/provider/types/spec.type.ts:121
PendingReceipt
Ƭ PendingReceipt: Merge<TransactionReceiptPendingBlock, TransactionReceiptPreConfirmedBlock>
Defined in
src/provider/types/spec.type.ts:123
Receipt
Ƭ Receipt: Merge<TransactionReceiptProductionBlock, TransactionReceiptProductionBlock>
Defined in
src/provider/types/spec.type.ts:127
FeeEstimate
Ƭ FeeEstimate: Merge<FEE_ESTIMATE, FEE_ESTIMATE>
original response from estimate fee without parsing
Defined in
src/provider/types/spec.type.ts:135
ApiEstimateFeeResponse
Ƭ ApiEstimateFeeResponse: FeeEstimate[]
Defined in
src/provider/types/spec.type.ts:136
ResourceBounds
Ƭ ResourceBounds: Merge<ResourceBounds, ResourceBounds>
Defined in
src/provider/types/spec.type.ts:148
EventFilter
Ƭ EventFilter: EventFilter
Defined in
src/provider/types/spec.type.ts:150
ResourceBoundsOverhead
Ƭ ResourceBoundsOverhead: { [K in keyof ResourceBounds]: ResourceBounds[K] extends object ? { [P in keyof ResourceBounds[K]]: number } : number }
Represents percentage overhead for each resource bound numerical 50 means 50% overhead
Defined in
src/provider/types/spec.type.ts:156
ResourceBoundsBN
Ƭ ResourceBoundsBN: { [K in keyof ResourceBounds]: ResourceBounds[K] extends object ? { [P in keyof ResourceBounds[K]]: bigint } : number }
Resource bounds in big number format
Defined in
src/provider/types/spec.type.ts:167
SimulateTransaction
Ƭ SimulateTransaction: SimpleOneOf<SimulateTransaction, SimulateTransaction>
Defined in
src/provider/types/spec.type.ts:175
SimulateTransactionResponse
Ƭ SimulateTransactionResponse: SimpleOneOf<SimulateTransactionResponse, SimulateTransactionResponse>
Defined in
src/provider/types/spec.type.ts:179
TransactionTrace
Ƭ TransactionTrace: SimpleOneOf<TRANSACTION_TRACE, TRANSACTION_TRACE>
Defined in
src/provider/types/spec.type.ts:184
TransactionWithHash
Ƭ TransactionWithHash: Merge<TransactionWithHash, TransactionWithHash>
Defined in
src/provider/types/spec.type.ts:189
TransactionReceipt
Ƭ TransactionReceipt: Merge<TransactionReceipt, TransactionReceipt>
Defined in
src/provider/types/spec.type.ts:194
Methods
Ƭ Methods: Methods
Defined in
src/provider/types/spec.type.ts:195
TXN_STATUS
Ƭ TXN_STATUS: Merge<TXN_STATUS, TXN_STATUS>
Defined in
src/provider/types/spec.type.ts:196
TXN_EXECUTION_STATUS
Ƭ TXN_EXECUTION_STATUS: Merge<TXN_EXECUTION_STATUS, TXN_EXECUTION_STATUS>
Defined in
src/provider/types/spec.type.ts:197
TransactionStatus
Ƭ TransactionStatus: Merge<TransactionStatus, TransactionStatus>
Defined in
src/provider/types/spec.type.ts:201
ETransactionStatus
Ƭ ETransactionStatus: ETransactionStatus
Defined in
src/provider/types/spec.type.ts:202
src/provider/types/spec.type.ts:203
ETransactionExecutionStatus
Ƭ ETransactionExecutionStatus: ETransactionExecutionStatus
Defined in
src/provider/types/spec.type.ts:204
src/provider/types/spec.type.ts:205
FEE_ESTIMATE
Ƭ FEE_ESTIMATE: Merge<FEE_ESTIMATE, FEE_ESTIMATE>
Defined in
src/provider/types/spec.type.ts:207
EVENTS_CHUNK
Ƭ EVENTS_CHUNK: Merge<EVENTS_CHUNK, EVENTS_CHUNK>
Defined in
src/provider/types/spec.type.ts:208
TransactionType
Ƭ TransactionType: ETransactionType
Defined in
src/provider/types/spec.type.ts:210
src/provider/types/spec.type.ts:211
BlockStatus
Ƭ BlockStatus: EBlockStatus
Defined in
src/provider/types/spec.type.ts:213
src/provider/types/spec.type.ts:214
TransactionFinalityStatus
Ƭ TransactionFinalityStatus: ETransactionFinalityStatus
Defined in
src/provider/types/spec.type.ts:216
src/provider/types/spec.type.ts:217
TransactionExecutionStatus
Ƭ TransactionExecutionStatus: ETransactionExecutionStatus
Defined in
src/provider/types/spec.type.ts:219
src/provider/types/spec.type.ts:220
BlockTag
Ƭ BlockTag: EBlockTag
Defined in
src/provider/types/spec.type.ts:222
src/provider/types/spec.type.ts:223
AccountOptions
Ƭ AccountOptions: Object
Configuration options for creating an Account instance
Type declaration
| Name | Type | Description |
|---|---|---|
provider | ProviderOptions | ProviderInterface | Provider instance or configuration for blockchain interaction |
address | string | Account address on the Starknet network |
signer | Uint8Array | string | SignerInterface | Private key or Signer Class instance for signing transactions |
cairoVersion? | CairoVersion | Cairo version to use for this account (optional, auto-detected if not provided) |
transactionVersion? | SupportedTransactionVersion | Transaction version to use for sending transactions (optional) |
paymaster? | PaymasterOptions | PaymasterInterface | Paymaster configuration for sponsored transactions (optional) |
deployer? | DeployerInterface | Use of a custom account deployer contract (optional) |
defaultTipType? | TipType | Default tip type to use for sending transactions (optional) Default ts 'recommendedTip' |
Defined in
src/account/types/index.type.ts:31
EstimateFeeBulk
Ƭ EstimateFeeBulk: EstimateFeeResponseOverhead[]
Defined in
src/account/types/index.type.ts:53
AccountInvocationsFactoryDetails
Ƭ AccountInvocationsFactoryDetails: { versions: `${ETransactionVersion3}`[] ; nonce?: BigNumberish ; blockIdentifier?: BlockIdentifier ; skipValidate?: boolean } & Partial<V3TransactionDetails>
Defined in
src/account/types/index.type.ts:56
MultiDeployContractResponse
Ƭ MultiDeployContractResponse: Object
Type declaration
| Name | Type |
|---|---|
contract_address | string[] |
transaction_hash | string |
Defined in
src/account/types/index.type.ts:87
DeclareDeployUDCResponse
Ƭ DeclareDeployUDCResponse: Object
Type declaration
| Name | Type |
|---|---|
declare | { class_hash: BigNumberish } & Partial<DeclareTransactionReceiptResponse> |
deploy | DeployContractUDCResponse |
Defined in
src/account/types/index.type.ts:92
SimulateTransactionDetails
Ƭ SimulateTransactionDetails: { nonce?: BigNumberish ; blockIdentifier?: BlockIdentifier ; skipValidate?: boolean ; skipExecute?: boolean } & Partial<V3TransactionDetails>
Defined in
src/account/types/index.type.ts:99
StarkProfile
Ƭ StarkProfile: Object
Type declaration
| Name | Type |
|---|---|
name? | string |
profilePicture? | string |
discord? | string |
twitter? | string |
github? | string |
proofOfPersonhood? | boolean |
Defined in
src/account/types/index.type.ts:106
fastExecuteResponse
Ƭ fastExecuteResponse: Object
Type declaration
| Name | Type |
|---|---|
txResult | InvokeFunctionResponse |
isReady | boolean |
Defined in
src/account/types/index.type.ts:115
CairoEnum
Ƭ CairoEnum: CairoCustomEnum | CairoOption<any> | CairoResult<any, any>
Defined in
ValidateType
Ƭ ValidateType: ValuesType<typeof ValidateType>
Defined in
Uint
Ƭ Uint: ValuesType<typeof Uint>
Defined in
Int
Ƭ Int: ValuesType<typeof Int>
Defined in
Literal
Ƭ Literal: ValuesType<typeof Literal>
Defined in
AsyncContractFunction
Ƭ AsyncContractFunction<T>: (...args: ArgsOrCalldataWithOptions) => Promise<T>
Type parameters
| Name | Type |
|---|---|
T | any |
Type declaration
▸ (...args): Promise<T>
Parameters
| Name | Type |
|---|---|
...args | ArgsOrCalldataWithOptions |
Returns
Promise<T>
Defined in
src/contract/types/index.type.ts:19
ContractFunction
Ƭ ContractFunction: (...args: ArgsOrCalldataWithOptions) => any
Type declaration
▸ (...args): any
Parameters
| Name | Type |
|---|---|
...args | ArgsOrCalldataWithOptions |
Returns
any
Defined in
src/contract/types/index.type.ts:20
CallResult
Ƭ CallResult: { [key: string]: any; } | CallResult[] | bigint | string | boolean | CairoEnum
Defined in
src/contract/types/index.type.ts:22
ArgsOrCalldata
Ƭ ArgsOrCalldata: RawArgsArray | [Calldata] | Calldata
Defined in
src/contract/types/index.type.ts:36
ArgsOrCalldataWithOptions
Ƭ ArgsOrCalldataWithOptions: [...RawArgsArray] | [...RawArgsArray, ContractOptions] | [Calldata] | [Calldata, ContractOptions] | [...Calldata] | [...Calldata, ContractOptions]
Defined in
src/contract/types/index.type.ts:47
CommonContractOptions
Ƭ CommonContractOptions: Object
Type declaration
| Name | Type | Description |
|---|---|---|
parseRequest? | boolean | compile and validate arguments Default ts true |
parseResponse? | boolean | Parse elements of the response array and structuring them into response object Default ts true |
parsingStrategy? | ParsingStrategy | Custom parsing strategy for request/response processing |
Defined in
src/contract/types/index.type.ts:63
ContractOptions
Ƭ ContractOptions: { abi: Abi ; address: string ; providerOrAccount?: ProviderOrAccount ; classHash?: string } & CommonContractOptions
Defined in
src/contract/types/index.type.ts:82
ExecuteOptions
Ƭ ExecuteOptions: Pick<CommonContractOptions, "parseRequest"> & { signature?: Signature ; salt?: string ; waitForTransaction?: boolean } & Partial<UniversalDetails>
Defined in
src/contract/types/index.type.ts:98
CallOptions
Ƭ CallOptions: CommonContractOptions & { formatResponse?: FormatResponse } & Pick<UniversalDetails, "blockIdentifier" | "version">
Defined in
src/contract/types/index.type.ts:114
WithOptions
Ƭ WithOptions: ExecuteOptions & CallOptions
Defined in
src/contract/types/index.type.ts:118
ParsedEvent
Ƭ ParsedEvent: { [name: string]: ParsedStruct; } & { block_hash?: BlockHash ; block_number?: BlockNumber ; transaction_hash?: TransactionHash }
Defined in
src/contract/types/index.type.ts:120
ParsedEvents
Ƭ ParsedEvents: ParsedEvent[] & { getByPath?: (path: string) => null | ParsedStruct }
Defined in
src/contract/types/index.type.ts:126
FormatResponse
Ƭ FormatResponse: Object
Advance formatting used to get js types data as result
Description
https://starknetjs.com/docs/guides/define_call_message/#formatresponse
Example
// assign custom or existing method to resulting data
formatResponse: { balance: uint256ToBN },
Example
// define resulting data js types
const formatAnswer = { id: 'number', description: 'string' };
Index signature
▪ [key: string]: any
Defined in
src/contract/types/index.type.ts:145
ProviderOrAccount
Ƭ ProviderOrAccount: ProviderInterface | AccountInterface
Defined in
src/contract/types/index.type.ts:147
FactoryParams
Ƭ FactoryParams: DeclareAndDeployParams | DeployOnlyParams & CommonContractOptions
Defined in
src/contract/types/index.type.ts:180
RPC_ERROR_SET
Ƭ RPC_ERROR_SET: Object
Type declaration
| Name | Type |
|---|---|
FAILED_TO_RECEIVE_TXN | FAILED_TO_RECEIVE_TXN |
NO_TRACE_AVAILABLE | NO_TRACE_AVAILABLE |
CONTRACT_NOT_FOUND | CONTRACT_NOT_FOUND |
ENTRYPOINT_NOT_FOUND | ENTRYPOINT_NOT_FOUND |
BLOCK_NOT_FOUND | BLOCK_NOT_FOUND |
INVALID_TXN_INDEX | INVALID_TXN_INDEX |
CLASS_HASH_NOT_FOUND | CLASS_HASH_NOT_FOUND |
TXN_HASH_NOT_FOUND | TXN_HASH_NOT_FOUND |
PAGE_SIZE_TOO_BIG | PAGE_SIZE_TOO_BIG |
NO_BLOCKS | NO_BLOCKS |
INVALID_CONTINUATION_TOKEN | INVALID_CONTINUATION_TOKEN |
TOO_MANY_KEYS_IN_FILTER | TOO_MANY_KEYS_IN_FILTER |
CONTRACT_ERROR | CONTRACT_ERROR |
TRANSACTION_EXECUTION_ERROR | TRANSACTION_EXECUTION_ERROR |
STORAGE_PROOF_NOT_SUPPORTED | STORAGE_PROOF_NOT_SUPPORTED |
CLASS_ALREADY_DECLARED | CLASS_ALREADY_DECLARED |
INVALID_TRANSACTION_NONCE | INVALID_TRANSACTION_NONCE |
INSUFFICIENT_RESOURCES_FOR_VALIDATE | INSUFFICIENT_RESOURCES_FOR_VALIDATE |
INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_ACCOUNT_BALANCE |
VALIDATION_FAILURE | VALIDATION_FAILURE |
COMPILATION_FAILED | COMPILATION_FAILED |
CONTRACT_CLASS_SIZE_IS_TOO_LARGE | CONTRACT_CLASS_SIZE_IS_TOO_LARGE |
NON_ACCOUNT | NON_ACCOUNT |
DUPLICATE_TX | DUPLICATE_TX |
COMPILED_CLASS_HASH_MISMATCH | COMPILED_CLASS_HASH_MISMATCH |
UNSUPPORTED_TX_VERSION | UNSUPPORTED_TX_VERSION |
UNSUPPORTED_CONTRACT_CLASS_VERSION | UNSUPPORTED_CONTRACT_CLASS_VERSION |
UNEXPECTED_ERROR | UNEXPECTED_ERROR |
REPLACEMENT_TRANSACTION_UNDERPRICED | REPLACEMENT_TRANSACTION_UNDERPRICED |
FEE_BELOW_MINIMUM | FEE_BELOW_MINIMUM |
INVALID_SUBSCRIPTION_ID | INVALID_SUBSCRIPTION_ID |
TOO_MANY_ADDRESSES_IN_FILTER | TOO_MANY_ADDRESSES_IN_FILTER |
TOO_MANY_BLOCKS_BACK | TOO_MANY_BLOCKS_BACK |
COMPILATION_ERROR | COMPILATION_ERROR |
INVALID_ADDRESS | INVALID_ADDRESS |
TOKEN_NOT_SUPPORTED | TOKEN_NOT_SUPPORTED |
INVALID_SIGNATURE | INVALID_SIGNATURE |
MAX_AMOUNT_TOO_LOW | MAX_AMOUNT_TOO_LOW |
CLASS_HASH_NOT_SUPPORTED | CLASS_HASH_NOT_SUPPORTED |
PAYMASTER_TRANSACTION_EXECUTION_ERROR | TRANSACTION_EXECUTION_ERROR |
INVALID_TIME_BOUNDS | INVALID_TIME_BOUNDS |
INVALID_DEPLOYMENT_DATA | INVALID_DEPLOYMENT_DATA |
INVALID_CLASS_HASH | INVALID_CLASS_HASH |
INVALID_ID | INVALID_ID |
UNKNOWN_ERROR | UNKNOWN_ERROR |
Defined in
RPC_ERROR
Ƭ RPC_ERROR: RPC_ERROR_SET[keyof RPC_ERROR_SET]
Defined in
OutsideExecutionVersion
Ƭ OutsideExecutionVersion: ValuesType<typeof OutsideExecutionVersion>
Defined in
src/types/outsideExecution.ts:78
src/types/outsideExecution.ts:83
InvocationsSignerDetails
Ƭ InvocationsSignerDetails: V3InvocationsSignerDetails & { version: `${ETransactionVersion}` ; skipValidate?: boolean }
Defined in
V3InvocationsSignerDetails
Ƭ V3InvocationsSignerDetails: V3TransactionDetails & { walletAddress: string ; cairoVersion: CairoVersion ; chainId: StarknetChainId ; version: `${ETransactionVersion3}` }
Defined in
DeclareSignerDetails
Ƭ DeclareSignerDetails: V3DeclareSignerDetails & { version: `${ETransactionVersion}` }
Defined in
V3DeclareSignerDetails
Ƭ V3DeclareSignerDetails: V3TransactionDetails & { classHash: string ; compiledClassHash: string ; senderAddress: string ; chainId: StarknetChainId ; version: `${ETransactionVersion3}` }
Defined in
DeployAccountSignerDetails
Ƭ DeployAccountSignerDetails: V3DeployAccountSignerDetails
Defined in
V3DeployAccountSignerDetails
Ƭ V3DeployAccountSignerDetails: Required<DeployAccountContractPayload> & V3TransactionDetails & { contractAddress: BigNumberish ; chainId: StarknetChainId ; version: `${ETransactionVersion3}` }
Defined in
LedgerPathCalculation
Ƭ LedgerPathCalculation: (accountId: number, applicationName: string) => Uint8Array
Type declaration
▸ (accountId, applicationName): Uint8Array
Parameters
| Name | Type |
|---|---|
accountId | number |
applicationName | string |
Returns
Uint8Array
Defined in
TransactionStatusReceiptSets
Ƭ TransactionStatusReceiptSets: Object
Type declaration
| Name | Type |
|---|---|
SUCCEEDED | SuccessfulTransactionReceiptResponse |
REVERTED | RevertedTransactionReceiptResponse |
ERROR | Error |
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:7
TransactionReceiptStatus
Ƭ TransactionReceiptStatus: keyof TransactionStatusReceiptSets
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:13
TransactionReceiptValue
Ƭ TransactionReceiptValue: TransactionStatusReceiptSets[TransactionReceiptStatus]
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:15
TransactionReceiptCallbacksDefined
Ƭ TransactionReceiptCallbacksDefined: { [key in TransactionReceiptStatus]: Function }
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:17
TransactionReceiptCallbacksDefault
Ƭ TransactionReceiptCallbacksDefault: Partial<TransactionReceiptCallbacksDefined> & { _: () => void }
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:21
TransactionReceiptCallbacks
Ƭ TransactionReceiptCallbacks: TransactionReceiptCallbacksDefined | TransactionReceiptCallbacksDefault
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:25
SuccessfulTransactionReceiptResponseHelper
Ƭ SuccessfulTransactionReceiptResponseHelper: SuccessfulTransactionReceiptResponse & { statusReceipt: "SUCCEEDED" ; value: SuccessfulTransactionReceiptResponse ; match: (callbacks: TransactionReceiptCallbacks) => void ; isSuccess: () => this is SuccessfulTransactionReceiptResponseHelper ; isReverted: () => this is RevertedTransactionReceiptResponseHelper ; isError: () => this is ErrorReceiptResponseHelper }
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:30
RevertedTransactionReceiptResponseHelper
Ƭ RevertedTransactionReceiptResponseHelper: RevertedTransactionReceiptResponse & { statusReceipt: "REVERTED" ; value: RevertedTransactionReceiptResponse ; match: (callbacks: TransactionReceiptCallbacks) => void ; isSuccess: () => this is SuccessfulTransactionReceiptResponseHelper ; isReverted: () => this is RevertedTransactionReceiptResponseHelper ; isError: () => this is ErrorReceiptResponseHelper }
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:42
ErrorReceiptResponseHelper
Ƭ ErrorReceiptResponseHelper: Object
Type declaration
| Name | Type |
|---|---|
statusReceipt | "ERROR" |
value | Error |
match | (callbacks: TransactionReceiptCallbacks) => void |
isSuccess | () => this is SuccessfulTransactionReceiptResponseHelper |
isReverted | () => this is RevertedTransactionReceiptResponseHelper |
isError | () => this is ErrorReceiptResponseHelper |
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:54
GetTransactionReceiptResponse
Ƭ GetTransactionReceiptResponse: SuccessfulTransactionReceiptResponseHelper | RevertedTransactionReceiptResponseHelper | ErrorReceiptResponseHelper
Defined in
src/utils/transactionReceipt/transactionReceipt.type.ts:66
PaymasterRpcOptions
Ƭ PaymasterRpcOptions: Object
Type declaration
| Name | Type |
|---|---|
nodeUrl? | string | NetworkName |
default? | boolean |
headers? | object |
baseFetch? | WindowOrWorkerGlobalScope["fetch"] |
Defined in
src/paymaster/types/configuration.type.ts:5
PaymasterFeeEstimate
Ƭ PaymasterFeeEstimate: Object
Type declaration
| Name | Type |
|---|---|
gas_token_price_in_strk | BigNumberish |
estimated_fee_in_strk | BigNumberish |
estimated_fee_in_gas_token | BigNumberish |
suggested_max_fee_in_strk | BigNumberish |
suggested_max_fee_in_gas_token | BigNumberish |
Defined in
src/paymaster/types/response.type.ts:9
PreparedDeployTransaction
Ƭ PreparedDeployTransaction: Object
Type declaration
| Name | Type |
|---|---|
type | "deploy" |
deployment | ACCOUNT_DEPLOYMENT_DATA |
parameters | ExecutionParameters |
fee | PaymasterFeeEstimate |
Defined in
src/paymaster/types/response.type.ts:17
PreparedInvokeTransaction
Ƭ PreparedInvokeTransaction: Object
Type declaration
| Name | Type |
|---|---|
type | "invoke" |
typed_data | OutsideExecutionTypedData |
parameters | ExecutionParameters |
fee | PaymasterFeeEstimate |
Defined in
src/paymaster/types/response.type.ts:23