Skip to main content

Token.(constructor)

Constructs a new instance of the Token class

Signature:

constructor(network: NetworkOrSignerOrProvider, address: string, storage: ThirdwebStorage, options: {
readonlySettings?: {
chainId?: number | undefined;
rpcUrl: string;
} | undefined;
gasSettings?: {
maxPriceInGwei?: number | undefined;
speed?: "standard" | "fast" | "fastest" | undefined;
} | undefined;
gasless?: {
experimentalChainlessSupport?: boolean | undefined;
openzeppelin: {
relayerForwarderAddress?: string | undefined;
useEOAForwarder?: boolean | undefined;
relayerUrl: string;
};
} | {
biconomy: {
deadlineSeconds?: number | undefined;
apiId: string;
apiKey: string;
};
} | undefined;
} | undefined, abi: Abi, chainId: number, contractWrapper?: ContractWrapper<TokenERC20>);

Parameters

ParameterTypeDescription
networkNetworkOrSignerOrProvider
addressstring
storageThirdwebStorage
options{ readonlySettings?: { chainId?: number | undefined; rpcUrl: string; } | undefined; gasSettings?: { maxPriceInGwei?: number | undefined; speed?: "standard" | "fast" | "fastest" | undefined; } | undefined; gasless?: { experimentalChainlessSupport?: boolean | undefined; openzeppelin: { relayerForwarderAddress?: string | undefined; useEOAForwarder?: boolean | undefined; relayerUrl: string; }; } | { biconomy: { deadlineSeconds?: number | undefined; apiId: string; apiKey: string; }; } | undefined; } | undefined
abiAbi
chainIdnumber
contractWrapperContractWrapper<TokenERC20>(Optional)