BlockiaPay icon

BlockiaPay

Provides integration with Blockia Pay Agent SDK for executing AI agent–based payment workflows

Get Balance

AI-generated

Summary

Retrieve the balance of a specified token for a given wallet address using Blockia Pay Agent SDK.

Inputs

  • Token Address (required) — The contract address of the token to check the balance for.
  • Wallet Address (required) — The blockchain wallet address whose token balance will be retrieved.

Output shape

a single record containing the balance data wrapped in a 'data' property JSON object

Returns the balance information obtained from the Blockia Pay Agent SDK as a JSON array with a single item containing a 'data' field. Errors are thrown if the operation fails or required credentials are missing.

Examples

Example 1: Get the USDC token balance of your wallet

Set 'Token Address' to USDC contract and 'Wallet Address' to your wallet address

Discussion