hrc721-cli
v1.0.0
Published
HRC721 Client
Downloads
3
Readme
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:[email protected]:4889 --solar_file=../../solar.development.json getinfo
Mint a token. mint toAddress tokenId.
node cli.js --htmlcoin_rpc=http://USER:[email protected]: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:[email protected]:4889 --solar_file=../../solar.development.json mint 8aefb4b0ff32c65e9dc4d8036cd6cec0b4c7fe9f 123 myuri