Supply
Operations
Supply
POST /v1/operations/supply — Plan a supply operation
POST
Supply
Endpoint:
POST https://api.rebelfi.io/v1/operations/supplyRequest Body
Provide one wallet identifier:| 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 |
Example Request
Example Response (EVM)
EVM supply operations may include multiple transactions (e.g., an ERC-20approve followed by a supply):
On EVM chains, operations may return multiple transactions that must be signed and submitted in order. Sign and submit each transaction sequentially before proceeding to the next.
Example Response (Solana)
Example Response (with auto-cancelled operations)
If there were pending operations for the same wallet, they are automatically cancelled:The
cancelledOperations field is only present when operations were auto-cancelled. It contains the IDs of the cancelled operations.Errors
| 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 |