POST /v1/operations/supply — Plan a supply operation
POST https://api.rebelfi.io/v1/operations/supply| Field | Type | Required | Description |
|---|---|---|---|
walletAddress | string | One of | Wallet address |
walletId | number | One of | Wallet ID from registration |
strategyId | number | Yes | Target strategy ID (from venue listing) |
amount | string | Yes | Amount in base units (e.g., "1000000" for 1 USDC) |
tokenAddress | string | Yes | Token contract address |
approve followed by a supply):
cancelledOperations field is only present when operations were auto-cancelled. It contains the IDs of the cancelled operations.| Code | Description |
|---|---|
INVALID_AMOUNT | Amount is zero, negative, or malformed |
INVALID_ADDRESS | Wallet address format is invalid |
INSUFFICIENT_BALANCE | Wallet balance too low |
STRATEGY_NOT_FOUND | Strategy ID doesn’t exist |
STRATEGY_NOT_ACTIVE | Strategy is paused |
TOKEN_MISMATCH | Token doesn’t match strategy |
INSUFFICIENT_GAS | Not enough native token for transaction fee (ETH, POL, or SOL) |
SIMULATION_FAILED | Transaction simulation failed |
OPERATION_IN_PROGRESS | Another operation is currently executing for this wallet |
WALLET_NOT_FOUND | Wallet ID doesn’t exist |