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
Parameter | Type | Description |
---|---|---|
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> | (Optional) |