Query Granted Permissions
RPC Method
wallet_getGrantedExecutionPermissionsRequest
const granted = await provider.request({
method: "wallet_getGrantedExecutionPermissions",
params: [],
});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