Helps you create an NFT that can hold both a native currency (ETH) and ERC20s (e.g. wBTC). Only the current holder is allowed to redeem these assets.
Minifolio uses the NFT redeem extension.
npm inpx hardhat testGoerli (testnet) is currently the only supported network.
Copy the .env.example file and rename it .env. In this .env file, you want to:
- Add one of your wallets' private key (MetaMask private key export). It's recommended to create a fresh address, then go grab a handful of Goerli ETH using this faucet
- Add your own POKT Network endpoint
- Add your Web3.Storage API token
Forget about Polygon endpoint and Etherscan API key, you don't need them now.
Then you can go ahead and deploy to Goerli:
npx hardhat run scripts/deploy.ts --network goerliAs you can see on Etherscan, this NFT is currently holding 0.0001 ETH (native currency), 1 BTC (ERC-20), and 1 other NFT. You also can view it on Āto NFT viewer. Only the holder can redeem the three different assets held in this NFT using Etherscan.
You can contact us via Element (preferred), Twitter, Discord, LinkedIn or email.