getPermissionsForSigner

Calls the "getPermissionsForSigner" function on the contract.

Example

import { getPermissionsForSigner } from "thirdweb/extensions/erc4337";
const result = await getPermissionsForSigner({
contract,
signer: ...,
});
function getPermissionsForSigner(options: BaseTransactionOptions<GetPermissionsForSignerParams>) : Promise<{ approvedTargets: readonly Array<string>; endTimestamp: bigint; nativeTokenLimitPerTransaction: bigint; signer: string; startTimestamp: bigint }>

Parameters

The options for the getPermissionsForSigner function.

Type

Returns

let returnType: Promise<{ approvedTargets: readonly Array<string>; endTimestamp: bigint; nativeTokenLimitPerTransaction: bigint; signer: string; startTimestamp: bigint }>

The parsed result of the function call.