Data Service

Along with using the Mirai SDK, developers can make use of the data service to retreive information such as Account Balances.

For making these api-calls, you’ll need to get a data service api key.

Without passing one in, there is a default key which is very heavily rate limited.

MethodsDescription

getAccountBalances(accountAddress: string, chainId: number, dataApiKey: string): Promise<any>

Returns the Account Balance.

getTransaction(hash: string, chainId: number, dataApiKey: string): Promise<any>;

Returns details about a transaction.

getNftsList(tokenAddress: string, chainId: number, dataApiKey: string): Promise<any>;

Returns a list of NFTs that the account owns.

 * @param dataApiKey- Contact kanalabs to obtain the API key for authentication.

Last updated