For the complete documentation index, see llms.txt. This page is also available as Markdown.

查询已授权权限

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

RPC 方法

wallet_getGrantedExecutionPermissions

请求

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

响应

返回 PermissionResponse[],结构与 wallet_requestExecutionPermissions成功响应的单项相同:

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

响应示例

Last updated