POST
/
v0
/
transaction_bundler
/
aave
/
loop
Typescript (SDK)
import { CompassApiSDK } from "@compass-labs/api-sdk";

const compassApiSDK = new CompassApiSDK({
  apiKeyAuth: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await compassApiSDK.transactionBundler.bundlerAaveLoop({
    chain: "arbitrum:mainnet",
    sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
    signedAuthorization: {
      nonce: 1000,
      address: "0xcA11bde05977b3631167028862bE2a173976CA11",
      chainId: 42161,
      r: "0x5f9f3f3226ac91bc01a72dd117141f6c6de1ed30d3af9f95c3423316dc21d615",
      s: "0x78f7982ede9dabc53d7153974c5692fda8a21fc73bdafc42aaf135505e22817c",
      yParity: 0,
    },
    collateralToken: "ARB",
    borrowToken: "BAL",
    initialCollateralAmount: "1000",
    multiplier: "2.5",
    maxSlippagePercent: 2.5,
    loanToValue: 20.5,
  });

  console.log(result);
}

run();
{
  "chainId": 123,
  "data": "<string>",
  "from": "<string>",
  "gas": 123,
  "to": "<string>",
  "value": 123,
  "nonce": 123,
  "maxFeePerGas": 123,
  "maxPriorityFeePerGas": 123,
  "authorizationList": []
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Body

application/json

Request model for executing an Aave loop strategy.

Response

200
application/json

Successful Response

The response is of type object.