For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Methods
Description

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