totalReleasedByToken

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

Example

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

Parameters

The options for the totalReleased function.

Type

let options: BaseTransactionOptions<{ tokenAddress: string }>;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.