POST
/
v0
/
transaction_bundler
/
execute
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.transaction_bundler.bundler_execute(chain=models.Chain.ARBITRUM_MAINNET, sender="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B", signed_authorization={
        "nonce": 1000,
        "address": "0xcA11bde05977b3631167028862bE2a173976CA11",
        "chain_id": 42161,
        "r": 4.3251085460800106e+76,
        "s": 5.471500338403868e+76,
        "y_parity": 0,
    }, actions=[
        models.UserOperation(
            body=models.IncreaseAllowanceParams(
                token=models.TokenEnum.WETH,
                contract_name=models.IncreaseAllowanceParamsContractName.UNISWAP_V3_ROUTER,
                amount="1000",
            ),
        ),
    ])

    # Handle response
    print(res)
{
  "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 a multicall.

Response

200
application/json

Successful Response

The response is of type object.