Deploy Collection
Certhis SDK - Deploy Collection
Installation
$ npm i certhisUsage
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();Last updated
