/NEP171_Factory

2021 NEAR MetaBUIDL Hackathon

Primary LanguageRust

NEP171_Factory

About NEP171_Factory

NEP171_Factory allows you to mint standard NFT(Non-Fungible-Token) of NEAR-Protocol.

Getting Started

Clone this repository

git clone https://github.com/kwklly/NEP171_Factory
cd NEP171_Factory

Compile Contract code

cargo build --target wasm32-unknown-unknown --release

Login

near login

Deploy Contract

near deploy --wasmFile target/wasm32-unknown-unknown/release/non-fungible-token.wasm --accountId YOUR_ACCOUNT

Init Contract

near call YOUR_ACCOUNT new '{"owner_id":"OWNER_ACCOUNT", "metadata":{"spec":"nft-1.0.0", "name": "nft-1", "symbol": "ANY_SYMBOL"}}' --accountId YOUR_ACCOUNT

Mint NFTs

near call YOUR_ACCOUNT nft_mint '{"token_id":"TOKEN_ID", "token_owner_id":"OWNER_ACCOUNT", "token_metadata":{"title":"TOKEN_TITLE", "media" : "YOUR_MEDIA" }}' --accountId YOUR_ACCOUNT --depositYocto 6380000000000000000000