Example implementations of tokens to represent unique assets, such as collectibles or deeds, using the NEP-171 spec (similar to ERC-721)
Example implementations of tokens to represent unique assets, such as collectibles or deeds, using the NEP-171 spec (similar to ERC-721)
This repository contains an example implementation of a non-fungible token contract in Rust which uses near-contract-standards and workspaces-rs tests.
Note: If you'd like to learn how to create an NFT contract from scratch that explores every aspect of the NEP-171 standard including an NFT marketplace, check out the NFT Zero to Hero Tutorial.
Install cargo-near and run:
cargo near buildNote: to avoid issues, be sure to update your Rust compiler with
rustup update stable
cargo testTo deploy manually, install cargo-near and run:
# Create a new account
cargo near create-dev-account
# Deploy the contract on it
cargo near deploy
# Initialize the contract
near call new_default_meta '{"owner_id": ""}' --accountId …No open issues yet, or sync has not completed.