lending.repay
ActiveTool of Syenite
Generates unsigned ERC-20 approval and variable-rate repay transaction calldata for Aave v3 (Ethereum, Arbitrum, Base) or Spark (Ethereum). Use this to reduce or eliminate an outstanding borrow; pass amount "max" (uint256 max) to repay the entire debt balance, or a specific human-readable amount for partial repayment. Provide `protocol`, `chain`, `asset` being repaid, `amount`, and `onBehalfOf` wallet address. Returns the ERC-20 approval transaction (submit first) and the repay transaction; 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",
"onBehalfOf"
],
"properties": {
"asset": {
"type": "string",
"description": "Asset to repay"
},
"chain": {
"enum": [
"ethereum",
"arbitrum",
"base"
],
"type": "string",
"default": "ethereum",
"description": "Chain"
},
"amount": {
"type": "string",
"description": "Repay amount in human-readable units, or \"max\" for full repayment"
},
"protocol": {
"enum": [
"aave-v3",
"spark"
],
"type": "string",
"default": "aave-v3",
"description": "Lending protocol"
},
"onBehalfOf": {
"type": "string",
"description": "Address whose debt to repay"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Syenite
https://github.com/syenite-ai/syenite
1/7 registries