Marketplace.(constructor)
Constructs a new instance of the Marketplace
class
Signature:
constructor(network: NetworkInput, address: string, storage: ThirdwebStorage, options: {
supportedChains?: {
rpc: string[];
chainId: number;
nativeCurrency: {
decimals?: number | undefined;
symbol: string;
name: string;
};
}[] | undefined;
thirdwebApiKey?: string | undefined;
alchemyApiKey?: string | undefined;
infuraApiKey?: string | undefined;
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<MarketplaceContract>);
Parameters
Parameter | Type | Description |
---|---|---|
network | NetworkInput | |
address | string | |
storage | ThirdwebStorage | |
options | { supportedChains?: { rpc: string[]; chainId: number; nativeCurrency: { decimals?: number | undefined; symbol: string; name: string; }; }[] | undefined; thirdwebApiKey?: string | undefined; alchemyApiKey?: string | undefined; infuraApiKey?: string | undefined; 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<MarketplaceContract> | (Optional) |