Skip to main content
POST
/
defi
/
lending
/
supply-avax
Supply AVAX to AAVE
curl --request POST \
  --url https://api.relayer.fi/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>"
  }
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Body

application/json
userAddress
string
required
Example:

"0xb322E239E5A32724633A595b8f8657F9cbb307B2"

amount
number
required

Amount of AVAX to supply

Example:

0.1

chainId
number
required

Chain ID (43114 for Avalanche)

Example:

43114

Response

Supply transaction prepared successfully

success
boolean
message
string
serializedTransaction
string
gasEstimation
object