lending.withdraw
ActiveTool of Syenite
Generates unsigned withdraw transaction calldata to reclaim a supplied asset from Aave v3 (Ethereum, Arbitrum, Base) or Spark (Ethereum). Call `lending.position.monitor` first to confirm the withdrawal will not push an outstanding borrow position toward liquidation. Provide `protocol`, `chain`, `asset`, a human-readable `amount` or the string "max" to withdraw the full supplied balance, and `to` as the recipient address. Returns one transaction request; Syenite never holds private keys and no funds move until the caller signs and broadcasts.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"asset",
"amount",
"to"
],
"properties": {
"to": {
"type": "string",
"description": "Recipient address for withdrawn tokens"
},
"asset": {
"type": "string",
"description": "Asset to withdraw"
},
"chain": {
"enum": [
"ethereum",
"arbitrum",
"base"
],
"type": "string",
"default": "ethereum",
"description": "Chain"
},
"amount": {
"type": "string",
"description": "Amount in human-readable units, or \"max\" to withdraw all"
},
"protocol": {
"enum": [
"aave-v3",
"spark"
],
"type": "string",
"default": "aave-v3",
"description": "Lending protocol"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Syenite
https://github.com/syenite-ai/syenite
1/7 registries