huobi-chain-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

huobi-chain-sdk

The SDK is a wrapper for Huobi Chain services base on muta-sdk. Check out Muta service to learn more about how to use the SDK.

Install

npm install graphql@14.7.0 huobi-chain-sdk

Example

const { AssetService } = require('huobi-chain-sdk');

async function main() {
  const service = new AssetService();
  const receipt = await service.write.create_asset({
    name: 'MyToken',
    supply: 10000000,
    precision: 0,
    symbol: 'MT',
    relayable: false,
    admin: '...',
    init_mints: [{ addr: '...', balance: 10000000 }],
  });

  console.log(receipt.response);
}

main();

Readme

Keywords

none

Package Sidebar

Install

npm i huobi-chain-sdk

Weekly Downloads

2

Version

0.6.0

License

MIT

Unpacked Size

97.3 kB

Total Files

59

Last publish

Collaborators

  • homura