Skip to main content
Version: 6.11.0

Interface: RpcTypeToMessageMap

RPCSPEC07.WALLET_API.RpcTypeToMessageMap

Maps each RPC message type to its corresponding parameters and result type.

Properties​

wallet_getPermissions​

• wallet_getPermissions: Object

Get permissions from the wallet.

Type declaration​

NameType
params?ApiVersion
result[] | "accounts"[]
errorsAPI_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:14


wallet_requestAccounts​

• wallet_requestAccounts: Object

Request active accounts from the wallet.

Param

Optional parameters for requesting accounts.

Type declaration​

NameType
params?RequestAccountsParameters & ApiVersion
resultstring[]
errorsAPI_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:24


wallet_watchAsset​

• wallet_watchAsset: Object

Watch an asset in the wallet.

Param

The parameters required to watch an asset.

Type declaration​

NameType
paramsWatchAssetParameters & ApiVersion
resultboolean
errorsNOT_ERC20 | USER_REFUSED_OP | INVALID_REQUEST_PAYLOAD | API_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:34


wallet_addStarknetChain​

• wallet_addStarknetChain: Object

Add a new Starknet chain to the wallet.

Param

The parameters required to add a new chain.

Type declaration​

NameType
paramsAddStarknetChainParameters & ApiVersion
resultboolean
errorsUSER_REFUSED_OP | INVALID_REQUEST_PAYLOAD | API_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:44


wallet_switchStarknetChain​

• wallet_switchStarknetChain: Object

Switch the current Starknet chain in the wallet.

Param

The parameters required to switch chains.

Type declaration​

NameType
paramsSwitchStarknetChainParameters & ApiVersion
resultboolean
errorsUNLISTED_NETWORK | USER_REFUSED_OP | API_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:54


wallet_requestChainId​

• wallet_requestChainId: Object

Request the current chain ID from the wallet.

Type declaration​

NameType
params?ApiVersion
resultstring
errorsAPI_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:63


wallet_deploymentData​

• wallet_deploymentData: Object

Get deployment data for a contract.

Type declaration​

NameType
params?ApiVersion
resultAccountDeploymentData
errorsACCOUNT_ALREADY_DEPLOYED | API_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:72


wallet_addInvokeTransaction​

• wallet_addInvokeTransaction: Object

Add an invoke transaction to the wallet.

Param

The parameters required for the invoke transaction.

Type declaration​

NameType
paramsAddInvokeTransactionParameters & ApiVersion
resultAddInvokeTransactionResult
errorsUSER_REFUSED_OP | INVALID_REQUEST_PAYLOAD | API_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:82


wallet_addDeclareTransaction​

• wallet_addDeclareTransaction: Object

Add a declare transaction to the wallet.

Param

The parameters required for the declare transaction.

Type declaration​

NameType
paramsAddDeclareTransactionParameters & ApiVersion
resultAddDeclareTransactionResult
errorsUSER_REFUSED_OP | INVALID_REQUEST_PAYLOAD | API_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:92


wallet_signTypedData​

• wallet_signTypedData: Object

Sign typed data using the wallet.

Param

The typed data to sign.

Type declaration​

NameType
paramsTypedData & ApiVersion
resultSIGNATURE
errorsUSER_REFUSED_OP | INVALID_REQUEST_PAYLOAD | API_VERSION_NOT_SUPPORTED | UNKNOWN_ERROR

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:102


wallet_supportedSpecs​

• wallet_supportedSpecs: Object

Get the list of supported RPC specification versions.

Type declaration​

NameType
params?undefined
resultstring[]

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:111


wallet_supportedWalletApi​

• wallet_supportedWalletApi: Object

Returns a list of wallet api versions compatible with the wallet. Notice this might be different from Starknet JSON-RPC spec

Type declaration​

NameType
params?undefined
resultApiVersion[]

Defined in​

node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:120