1.0.0 • Published 3 years ago

hrc721-cli v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

HRC721-htmlcoinjs-cli

A JS client For HRC721 contract.

How to use

Install dependencies.

npm install

Show contract information. The argument htmlcoin_rpc is the RPC parameters of Htmlcoin node, and solar_file is the json file generated by Solar when deploying HRC721.

node cli.js --htmlcoin_rpc=http://USER:PASSWORD@127.0.0.1:4889 --solar_file=../../solar.development.json getinfo

Mint a token. mint toAddress tokenId.

node cli.js --htmlcoin_rpc=http://USER:PASSWORD@127.0.0.1:4889 --solar_file=../../solar.development.json mint 8aefb4b0ff32c65e9dc4d8036cd6cec0b4c7fe9f 123

Mint a token with URI. mint toAddress tokenId tokenUri.

node cli.js --htmlcoin_rpc=http://USER:PASSWORD@127.0.0.1:4889 --solar_file=../../solar.development.json mint 8aefb4b0ff32c65e9dc4d8036cd6cec0b4c7fe9f 123 myuri