Build borrow
build_borrowBuild the steps that borrow more against a position. Returns UNSIGNED transaction steps for the owner to sign in order; this server never holds keys or sends transactions. The build expires after 180 seconds (expiresAt, unix ms): build immediately before signing, not as a plan for later. Builds are single-use: rebuilding an open predicts a different position address, so never replay one. A successful build does not guarantee a successful transaction: pass steps to simulate and check ok before asking anyone to sign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | EOA that owns the position and signs the steps. The smart account is derived from it server-side. | |
| chainId | Yes | EVM chain id | |
| marketId | No | ||
| strategyId | Yes | Strategy id from list_strategies (`strategyId`) | |
| borrowAmount | Yes | ||
| positionAddress | Yes | Position (vault) address |