Approve Allowance

Approves allowance of a provided amount to the on-chain Endpoint contract. Required to be able to deposit collateral.

See approveAllowance API reference for more details.

Makes a call to approveAllowance of a provided amount to the on-chain token contract of a given Spot productId.

Usage

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

const vertexClient = await createVertexClient('testnet', ...);
const res = await vertexClient.spot.approveAllowance(...);

Last updated