> For the complete documentation index, see [llms.txt](https://help.tokenpocket.pro/developer-cn/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-cn/agentic-wallet/eip-7715-account-with-permissions/cha-xun-yi-shou-quan-quan-xian.md).

# 查询已授权权限

使用 `wallet_getGrantedExecutionPermissions` 获取当前 会话下、尚未被撤销的已授权权限列表。适用于授权状态展示、Relayer 任务调度、以及 redeem 前选取有效 `context`。

### RPC 方法 <a href="#rpc-e6-96-b9-e6-b3-95" id="rpc-e6-96-b9-e6-b3-95"></a>

```
wallet_getGrantedExecutionPermissions
```

#### 请求 <a href="#e8-af-b7-e6-b1-82" id="e8-af-b7-e6-b1-82"></a>

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

#### 响应 <a href="#e5-93-8d-e5-ba-94" id="e5-93-8d-e5-ba-94"></a>

返回 `PermissionResponse[]`，结构与 `wallet_requestExecutionPermissions`成功响应的单项相同：

```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}` }[];
};
```

#### 响应示例 <a href="#e5-93-8d-e5-ba-94-e7-a4-ba-e4-be-8b" id="e5-93-8d-e5-ba-94-e7-a4-ba-e4-be-8b"></a>

```json
[
  {
    "chainId": "0x38",
    "from": "0xUserAddress...",
    "to": "0xSessionAccount...",
    "permission": {
      "type": "erc20-token-periodic",
      "isAdjustmentAllowed": true,
      "data": {
        "tokenAddress": "0x55d398326f99059fF775485246999027B3197955",
        "periodAmount": "0x8ac7230489e80000",
        "periodDuration": 86400,
        "justification": "允许 DApp/Agent 每日最多转出 10 USDT"
      }
    },
    "rules": [{ "type": "expiry", "data": { "timestamp": 1735689600 } }],
    "context": "0x...",
    "delegationManager": "0xdb9B1e94B5b69Df7e401DDbedE43491141047dB3",
    "dependencies": []
  }
]
```
