POST
/
v0
/
multicall
/
authorization
from compassapisdk import CompassAPISDK, models


with CompassAPISDK(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:

    res = compass_api_sdk.transaction_batching.authorization(chain=models.Chain.ETHEREUM_MAINNET, sender="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")

    # Handle response
    print(res)
{
  "nonce": 12345,
  "address": "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
  "chainId": 1
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Body

application/json

Request model for getting a multicall authorization.

This model is used to authorize a sender address to perform multicall operations, allowing it to call multiple functions on multiple contracts in a single transaction.

chain
enum<string>
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
sender
string
required

The Ethereum address to use for authorization

Examples:

"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"

Response

200
application/json
Successful Response

Response model for multicall authorization.

nonce
integer
required

A unique nonce value for this authorization

Examples:

12345

address
string
default:0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B
required

The Ethereum address authorized for multicall

chainId
integer
required

The chain ID for the blockchain network

Examples:

1