> For the complete documentation index, see [llms.txt](https://help.tokenpocket.pro/developer-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tokenpocket.pro/developer-en/agentic-wallet/eip-7715-account-with-permissions/query-granted-permissions.md).

# Query Granted Permissions

Use `wallet_getGrantedExecutionPermissions` to retrieve the list of granted permissions in the current session that have not yet been revoked. Useful for displaying authorization status, Relayer task scheduling, and selecting valid `context` values before redeem.

### RPC Method <a href="#rpc-method" id="rpc-method"></a>

```
wallet_getGrantedExecutionPermissions
```

#### Request <a href="#request" id="request"></a>

```typescript
const granted = await provider.request({
  method: "wallet_getGrantedExecutionPermissions",
  params: [],
});
```

#### Response <a href="#response" id="response"></a>

Returns `PermissionResponse[]`, with the same structure as each item in a successful `wallet_requestExecutionPermissions` response:

```typescript
type PermissionResponse = {
  chainId: `0x${string}`;
  from?: `0x${string}`;
  to: `0x${string}`;
  permission: {
    type: string;
    isAdjustmentAllowed: boolean;
    data: Record<string, unknown>;
  };
  rules?: { type: string; data: Record<string, unknown> }[];
  context: `0x${string}`;
  delegationManager: `0x${string}`;
  dependencies: { factory: `0x${string}`; factoryData: `0x${string}` }[];
};
```

#### Response Example <a href="#response-example" id="response-example"></a>

```json
[
  {
    "chainId": "0x38",
    "from": "0xUserAddress...",
    "to": "0xSessionAccount...",
    "permission": {
      "type": "erc20-token-periodic",
      "isAdjustmentAllowed": true,
      "data": {
        "tokenAddress": "0x55d398326f99059fF775485246999027B3197955",
        "periodAmount": "0x8ac7230489e80000",
        "periodDuration": 86400,
        "justification": "Allow DApp/Agent to transfer up to 10 USDT per day"
      }
    },
    "rules": [{ "type": "expiry", "data": { "timestamp": 1735689600 } }],
    "context": "0x...",
    "delegationManager": "0xdb9B1e94B5b69Df7e401DDbedE43491141047dB3",
    "dependencies": []
  }
]
```
