Deploy NFT Gen2
Deploy NFT Schema
Initial Project
npm init -yinstall typescript
npm install --save-dev typescript
npm install --save ts-nodecreate and modify tsconfig.json
vim tsconfig.json{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2022",
"sourceMap": true,
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": false,
"resolveJsonModule": true,
"esModuleInterop": true,
}
}Create resource directory
Download or Save all resource from Example Resources Page to this directory
Install DataChainSdk package
create file deploy.ts
Execute deploy.ts
When it is successful it will response similar to:
Create NFT Metadata (mint)
create file mint.ts
Execute mint.ts
When it is successful it will response similar to:
Last updated