---
title: "Signs a transaction using the specified relayer (Stellar only)."
method: POST
path: "/api/v1/relayers/{relayer_id}/sign-transaction"
tags: ["Relayers"]
---

# Signs a transaction using the specified relayer (Stellar only).

`POST /api/v1/relayers/{relayer_id}/sign-transaction`

## Path parameters

- `relayer_id` string, required

## Request body

- union
  - SignTransactionRequestStellar
    - `unsigned_xdr` string, required
  - integer[]
  - SignTransactionRequestSolana
    - `transaction` string, required

## Response `200`

Transaction signed successfully

- ApiResponseSignTransactionResponse
  - `data` union
    - SignTransactionResponseStellar
      - `signature` string, required
      - `signedXdr` string, required
    - integer[]
    - SignTransactionResponseSolana
      - `signature` string, required
      - `transaction` string, required
  - `error` string
  - `metadata` PluginMetadata
    - `logs` LogEntry[], nullable
      - `level` 'log' | 'info' | 'error' | 'warn' | 'debug' | 'result', required
      - `message` string, required
    - `traces` unknown[], nullable
      - unknown
  - `pagination` PaginationMeta
    - `current_page` integer, required
    - `per_page` integer, required
    - `total_items` integer, required
  - `success` boolean, required

## Other responses

- `400` — BadRequest
- `401` — Unauthorized
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal server error

## Changes

- **2025-11-07** `d1f71894e671` — 2 breaking, 2 info
  - removed `subschema #3` from the request body `oneOf` list
  - added `#/components/schemas/SignTransactionResponseSolana` to the `data` response property `oneOf` list for the response status `200`
  - added `#/components/schemas/SignTransactionRequestSolana` to the request body `oneOf` list
  - removed `subschema #3` from the `data` response property `oneOf` list for the response status `200`
- **2025-10-31** `5487da58bf15` — 2 breaking, 2 info
  - removed `#/components/schemas/SignTransactionRequestSolana` from the request body `oneOf` list
  - added `subschema #3` to the `data` response property `oneOf` list for the response status `200`
  - added `subschema #3` to the request body `oneOf` list
  - removed `#/components/schemas/SignTransactionResponseSolana` from the `data` response property `oneOf` list for the response status `200`

[Change history](https://skmtc.dev/openzeppelin/apis/openzeppelin-relayer-api/changes/api/v1/relayers/:relayer_id/sign-transaction/post.md)

---

[API](https://skmtc.dev/openzeppelin/apis/openzeppelin-relayer-api.md) · [All operations](https://skmtc.dev/openzeppelin/apis/openzeppelin-relayer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openzeppelin/openzeppelin-relayer-api/revisions/e6e7514284f5/schema)
