Getting Started
The following instruction helps you get started with Nifty-toolkit npm quickly.
Hello world
First, make sure you installed Nifty-toolkit and have the latest version of Node.js running (version 12 and up are recommended)
Second, create a file named hello-world.js, open it in your favorite editor, and add the following lines:
Note where we config the EVM-RPC. You can choose either "mumbai" for Polygon or "cronos-testnet" for Cronos.
Change the following 3 parameters:
recipient_address: public key the account that wishes to receive the NFT.
ipfs_hash: the hash value on IPFS, which contains the resource file you uploaded.
account_private_key: the account that pays for the gas fee and initiates the transaction on-chain.
Run your code
After a bit, you will get a response of hash transaction value, and you can easily check on Polygon's blockchain browser.
You will get a response hash, which is the transaction value on the blockchain.
You can easily check your transaction on the blockchain explorer, for example:
Last updated