Comment on page
☄
Deploy Collection
Introduction
The Certhis SDK empowers developers to interact with the Certhis API, facilitating the deployment of NFT collections. Deploying an NFT collection is a fundamental step in the NFT creation process, and this guide will walk you through the process.
You can install the Certhis SDK via npm:
$ npm i certhis
Here's an example of deploying an NFT collection using the Certhis SDK:
const { Web3 } = require("web3");
const certhis = require("certhis").init(Web3);
async function connectionAndCreate() {
var web3Inject = await certhis.wallet.connect(
"RPC_URL",
"YOUR_WALLET_PASSPHRASE"
);
try {
var collection = await certhis.collection.create({
web3: web3Inject,
collection_object: {
collection_name: "Test Collection" ,
collection_symbol: "TEST",
collection_type: true,
},
whitelist: ["WALLET_WHITELIST"],
mulParam: 4,
});
console.log(collection);
} catch (e) {
console.log(e);
}
}
async function createCollection() {
var collection = await connectionAndCreate();
console.log(collection);
}
createCollection();
Please replace
"YOUR_RPC_URL"
and other placeholders with your specific values.Last modified 2mo ago