Nativo NFT es un mercado secundario y primario de NFTs creado sobre NEAR Protocol que permite a sus usuarios crear, vender y revender los NFTs que definan.
near call $NFT_CONTRACT_ID new_default_meta '{"owner_id": "'$NFT_CONTRACT_ID'"}' --accountId $NFT_CONTRACT_ID
near view $NFT_CONTRACT_ID nft_metadata
near call $NFT_CONTRACT_ID nft_mint '{"token_id": "token-1", "metadata": {"title": "My Non Fungible Team Token", "description": "The Team Most Certainly Goes :)", "media": "https://bafybeiftczwrtyr3k7a2k4vutd3amkwsmaqyhrdzlhvpt33dyjivufqusq.ipfs.dweb.link/goteam-gif.gif"}, "receiver_id": "'$MAIN_ACCOUNT'"}' --accountId $MAIN_ACCOUNT --amount 0.1
After you've minted the token go to wallet.testnet.near.org to your-account.testnet
and look in the collections tab and check out your new sample NFT!
After you've minted your NFT you can make a view call to get a response containing the token_id
owner_id
and the metadata
near view $NFT_CONTRACT_ID nft_token '{"token_id":"token-1"}' --accountId $MAIN_ACCOUNT
To transfer an NFT you will need another testnet wallet account.
Then run the following
MAIN_ACCOUNT_2=your-second-wallet-account.testnet
Verify the correct variable names with this
echo $NFT_CONTRACT_ID
echo $MAIN_ACCOUNT
echo $MAIN_ACCOUNT_2
To initiate the transfer..
near call $NFT_CONTRACT_ID nft_transfer '{"receiver_id": "$MAIN_ACCOUNT_2", "token_id": "token-1", "memo": "Go Team :)"}' --accountId $MAIN_ACCOUNT --depositYocto 1
In this call you are depositing 1 yoctoNEAR for security and so that the user will be redirected to the NEAR wallet.