Published
Edited
Nov 17, 2020
10 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`
As of **${apiQueryTime}**, **1 ETH** is equivalent to **US$${EtherscanApiEthPriceQuery.result.ethusd}**
`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
exampleWallet = ethers.Wallet.createRandom()
Insert cell
exampleWalletAddress = exampleWallet.address
Insert cell
Insert cell
Insert cell
fetch(proxy + itemDefinitionUrl, {
headers: {
Accept: '*/*',
'Accept-Language': 'en-US,en;q=0.5',
Referer: 'https://observablehq.com/@polats/web-3-0-explorable-3-nfts-game-items-with-real-world-value',
},
//credentials: 'include',
cache: 'no-store',
mode: 'cors',
redirect: 'follow',
}).then(response => {
if (!response.ok) throw new Error(response.status);
return response.json();
}).catch(error => {return error;})
Insert cell
Insert cell
fetch(proxy + itemDefinitionUrl + "/0", {
headers: {
Accept: '*/*',
'Accept-Language': 'en-US,en;q=0.5',
Referer: 'https://observablehq.com/@polats/web-3-0-explorable-3-nfts-game-items-with-real-world-value',
},
//credentials: 'include',
cache: 'no-store',
mode: 'cors',
redirect: 'follow',
}).then(response => {
if (!response.ok) throw new Error(response.status);
return response.json();
}).catch(error => {return error;})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
receiverAddress
Insert cell
Insert cell
fetch(proxy + "http://nft-minter.herokuapp.com/api/mint?tokenid=" + getTokenId(getLatestEmoji()) + "&address=" + receiverAddress, {
headers: {
Accept: '*/*',
'Accept-Language': 'en-US,en;q=0.5',
Referer: 'https://observablehq.com/@polats/web-3-0-explorable-3-nfts-game-items-with-real-world-value',
},
//credentials: 'include',
cache: 'no-store',
mode: 'cors',
redirect: 'follow',
}).then(response => {
if (!response.ok) throw new Error(response.status);
return response.json();
}).catch(error => {return error;})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
newRandomWallet = ethers.Wallet.createRandom();
Insert cell
Insert cell
walletAdrress = newRandomWallet.address;
Insert cell
Insert cell
mnemonicPhrase = newRandomWallet.mnemonic.phrase;
Insert cell
privateKey = newRandomWallet.privateKey;
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more