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​
Name | Type |
---|---|
params? | ApiVersion |
result | [] | "accounts" [] |
errors | API_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​
Name | Type |
---|---|
params? | RequestAccountsParameters & ApiVersion |
result | string [] |
errors | API_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​
Name | Type |
---|---|
params | WatchAssetParameters & ApiVersion |
result | boolean |
errors | NOT_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​
Name | Type |
---|---|
params | AddStarknetChainParameters & ApiVersion |
result | boolean |
errors | 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:44
wallet_switchStarknetChain​
• wallet_switchStarknetChain: Object
Switch the current Starknet chain in the wallet.
Param
The parameters required to switch chains.
Type declaration​
Name | Type |
---|---|
params | SwitchStarknetChainParameters & ApiVersion |
result | boolean |
errors | UNLISTED_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​
Name | Type |
---|---|
params? | ApiVersion |
result | string |
errors | API_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​
Name | Type |
---|---|
params? | ApiVersion |
result | AccountDeploymentData |
errors | ACCOUNT_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​
Name | Type |
---|---|
params | AddInvokeTransactionParameters & ApiVersion |
result | AddInvokeTransactionResult |
errors | 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:82
wallet_addDeclareTransaction​
• wallet_addDeclareTransaction: Object
Add a declare transaction to the wallet.
Param
The parameters required for the declare transaction.
Type declaration​
Name | Type |
---|---|
params | AddDeclareTransactionParameters & ApiVersion |
result | AddDeclareTransactionResult |
errors | 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:92
wallet_signTypedData​
• wallet_signTypedData: Object
Sign typed data using the wallet.
Param
The typed data to sign.
Type declaration​
Name | Type |
---|---|
params | TypedData & ApiVersion |
result | SIGNATURE |
errors | 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:102
wallet_supportedSpecs​
• wallet_supportedSpecs: Object
Get the list of supported RPC specification versions.
Type declaration​
Name | Type |
---|---|
params? | undefined |
result | string [] |
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​
Name | Type |
---|---|
params? | undefined |
result | ApiVersion [] |
Defined in​
node_modules/starknet-types-07/dist/types/wallet-api/methods.d.ts:120