Shows the following:
- Purchase blockchain storage
- Deploying token contract like RANDOM
- Create RANDOM
- Issue RANDOM
- Transfer RANDOM
- Create NFT Collection
- Create NFT Schema (data structure)
- Create NFT Template
- Create NFT
- Get NFTs owned
- Sell NFT for XPR
- Get NFT listings
- Buy NFT with XPR
- Cancel NFT sale
- Transfer NFT
- Rename .env.example to .env and set your private key
- Run
npm i
- Modify index.js at root to run the functions you want
node index.js
const { buyStorage } = require('./chain/buy-storage')
const main = async () => {
// Buy Blockchain Storage
// Costs 22 XPR / KB (~6,600 XPR for 300KB)
await buyStorage({
bytes: 300000
})
}
main()
- Go to https://monitor.testnet.protonchain.com/
- Create key pair (save this securely)
- Create account with key pair
- Faucet for some free testnet XPR!