Parabol USD Nonce (fetchParabolUSDNonce)

This method fetches the Parabol USD contract nonce 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 nonce = await parabolServer.fetchParabolUSDNonce(walletAddress, [chain]);

Response

{
  "324": { "id": "0x4ea830109b8df82d4e05f1fa7780b27f8f6dc7d7", "nonce": "26" }
}
  • id is the wallet address of the nonce.
  • nonce is the Parabol USD contract nonce of the wallet address.

The nonce is used for permitLend operations. So, it is useful when you want to sign a permitLend message.