allowance

Calls the "allowance" function on the contract.

Example

import { allowance } from "thirdweb/extensions/erc20";
const result = await allowance({
contract,
owner: ...,
spender: ...,
});
function allowance(
): Promise<bigint>;

Parameters

The options for the allowance function.

Type

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.