Skip to main content
Version: 6.11.0

Namespace: WALLET_API

RPC.RPCSPEC07.WALLET_API

Interfaces​

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​

NameType
namestring
type"enum"
containsstring

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/typedData.d.ts:6


StarknetMerkleType​

Ƭ StarknetMerkleType: Object

Type declaration​

NameType
namestring
type"merkletree"
containsstring

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​

NameType
type"ERC20"
options{ address: Address ; symbol?: TokenSymbol ; decimals?: number ; image?: string ; name?: string }
options.addressAddress
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​

NameType
idstring
chain_idChainId
chain_namestring
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​

NameType
contract_addressAddress
entry_pointstring
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​

NameType
Textends 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​

NameType
Textends 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​
NameType
Textends RpcMessage["type"]
Parameters​
NameType
callRequestFnCall<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​
NameType
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​
NameType
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​
NameType
Eextends keyof WalletEventHandlers
Parameters​
NameType
eventE
handleEventWalletEventHandlers[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​

NameType
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​

NameType
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