Connecting to parachain nodes:
wss://api.interlay.io:443/parachainwss://interlay.api.onfinality.io/public-ws
wss://api-kusama.interlay.io:443/parachainwss://kintsugi.api.onfinality.io/public-ws
wss://api-testnet.interlay.io:443/parachain
wss://api-dev-kintsugi.interlay.io:443/parachain
The tokens pallet is used for Interlay/Kintsugi native assets and the relaychain assets.
| Asset | CURRENCY_ID | CURRENCY_INDEX | DECIMALS | Multilocation |
|---|---|---|---|---|
| DOT | DOT | 0 | 10 | (Parent, Here) |
| interBTC | IBTC | 1 | 8 | (Parent, (X2, Parachain: 2032, GeneralKey: 0x0001)) |
| INTR | INTR | 2 | 10 | (Parent, (X2, Parachain: 2032, GeneralKey: 0x0002)) |
| KSM | KSM | 10 | 12 | (Parent, Here) |
| kintsugiBTC | KBTC | 11 | 8 | (Parent, (X2, Parachain: 2092, GeneralKey: 0x000b)) |
| KINT | KINT | 12 | 12 | (Parent, (X2, Parachain: 2092, GeneralKey: 0x000c)) |
?> 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.
The assetRegistry pallet is used for assets from other parachains.
| Chain | Asset | CURRENCY_ID | ASSET_INDEX | DECIMALS | Multilocation |
|---|---|---|---|---|---|
| Interlay | Liquid DOT | LDOT | 1 | 10 | (Parent, (X2, Parachain: 2000, GeneralKey: 0x0003)) |
| Interlay | Tether USD | USDT | 2 | 6 | (Parent, (X3, Parachain: 1000, PalletInstance: 50, GeneralIndex: 1984)) |
| Kintsugi | Acala Dollar | AUSD | 1 | 12 | (Parent, (X2, Parachain: 2000, GeneralKey: 0x0081)) |
| Kintsugi | Liquid KSM | LKSM | 2 | 12 | (Parent, (X2, Parachain: 2000, GeneralKey: 0x0083)) |
| Kintsugi | Tether USD | USDT | 3 | 6 | (Parent, (X3, Parachain: 1000, PalletInstance: 50, GeneralIndex: 1984)) |
!> Before using foreign assets in your application or interacting with them via polkadot.js directly, please verify the correctness of the data above for the network you are trying to use via https://polkadot.js.org/apps/#/chainstate -> assetRegistry -> metadata().
Returns the amount of tokens in the smallest denomination.
// for asset in the tokens pallet
api.query.tokens.accounts('address', {Token: CURRENCY_ID});
// for asset in the asset registry pallet
api.query.tokens.accounts('address', {ForeignAsset: ASSET_INDEX});Transfers an amount of tokens in the smallest denomination.
// for asset in the tokens pallet
api.tx.tokens.transfer('address', {Token: CURRENCY_ID}, amount)
// for asset in the asset registry pallet
api.tx.tokens.transfer('address', {ForeignAsset: ASSET_INDEX}, amount)All assets in Kintsugi and Interlay networks are implemented using orml.
- Asset implementation: orml-tokens
- Cross-chain transfer implementation (XCM): orml-xtokens
- Foreign assets: orml-asset-registry
?> Querying the system account is not supported on Kintsugi or Interlay. Please use the API methods described above to achieve transfers.
Interlay provides a range of subsquid-based API endpoints for building front-ends and analytic tools.
- Squid: https://api.interlay.io/graphql/graphql
- Archive (hosted by subsquid): https://interlay.explorer.subsquid.io/graphql
- Archive (hosted by Interlay Labs): https://api.interlay.io/subsquid-explorer/graphql
- Squid: https://api-kusama.interlay.io/graphql/graphql
- Archive (hosted by subsquid): https://kintsugi.explorer.subsquid.io/graphql
- Archive (hosted by Kintsugi Labs): https://api-kusama.interlay.io/subsquid-explorer/graphql