Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ostium.com/llms.txt

Use this file to discover all available pages before exploring further.

await client.approveUsdc('max');
Or approve a fixed amount:
await client.approveUsdc('1000');

Important behavior

  • available in self modes
  • unavailable in delegated modes
  • required before openTrade() and some updateCollateral() top-ups

Response schema

interface Response {
  txHash: `0x${string}`;
  smartAccountAddress?: `0x${string}`;
}