Actions
Execute an action
Build the unsigned transactions for a Borrow action such as supply or borrow, and return them for the wallet to sign.
POST
Execute a borrow action
Returns
Errors return
201 with an action whose transactions[] you sign and submit in the order returned, using Submit a transaction, then poll Get an action. Nothing executes until a signed transaction is submitted. metadata previews the health factor and LTV after the action.
args is one flat object shared by every action. Required arguments per action and integration, the amount and amountRaw rules, repayAll, and the validation errors are in Action arguments. Which integration supports which action is in Availability by integration. The Borrow API applies no geolocation block on this route.
Only borrow and repay accept a collateral amount, which adds a collateral leg to the same action; see Collateral bundling. On pool markets it also needs collateralTokenAddress:
Borrow with collateral on a pool market
Close a debt
statusCode, timestamp, path and message. Common causes of 400: an unknown or unsupported integrationId, an action the integration does not support, an argument that fails the rules above, and Lista minLoan violations. An unknown marketId returns 404. See Errors and retries.Body
application/json
Response
Action created with unsigned transactions ready for signing
Execute a borrow action

