paraUSD Balance (fetchParabolUSDBalance)

This method fetches the paraUSD balance of a wallet address.

import { SupportedChainIds } from "@parabolfi/core";
import { ParabolServer } from "@parabolfi/server";
 
const parabolServer = new ParabolServer({
  apiKey: process.env.PARABOL_API_KEY,
});
 
const chain = SupportedChainIds.ZKSYNC;
const walletAddress = "0x...";
const balance = await parabolServer.fetchParabolUSDBalance(walletAddress, [
  chain,
]);

Response

{
  "324": {
    "address": "0x4ea830109b8df82d4e05f1fa7780b27f8f6dc7d7",
    "balance": "25671740219218521501362"
  }
}
  • address is the wallet address of the balance.
  • balance is the paraUSD balance of the wallet address.