在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:yusefnapora/minty开源软件地址:https://github.com/yusefnapora/minty开源编程语言:JavaScript 96.5%开源软件介绍:mintyMinty is an example of how to mint non-fungible tokens (NFTs) while storing the associated data on IPFS. You can also use Minty to pin your data on an IPFS pinning service such as nft.storage and Pinata. UsageRun minty help mint
> create a new NFT from an image file
>
> Options:
> -n, --name <name> The name of the NFT
> -d, --description <desc> A description of the NFT
> -o, --owner <address> The ethereum address that should own the NFT.If not provided,
> defaults to the first signing address.
> -h, --help display help for command SetupTo install and run Minty, you must have NPM installed. Windows is not currently supported.
Deploy the contractBefore running any of the other minty deploy
> deploying contract for token Julep (JLP) to network "localhost"...
> deployed contract for token Julep (JLP) to 0x5FbDB2315678afecb367f032d93F642f64180aa3 (network: localhost)
> Writing deployment info to minty-deployment.json The terminal window running the > [eth] eth_chainId
> [eth] eth_getTransactionByHash
> [eth] eth_blockNumber
> eth_chainId (2)Id
> eth_getTransactionReceipt This deploys to the network configured in When the contract is deployed, the address and other information about the deployment is written to To deploy to an ethereum testnet, see the Hardhat configuration docs to learn how to configure a JSON-RPC node. Once you've added a new network to the Hardhat config, you can use it by setting the Deploying this contract to the Ethereum mainnet is a bad idea since the contract itself lacks any access control. See the Open Zeppelin article about what access control is, and why it's important to have. ConfigurationConfiguration are stored in The The The default You can define these values in a dotenv file so you don't need to set them in each shell session. Just create a file called PINNING_SERVICE_KEY="Paste your nft.storage JWT token inside the quotes!"
PINNING_SERVICE_NAME="nft.storage"
PINNING_SERVICE_ENDPOINT="https://nft.storage/api" The The snippet above will configure minty to use nft.storage, a free service offered by Protocol Labs for storing public NFT data. You can find an example Any service that implements the IPFS Remote Pinning API can be used with Minty. To use Pinata, check out the example at With no pinning service configured, everything apart from the Mint a new NFTOnce you have the local Ethereum network and IPFS daemon running, minting an NFT is incredibly simple. Just specify what you want to tokenize, the name of the NFT, and a description to tell users what the NFT is for: 全部评论
专题导读
热门推荐
热门话题
阅读排行榜
|
请发表评论