Dear Subscan Support Team,
I hope this message finds you well.
I am working on a project that requires retrieving token balances (such as DOT, ASTR, and USDT) from various parachains in the Polkadot ecosystem. Specifically, I need to access the balances for these tokens on parachains like Polkadot, Astar, and HydraDX (AssetHub).
Could you kindly provide the following information:
API Endpoints:
What are the correct API endpoints for querying token balances on the different parachains (Polkadot, Astar, and AssetHub)?
Supported Assets:
Are tokens like DOT, ASTR, and USDT supported for balance queries via Subscan API? If yes, could you provide the necessary assetId or other identifiers needed for querying balances?
Request Format:
Could you provide the correct request format (including headers and parameters) to query the balances of specific tokens on a given parachain? For example, I would like to know how to query the balance of DOT on Polkadot, ASTR on Astar, and USDT on HydraDX.
API Key:
Is there any need for an API key for accessing these specific token balance endpoints? If so, could you provide details on how to obtain one?
Error Handling:
What are the common error responses, and how should I handle them when querying balances?I would greatly appreciate any documentation or examples that can help guide me in querying token balances across multiple parachains.
Thank you very much for your assistance.