TypeScript SDK

ERC7702.isGetTransferPoliciesForSignerSupported

Checks if the getTransferPoliciesForSigner method is supported by the given contract.

Example

import { isGetTransferPoliciesForSignerSupported } from "thirdweb/extensions/erc7702";
const supported = isGetTransferPoliciesForSignerSupported(["0x..."]);
function isGetTransferPoliciesForSignerSupported(
availableSelectors: Array<string>,
): boolean;

Parameters

An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.

Type

let availableSelectors: Array<string>;

Returns

let returnType: boolean;

A boolean indicating if the getTransferPoliciesForSigner method is supported.