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

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

wallet_getGrantedExecutionPermissions

Request

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

Response

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

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

Last updated