Skip to main content
POST
/
v2
/
cctp
/
mint
Python (SDK)
from compass_api_sdk import CompassAPI


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

    res = compass_api.bridge.cctp_mint(bridge_id="br_cae305798062", burn_tx_hash="0x42c914b870eacc2c1734420f6ab183f95a5b0e0fdbb1c82247183848b76fc8ad", sender="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")

    # Handle response
    print(res)
{
  "bridge_id": "<string>",
  "transaction": {
    "chainId": "<string>",
    "data": "<string>",
    "from": "<string>",
    "gas": "<string>",
    "to": "<string>",
    "value": "<string>",
    "nonce": "<string>",
    "maxFeePerGas": "<string>",
    "maxPriorityFeePerGas": "<string>"
  },
  "status": "ready"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Body

application/json
bridge_id
string
required

The bridge identifier returned from /burn endpoint. This is used to look up the bridge session.

burn_tx_hash
string
required

The transaction hash of the burn transaction on the source chain. This is used to find the DepositForBurn event and extract the CCTP message.

sender
string
required

The wallet address that will sign and send the mint transaction. This can be any wallet, the receiver of the minted USDC is not determined by this sender.

Response

Attestation ready with mint transaction, or bridge already completed

  • MintPrepareReadyResponse
  • MintPrepareCompletedResponse

Response when attestation is ready and mint transaction can be built.

Returned with 200 OK status code. Contains an unsigned transaction that calls receiveMessage on the MessageTransmitter contract.

bridge_id
string
required

The bridge identifier.

transaction
UnsignedTransaction · object
required

Unsigned transaction that calls receiveMessage on the MessageTransmitter contract. Sign and broadcast this to mint USDC on the destination chain.

status
string
default:ready

Indicates the attestation is ready and mint transaction is available.

Allowed value: "ready"