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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more