Skip to main content
POST
/
protocols
/
lending
/
aave
/
execute
/
withdraw
Withdraw asset from AAVE protocol
curl --request POST \
  --url http://localhost:4000/v1/protocols/lending/aave/execute/withdraw \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "signWith": "account-123",
  "tokenAddress": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
  "amount": "50",
  "chainId": 43114,
  "autoBroadcast": true
}
'
{
  "success": true,
  "message": "<string>",
  "statusCode": 123,
  "timestamp": "<string>",
  "data": {
    "success": true,
    "message": "Deposit transaction signed and broadcasted successfully",
    "gasEstimation": {
      "gasLimit": "300000",
      "estimatedCost": "0.001"
    },
    "transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "signedTransaction": "0x02f8...",
    "approvalTransactionHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
    "transactionId": "tx-123e4567-e89b-12d3-a456-426614174000"
  },
  "path": "<string>"
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Query Parameters

integratorId
string

Integrator ID (required for ADMIN/INTERNAL scope)

Example:

"uuid-integrator-id"

Body

application/json

Withdraw parameters

signWith
string
required

Account identifier to sign the transaction with

Example:

"account-123"

tokenAddress
string
required

Token address to withdraw

Example:

"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"

amount
string
required

Amount to withdraw in token units (decimal format)

Example:

"50"

chainId
enum<number>
required
Chain ID where the withdrawal will be executed.

**Note:** This chain must be supported by AAVE SDK. The validation happens before any external API calls.
Available options:
43114,
43113,
1,
5,
11155111,
137,
80001,
42161,
421613,
8453,
84531,
10,
420
Example:

43114

autoBroadcast
boolean
default:false

Automatically broadcast the transaction

Example:

true

Response

success
boolean
required
message
string
required
statusCode
number
required
timestamp
string
required
data
object
path
string