cURL
curl --request POST \ --url http://localhost:4000/v1/defi/lending/supply-avax \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "userAddress": "0xb322E239E5A32724633A595b8f8657F9cbb307B2", "amount": 0.1, "chainId": 43114 }'
{ "success": true, "message": "<string>", "serializedTransaction": "<string>", "gasEstimation": { "gasLimit": "<string>", "estimatedCost": "<string>" } }
Prepare a transaction to supply AVAX to lending protocol
Use this format: ApiKey <your_api_key>
ApiKey <your_api_key>
"0xb322E239E5A32724633A595b8f8657F9cbb307B2"
Amount of AVAX to supply
0.1
Chain ID (e.g., 43114 for Avalanche, 43113 for Fuji testnet)
43114
Supply transaction prepared successfully
Show child attributes