Get Token Wallet Balance

Helper utility to get current token balance of a provided wallet (i.e. not in a Vertex subaccount).

See getTokenWalletBalance API reference for more details.

Usage

import { createVertexClient } from '@vertex-protocol/client';

const productId = 1
const vertexClient = await createVertexClient('testnet', ...);
const res = await vertexClient.spot.getTokenWalletBalance(productId, "0x34w...");

Last updated