This content got low rating by people.
Words
72
Reading
1 min
Listen
Play
5y
There is dummy data live right now, trying to see what all we need to make a front end work. You're welcome to play with it... especially if you drop in our discord server and give us feedback.
api.get('/api/nfts/:user', API.nfts);
api.get('/api/nft/:item', API.item);
api.get('/api/sets', API.sets);
api.get('/api/set/:set', API.set);
api.get('/api/auctions', API.auctions);
api.get('/api/sales', API.sales);
From token.dlux.io or if you run the 'defi' branch of dlux node software
The API will have live data when we make our announcement post.
Here is our working generate NFT client side script.
fetch(`https://ipfs.io/ipfs/${nft.script}`)
.then((response) => response.text())
.then((data) => {
const code = `(//${data}\n)("${nft.uid}")`;
const SVG = eval(code);
document.getElementById(`image-${nft.set}-${nft.uid}`)!.innerHTML = SVG;
});
RE: NFT Research - Creation and Distribution