Namespace: WALLET_API
Interfaces​
- StarknetDomain
- TypedData
- StarknetWindowObject
- AddInvokeTransactionParameters
- AddInvokeTransactionResult
- AddDeclareTransactionParameters
- AddDeclareTransactionResult
- RequestAccountsParameters
- WatchAssetParameters
- AddStarknetChainParameters
- SwitchStarknetChainParameters
- AccountDeploymentData
- ApiVersion
- 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-types-07/dist/types/wallet-api/constants.d.ts:1
node_modules/starknet-types-07/dist/types/wallet-api/constants.d.ts:4
TypedDataRevision​
Ƭ TypedDataRevision: typeof TypedDataRevision
[keyof typeof TypedDataRevision
]
Defined in​
node_modules/starknet-types-07/dist/types/wallet-api/typedData.d.ts:1
node_modules/starknet-types-07/dist/types/wallet-api/typedData.d.ts:5
StarknetEnumType​
Ƭ StarknetEnumType: Object
Type declaration​
Name | Type |
---|---|
name | string |
type | "enum" |
contains | string |
Defined in​
node_modules/starknet-types-07/dist/types/wallet-api/typedData.d.ts:6
StarknetMerkleType​
Ƭ StarknetMerkleType: Object
Type declaration​
Name | Type |
---|---|
name | string |
type | "merkletree" |
contains | string |
Defined in​
node_modules/starknet-types-07/dist/types/wallet-api/typedData.d.ts:11
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-types-07/dist/types/wallet-api/typedData.d.ts:22
Address​
Ƭ Address: ADDRESS
Account Address
Defined in​
node_modules/starknet-types-07/dist/types/wallet-api/components.d.ts:6
Signature​
Ƭ Signature: SIGNATURE
Defined in​
node_modules/starknet-types-07/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-types-07/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-types-07/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-types-07/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-types-07/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-types-07/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-types-07/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-types-07/dist/types/wallet-api/components.d.ts:50
RpcMessage​
Ƭ RpcMessage: { [K in keyof RpcTypeToMessageMap]: Object & RpcTypeToMessageMap[K] }[keyof RpcTypeToMessageMap
]
Defined in​
node_modules/starknet-types-07/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-types-07/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-types-07/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-types-07/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-types-07/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-types-07/dist/types/wallet-api/events.d.ts:3
WalletEvents​
Ƭ WalletEvents: { [E in keyof WalletEventHandlers]: Object }[keyof WalletEventHandlers
]
Defined in​
node_modules/starknet-types-07/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-types-07/dist/types/wallet-api/events.d.ts:14
Variables​
Permission​
• Const
Permission: Object
Type declaration​
Name | Type |
---|---|
ACCOUNTS | "accounts" |
Defined in​
node_modules/starknet-types-07/dist/types/wallet-api/constants.d.ts:1
node_modules/starknet-types-07/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-types-07/dist/types/wallet-api/typedData.d.ts:1
node_modules/starknet-types-07/dist/types/wallet-api/typedData.d.ts:5