Namespace: WALLET_API
Interfaces
- StarknetDomain
- TypedData
- StarknetWindowObject
- AddInvokeTransactionParameters
- AddInvokeTransactionResult
- AddDeclareTransactionParameters
- AddDeclareTransactionResult
- RequestAccountsParameters
- WatchAssetParameters
- AddStarknetChainParameters
- SwitchStarknetChainParameters
- AccountDeploymentData
- ApiVersionRequest
- RpcTypeToMessageMap
- WalletEventHandlers
- NOT_ERC20
- UNLISTED_NETWORK
- USER_REFUSED_OP
- INVALID_REQUEST_PAYLOAD
- ACCOUNT_ALREADY_DEPLOYED
- API_VERSION_NOT_SUPPORTED
- UNKNOWN_ERROR
Type Aliases
Permission
Ƭ Permission: typeof Permission[keyof typeof Permission]
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/constants.d.ts:1
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/constants.d.ts:4
BLOCK_TIMESTAMP
Ƭ BLOCK_TIMESTAMP: number
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:3
TIME_BOUNDS
Ƭ TIME_BOUNDS: Object
Object containing timestamps corresponding to Execute After and Execute Before
Type declaration
| Name | Type |
|---|---|
execute_after | BLOCK_TIMESTAMP |
execute_before | BLOCK_TIMESTAMP |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:7
TypedDataRevision
Ƭ TypedDataRevision: typeof TypedDataRevision[keyof typeof TypedDataRevision]
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:11
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:15
StarknetEnumType
Ƭ StarknetEnumType: Object
Type declaration
| Name | Type |
|---|---|
name | string |
type | ABI_TYPE_ENUM |
contains | string |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:16
StarknetMerkleType
Ƭ StarknetMerkleType: Object
Type declaration
| Name | Type |
|---|---|
name | string |
type | "merkletree" |
contains | string |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:21
StarknetType
Ƭ StarknetType: { name: string ; type: string } | StarknetEnumType | StarknetMerkleType
SPEC: STARKNET_TYPE
A single type, as part of a struct. The type field can be any of the EIP-712 supported types.
Note that the uint and int aliases like in Solidity, and fixed point numbers are not supported by the EIP-712
standard.
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:32
OutsideExecutionTypedData
Ƭ OutsideExecutionTypedData: OutsideExecutionTypedDataV1 | OutsideExecutionTypedDataV2
"A typed data object (in the sense of SNIP-12) which represents an outside execution payload, according to SNIP-9
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:58
OutsideExecutionTypedDataV1
Ƭ OutsideExecutionTypedDataV1: Object
Type declaration
| Name | Type |
|---|---|
types | Record<string, StarknetType[]> |
primaryType | string |
domain | StarknetDomain |
message | OutsideExecutionMessageV1 |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:59
OutsideExecutionTypedDataV2
Ƭ OutsideExecutionTypedDataV2: Object
Type declaration
| Name | Type |
|---|---|
types | Record<string, StarknetType[]> |
primaryType | string |
domain | StarknetDomain |
message | OutsideExecutionMessageV2 |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:65
OutsideExecutionMessageV1
Ƭ OutsideExecutionMessageV1: Object
Type declaration
| Name | Type |
|---|---|
caller | FELT |
nonce | FELT |
execute_after | FELT |
execute_before | FELT |
calls_len | FELT |
calls | OutsideCallV1[] |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:71
OutsideCallV1
Ƭ OutsideCallV1: Object
Type declaration
| Name | Type |
|---|---|
to | ADDRESS |
selector | FELT |
calldata_len | FELT[] |
calldata | FELT[] |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:79
OutsideExecutionMessageV2
Ƭ OutsideExecutionMessageV2: Object
Type declaration
| Name | Type |
|---|---|
Caller | FELT |
Nonce | FELT |
Execute After | FELT |
Execute Before | FELT |
Calls | OutsideCallV2[] |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:85
OutsideCallV2
Ƭ OutsideCallV2: Object
Type declaration
| Name | Type |
|---|---|
To | ADDRESS |
Selector | FELT |
Calldata | FELT[] |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:92
Address
Ƭ Address: ADDRESS
Account Address
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:6
Signature
Ƭ Signature: SIGNATURE
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:7
PADDED_TXN_HASH
Ƭ PADDED_TXN_HASH: PADDED_FELT
The transaction hash, as assigned in Starknet
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:11
PADDED_FELT
Ƭ PADDED_FELT: string
A padded felt represent 0x0 + (0-7) + (62 hex digits)
Pattern
^0x(0[0-7]{1}[a-fA-F0-9]{62}$)
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:16
SpecVersion
Ƭ SpecVersion: string
A Starknet RPC spec version, only two numbers are provided
Pattern
^[0-9]+\.[0-9]+$
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:21
TokenSymbol
Ƭ TokenSymbol: string
ERC20 Token Symbol (min:1 char - max:6 chars)
Pattern
^[A-Za-z0-9]{1,6}$
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:26
Asset
Ƭ Asset: Object
Starknet Token Details of an onchain Starknet ERC20 token
Type declaration
| Name | Type |
|---|---|
type | "ERC20" |
options | { address: Address ; symbol?: TokenSymbol ; decimals?: number ; image?: string ; name?: string } |
options.address | Address |
options.symbol? | TokenSymbol |
options.decimals? | number |
options.image? | string |
options.name? | string |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:31
StarknetChain
Ƭ StarknetChain: Object
Type declaration
| Name | Type |
|---|---|
id | string |
chain_id | ChainId |
chain_name | string |
rpc_urls? | string[] |
block_explorer_url? | string[] |
native_currency? | Asset |
icon_urls? | string[] |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:41
Call
Ƭ Call: Object
Type declaration
| Name | Type |
|---|---|
contract_address | Address |
entry_point | string |
calldata? | FELT[] |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:50
API_VERSION
Ƭ API_VERSION: string
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/components.d.ts:126
RpcMessage
Ƭ RpcMessage: { [K in keyof RpcTypeToMessageMap]: Object & RpcTypeToMessageMap[K] }[keyof RpcTypeToMessageMap]
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/methods.d.ts:125
IsParamsOptional
Ƭ IsParamsOptional<T>: undefined extends RpcTypeToMessageMap[T][``"params"``] ? true : false
Type parameters
| Name | Type |
|---|---|
T | extends keyof RpcTypeToMessageMap |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/methods.d.ts:130
RequestFnCall
Ƭ RequestFnCall<T>: { type: T } & IsParamsOptional<T> extends true ? { params?: RpcTypeToMessageMap[T][``"params"``] } : { params: RpcTypeToMessageMap[T][``"params"``] }
Type parameters
| Name | Type |
|---|---|
T | extends RpcMessage["type"] |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/methods.d.ts:131
RequestFn
Ƭ RequestFn: <T>(call: RequestFnCall<T>) => Promise<RpcTypeToMessageMap[T][``"result"``]>
Type declaration
▸ <T>(call): Promise<RpcTypeToMessageMap[T][``"result"``]>
Type parameters
| Name | Type |
|---|---|
T | extends RpcMessage["type"] |
Parameters
| Name | Type |
|---|---|
call | RequestFnCall<T> |
Returns
Promise<RpcTypeToMessageMap[T][``"result"``]>
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/methods.d.ts:138
AccountChangeEventHandler
Ƭ AccountChangeEventHandler: (accounts?: string[]) => void
Type declaration
▸ (accounts?): void
Parameters
| Name | Type |
|---|---|
accounts? | string[] |
Returns
void
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/events.d.ts:2
NetworkChangeEventHandler
Ƭ NetworkChangeEventHandler: (chainId?: ChainId, accounts?: string[]) => void
Type declaration
▸ (chainId?, accounts?): void
Parameters
| Name | Type |
|---|---|
chainId? | ChainId |
accounts? | string[] |
Returns
void
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/events.d.ts:3
WalletEvents
Ƭ WalletEvents: { [E in keyof WalletEventHandlers]: Object }[keyof WalletEventHandlers]
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/events.d.ts:8
WalletEventListener
Ƭ WalletEventListener: <E>(event: E, handleEvent: WalletEventHandlers[E]) => void
Type declaration
▸ <E>(event, handleEvent): void
Type parameters
| Name | Type |
|---|---|
E | extends keyof WalletEventHandlers |
Parameters
| Name | Type |
|---|---|
event | E |
handleEvent | WalletEventHandlers[E] |
Returns
void
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/events.d.ts:14
Variables
Permission
• Const Permission: Object
Type declaration
| Name | Type |
|---|---|
ACCOUNTS | "accounts" |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/constants.d.ts:1
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/constants.d.ts:4
TypedDataRevision
• Const TypedDataRevision: Object
Type declaration
| Name | Type |
|---|---|
ACTIVE | "1" |
LEGACY | "0" |
Defined in
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:11
node_modules/@starknet-io/starknet-types-09/dist/types/wallet-api/typedData.d.ts:15