Get Token Allowance

Helper utility to get a wallet's token allowance for a given product

See getTokenAllowance 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.getTokenAllowance(productId, "0xad432...");

Last updated