Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.83 KB

File metadata and controls

50 lines (32 loc) · 1.83 KB

APIs

RPC API

Connecting to parachain nodes:

  • Kintsugi (by Kintsugi Labs): wss://api-kusama.interlay.io/parachain
  • Kintsugi (by OnFinality): wss://kintsugi.api.onfinality.io/public-ws
  • Testnet: wss://api.interlay.io/parachain

Asset API

Overview of assets

Asset CURRENCY_ID CURRENCY_INDEX DECIMALS
DOT DOT 0 10
interBTC INTERBTC 1 8
INTR INTR 2 10
KSM KSM 10 12
kBTC KBTC 11 8
KINT KINT 12 12

?> For any newly added assets, please refer to the on-chain implementation. We will not update the currency id or index of already published assets.

Querying account balances

Returns the amount of tokens in the smallest denomination.

api.query.tokens.accounts('address', {Token: CURRENCY_ID})

Transferring tokens extrinsic

Transfers an amount of tokens in the smallest denomination.

api.tx.tokens.transfer('address', {Token: CURRENCY_ID}, amount)

Implementation notes

All assets in Kintsugi and Interlay networks are implemented using orml.

?> Querying the system account is not supported on Kintsugi or Interlay. Please use the API methods described above to achieve transfers.