Skip to main content
POST
Simulate a borrow action
The body is the same as for Execute an action, but nothing is created or stored, so you can show the user the cost and the resulting position before they commit. outcome previews the position after the action, with the current and predicted health factor and LTV, and any fees, in the same shape as an action’s metadata. gas.amount is the native-token cost of the whole action. It is null unless every transaction has a gas estimate, and transactions without one are left out of gas.transactions. The response is split into sections so new fields can be added without breaking existing clients.

Authorizations

x-api-key
string
header
required

Body

application/json
integrationId
string
required

Integration identifier

Example:

"aave-borrow"

action
enum<string>
required

Action to execute

Available options:
supply,
borrow,
repay,
withdraw,
enableCollateral,
disableCollateral,
supplyAndBorrow
Example:

"supply"

address
string
required

User wallet address

Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f8fB28"

args
object
required

Action arguments

Response

Simulation envelope with gas and predicted outcome

gas
object
required

Estimated gas cost, aggregated and per transaction

outcome
object
required

Predicted position impact after the action