Overview
The ERC721Factory
is used for creating deploy transaction data and signature inputs.
Initializing
The factory is initialized through the SDK
ts
import { chainId, rpcURL } from "config.ts";
import { MirrorSDK } from "@cmirrorxyz/mirror-nft-sdk";
const sdk = new MirrorSDK(chainId, rpcURL);
ts
export const chainId: number = 31337;
export const rpcURL: string = "127.0.0.1:8545"
You can access the factory through sdk.factory
.
ERC721TokenConfig
The ERC721TokenConfig
is used to specify all the information needed to deploy a token.