You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.
async function main () {
const api = await createInterbtc(PARACHAIN_ENDPOINT, isMainnet)
const interBtc = await api.polkadotApi;
let data = await interBtc.query.tokens.accounts(account, 'kint')
console.log(data)
//..
}
main().catch(console.error).finally(() => process.exit());
shows up..
RPC-CORE: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: decodeU8a: failed at 0x0e5506000c1c7370… on metadata:: decodeU8a: failed at 0xa81853797374656d… on pallets: Vec:: decodeU8a: failed at 0x1853797374656d01… on : {"name":"Text","storage":"Option","calls":"Option","events":"Option","constants":"Vec","errors":"Option","index":"u8"}:: decodeU8a: failed at 0x011853797374656d… on storage: Option:: decodeU8a: failed at 0x401c4163636f756e… on items: Vec:: decodeU8a: failed at 0x04e8205468652066… on : {"name":"Text","modifier":"StorageEntryModifierV14","type":"StorageEntryTypeV14","fallback":"Bytes","docs":"Vec"}:: decodeU8a: failed at 0x68652066756c6c20… on modifier: {"_enum":{"Optional":0,"Default":1,"Required":2}}:: Unable to create Enum via index 104, in Optional, Default, Required
what I doing wrong?
when i trying connect with the same code to Interbtc with >const PARACHAIN_ENDPOINT = 'wss://api.interlay.io/parachain';< it's ok
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi guys,
I want to check KINT balance. Can you tell me where i do mistakes?
import pkg from '@interlay/interbtc';
const { createInterbtc } = pkg;
const PARACHAIN_ENDPOINT = 'wss://api-kusama.interlay.io/parachain';
const isMainnet = true;
const account = 'aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
async function main () {
const api = await createInterbtc(PARACHAIN_ENDPOINT, isMainnet)
const interBtc = await api.polkadotApi;
let data = await interBtc.query.tokens.accounts(account, 'kint')
console.log(data)
//..
}
main().catch(console.error).finally(() => process.exit());
shows up..
RPC-CORE: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: decodeU8a: failed at 0x0e5506000c1c7370… on metadata:: decodeU8a: failed at 0xa81853797374656d… on pallets: Vec:: decodeU8a: failed at 0x1853797374656d01… on : {"name":"Text","storage":"Option","calls":"Option","events":"Option","constants":"Vec","errors":"Option","index":"u8"}:: decodeU8a: failed at 0x011853797374656d… on storage: Option:: decodeU8a: failed at 0x401c4163636f756e… on items: Vec:: decodeU8a: failed at 0x04e8205468652066… on : {"name":"Text","modifier":"StorageEntryModifierV14","type":"StorageEntryTypeV14","fallback":"Bytes","docs":"Vec"}:: decodeU8a: failed at 0x68652066756c6c20… on modifier: {"_enum":{"Optional":0,"Default":1,"Required":2}}:: Unable to create Enum via index 104, in Optional, Default, Required
what I doing wrong?
when i trying connect with the same code to Interbtc with >const PARACHAIN_ENDPOINT = 'wss://api.interlay.io/parachain';< it's ok
The text was updated successfully, but these errors were encountered: