tradehub-api-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.30 • Public • Published

Tradehub SDK

Setup

Install from npm:

npm install tradehub-api-js

Usage

import { TradeHubSDK } from "tradehub-api-js";

(async () => {
  const mnemonic = "your mnemonics here";

  const sdk = new TradeHubSDK({
    network: TradeHubSDK.Network.TestNet,
  });

  const connectedSDK = await sdk.connectWithMnemonic(mnemonic);
  console.log("connected wallet:", connectedSDK.wallet.bech32Address);
})();

See /examplesV2 for some examples to help you get started.

All SDK functionalities are packaged in /src/lib/tradehub; /examples and the rest of /src/lib have been deprecated and are kept for backwards compatibility.

Readme

Keywords

none

Package Sidebar

Install

npm i tradehub-api-js

Weekly Downloads

1

Version

1.0.30

License

MIT

Unpacked Size

1.29 MB

Total Files

603

Last publish

Collaborators

  • stevenkhong