-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (21 loc) · 904 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const {Revise}= require("revise-sdk");
const AUTH_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjA5OTVkZTEwLTBiM2MtNDVkYi1hMTZkLWY2MGVlNTYxMDQ5ZSIsImtleSI6Ink2OGQxY3B6IiwiaWF0IjoxNjg2MDUwNzY1fQ.G9sUzkOsKz3iCFmN1VAoCUut70MFZuqOYNJZSM0whD8";
const revise=new Revise({auth:AUTH_TOKEN});
async function AddNFT(){
const collection =await revise.addCollection(
{
name:"Gaming Character",
uri:"jaygangwargamingcharactersforshootinggame9999999888"
}
)
const nft=await revise.addNFT({
image:"https://ipfs.io/ipfs/QmQGD89rmLQ67eoJ8ATc7QiT4iDo7tAgAeGf4QSRcF8uQ2?filename=angry.jpg",
name:"Gordon Freeman",
tokenId:'1',
description:"He is a famous Shooting Game Character!"
},[{mood:'angry'},{stamina: "10"},{level:"1"}],
collection.id
);
console.log("Created NFT Successfully, ID: ",nft);
}
AddNFT()