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

# Broadcast a transaction (raw or PSBT)

`POST /v1/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** `cfaf4efd4ea8` — 2 breaking, 3 info
  - the `code` response's property type changed from `integer` to `string` for status `400`
  - removed the required property `error` from the response with the `400` status
  - added the optional property `httpCode` to the response with the `400` status
  - added the optional property `message` to the response with the `400` status
  - …1 more
- **2024-11-25** `72a2dfa26976` — 1 info
  - endpoint added
- **2024-11-18** `b5092f204599` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/v1/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/cfaf4efd4ea8/schema)
