Build ordered authorizations, approvals, and a wallet-executed Bundler3 loop.
Path Parameters
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
0 < value^0x[0-9a-fA-F]{64}$Position owner and signer of every returned transaction. Relayed execution is not supported.
^0x[a-fA-F0-9]{40}$Maximum loan tokens that the bundle may pull from the wallet.
^\d{1,78}$Maximum existing vault shares that the bundle may pull from the wallet.
^\d{1,78}$"0"Share-price slippage in basis points (50 = 0.5%). Supply this or the raw price limit, never both.
0 <= value <= 9999Maximum mint price in raw asset/share units, scaled by 1e27. A caller-supplied slippage limit.
^\d{1,78}$Value in
- "v1"
- "v2"
Risk policy enforced on the resulting position. Defaults to the frontend selection, max_risk.
"max_risk"Value in
- "safe"
- "standard"
- "max_risk"
"target"Value in
- "target"
Desired total Morpho debt in raw loan-token units.
^\d{1,78}$Desired total collateral in raw vault-share units.
^\d{1,78}$falseResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/vaults/nest-wisdom-vault/loop/build-tx" \ -H "Content-Type: application/json" \ -d '{ "chainId": 1, "marketId": "string", "sender": "string", "maxAssetInput": "string", "targetDebtAssets": "string", "targetCollateralShares": "string" }'{ "data": { "slug": "string", "chainId": 0, "marketId": "string", "sender": "string", "blockNumber": "string", "vaultAddress": "string", "loanToken": "string", "shareToken": "string", "mode": "target", "leverageBps": 0, "complianceVersion": "v1", "bundlerAddress": "string", "adapterAddress": "string", "targetDebtAssets": "string", "targetCollateralShares": "string", "borrowAssets": "string", "mintShares": "string", "walletAssetInput": "string", "walletShareInput": "string", "maxSharePriceE27": "string", "risk": { "preset": "safe", "maxLeverageBps": 0, "oracleLeverageBps": "string", "vaultLeverageBps": "string" }, "transactions": [ { "label": "approve", "description": "string", "to": "string", "data": "string", "value": "0", "complianceExpiresAt": 1 } ] }}