NonFungibleNotePosition Nonce (fetchNonFungibleNotePositionNonce)
This method fetches the NonFungibleNotePosition 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.fetchNonFungibleNotePositionNonce(
walletAddress,
[chain]
);
Response
{
"324": { "id": "0x4ea830109b8df82d4e05f1fa7780b27f8f6dc7d7", "nonce": "0" }
}
id
is the wallet address of the nonce.nonce
is the NonFungibleNotePosition contract nonce of the wallet address.
➓
The nonce is used for permitClaim
operations. So, it is useful when you want
to sign a permitClaim
message.