nextTokenId

Calls the "nextTokenId" function on the contract.

Example

import { nextTokenId } from "thirdweb/extensions/erc1155";
const result = await nextTokenId({
contract,
});
function nextTokenId(
): Promise<bigint>;

Parameters

The options for the nextTokenId function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.