hrc721-cli

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i hrc721-cli

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.86 kB

Total Files

3

Last publish

Collaborators

  • htmlcoin
  • denuoweb