releasedByToken

Calls the "released" function on the contract. Similar to the released extension, however this one requires you to specify a tokenAddress

Example

import { releasedByToken } from "thirdweb/extensions/split";
const result = await releasedByToken({
contract,
account: "0x...",
tokenAddress: "0x...",
});
function releasedByToken(
ReleasedParams & { tokenAddress: string }
>,
): Promise<bigint>;

Parameters

The options for the released function.

Type

ReleasedParams & { tokenAddress: string }
>;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.