Skip to main content

Get supported permissions

ERC-7715 defines an RPC method that returns the execution permissions a wallet supports. Use the method to verify the available permission types and rules before sending requests.

Prerequisites

Request supported permissions

Request the supported execution permission types for a wallet with the Wallet Client's getSupportedExecutionPermissions action.

import { walletClient } from "./config.ts";

const supportedPermissions = await walletClient.getSupportedExecutionPermissions();

// Example response:
// {
// "native-token-stream": {
// "chainIds": [
// "0x1",
// "0xa",
// ],
// "ruleTypes": [
// "expiry"
// ]
// },
// // ...
// }