Authentication
The Yieldo API is currently open and does not require authentication for public endpoints. Wallet partners can use API keys for attribution tracking.Base URL
All endpoints are available at:Request Format
- All
POSTrequests accept JSON bodies withContent-Type: application/json - All
GETrequests use query parameters - All amounts are in raw token units (wei for 18-decimal tokens, smallest unit for others)
Response Format
All responses return JSON. Successful responses return the data directly. Errors return:Health Check
{"status": "ok"} when the API is running.
Typical Integration Flow
Step 1: Discover Vaults
Fetch the list of available vaults. Optionally filter by chain or asset.Step 2: Get Source Tokens
Fetch the tokens available on the user’s source chain.Step 3: Request a Quote
Submit the user’s source chain, token, amount, and target vault to get a quote.- estimate - Expected output amounts and estimated shares
- approval - Token approval details (if needed)
- route_options - Available bridge routes for cross-chain deposits
Step 4: Token Approval
If the response includes anapproval object, the user must approve the specified spender_address to spend their tokens before submitting the transaction.
Step 5: Build the Transaction
Submit the vault and amount details to get the final transaction.Step 6: Send the Transaction
Send the returnedtransaction_request using the user’s wallet (eth_sendTransaction).
Step 7: Track Status
For cross-chain deposits, poll the status endpoint:Amount Handling
All amounts in the API are strings representing raw token units:| Token | Decimals | 1.0 token |
|---|---|---|
| USDC | 6 | "1000000" |
| USDT | 6 | "1000000" |
| WETH | 18 | "1000000000000000000" |
| WBTC | 8 | "100000000" |