TypeScript SDK

ERC7702.getCallPoliciesForSigner

Calls the "getCallPoliciesForSigner" function on the contract.

Example

import { getCallPoliciesForSigner } from "thirdweb/extensions/erc7702";
const result = await getCallPoliciesForSigner({
contract,
signer: ...,
});
function getCallPoliciesForSigner(options: BaseTransactionOptions<GetCallPoliciesForSignerParams>) : Promise<readonly Array<{ constraints: readonly Array<{ condition: number; index: bigint; limit: { limit: bigint; limitType: number; period: bigint }; refValue: `0x${string}` }>; maxValuePerUse: bigint; selector: `0x${string}`; target: string; valueLimit: { limit: bigint; limitType: number; period: bigint } }>>

Parameters

The options for the getCallPoliciesForSigner function.

Type

Returns

let returnType: Promise<readonly Array<{ constraints: readonly Array<{ condition: number; index: bigint; limit: { limit: bigint; limitType: number; period: bigint }; refValue: `0x${string}` }>; maxValuePerUse: bigint; selector: `0x${string}`; target: string; valueLimit: { limit: bigint; limitType: number; period: bigint } }>>

The parsed result of the function call.