---
title: "Broadcast a transaction (raw or PSBT)"
method: POST
path: "/cryptos/{cryptoCode}/transactions"
tags: ["Transactions"]
---

# Broadcast a transaction (raw or PSBT)

`POST /cryptos/{cryptoCode}/transactions`

Broadcasts a raw transaction or a Partially Signed Bitcoin Transaction (PSBT) to the network for the specified cryptocurrency.

## Path parameters

- `cryptoCode` string, required

## Query parameters

- `testMempoolAccept` boolean

## Request body

- object
  - `hex` string — The raw transaction in hexadecimal format.
  - `psbt` string — The PSBT in Base64 encoding.

## Response `200`

Transaction processed successfully.

- object
  - `transactionId` string, required — The ID of the transaction.

## Other responses

- `400` — Bad request. Invalid transaction data.

## Changes

- **2024-11-25** `6b9539137e6a` — 2 breaking, 4 warning, 5 info
  - request body became required
  - removed the media type `application/octet-stream` from the request body
  - removed the optional property `rpcCode` from the response with the `200` status
  - removed the optional property `rpcCodeMessage` from the response with the `200` status
  - …7 more
- **2024-11-18** `b5092f204599` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/cryptos/:cryptoCode/transactions/post.md)

---

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