---
title: "Calldata to execute a single swap"
method: GET
path: "/swap/calldata/{commitmentId}"
tags: ["swap"]
---

# Calldata to execute a single swap

`GET /swap/calldata/{commitmentId}`

Get the calldata needed to execute a single swap.

## Path parameters

- `commitmentId` string, required — Unique identifier of the swap commitment.

## Response `200`

SwapCalldataResponse

- SwapCalldataResponse
  - `calldata` string, required — Hex-encoded calldata for executing the swap transaction.

## Other responses

- `400` — The request did not match the expected schema
- `404` — CommitmentNotFoundError
- `422` — InvalidCommitmentTypeError

---

[API](https://skmtc.net/rhino/apis/bridge-api.md) · [All operations](https://skmtc.net/rhino/apis/bridge-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rhino/bridge-api/revisions/fb4dd5f3c1b3/schema)
