Prepare paying off a loan
repay_loan_against_landPrepare paying off the open DeFi lending pool loan on a property (Sepolia Testnet), or the one named by loanId, with the payoff amount today. A loan is open while active and, past maturity, in default until the pool's auction starts. Checks first that the loan is open and the wallet is its borrower, and warns when it is past maturity. Paying off returns the token to the wallet, free of the loan. Prepared, not sent: returns a signRequest (summary, warnings, signLink to fabrica.land, expiresAt 15 minutes out, payload null for now) and stores it so the sign page can load it. The person opens the link, signs in with that wallet and signs; nothing happens until then. The server holds no keys and submits nothing. wallet is the address that will sign.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wallet": "<wallet>"
},
"name": "repay_loan_against_land"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Property slug from the URL | |
| loanId | No | The loan to pay off (default: the property's open loan, active or in default) | |
| wallet | Yes | The wallet that will sign (0x address). The sign page only lets this wallet sign. | |
| tokenId | No | The token ID of the property |