Skip to main content

Common Errors

Insufficient Funds

Error: "insufficient funds" Cause: Not enough USDC in wallet or subaccount Solution:

Insufficient Collateral

Error: "insufficient collateral" Cause: Not enough free collateral to place order Solution:

Order Expired

Error: Order expired or goodTilBlock in the past Cause: Block height has passed goodTilBlock Solution:

Network Errors

Error: "network request failed", "timeout" Cause: Network connectivity issues Solution:

Error Handling Patterns

Try-Catch Wrapper

Specific Error Handling

Security

Security best practices

FAQ

Frequently asked questions