mega.getPermissions()
Last updated
type GetPermissionsResponse = {
permissions?: {
expiry: number;
permissions: {
calls: { signature: string; to: `0x${string}` }[];
spend: {
limit: bigint;
period: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
token?: `0x${string}`;
}[];
};
} | null;
};