---
title: "Broadcast a transaction"
method: POST
path: "/v1/cryptos/{cryptoCode}/broadcast"
tags: ["Transactions"]
---

# Broadcast a transaction

`POST /v1/cryptos/{cryptoCode}/broadcast`

Broadcasts a raw transaction to the network for the specified cryptocurrency.

## Path parameters

- `cryptoCode` string, required

## Request body

- object
  - `hex` string, required — The raw transaction in hexadecimal format.

## Response `200`

Transaction broadcast successfully.

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

## Other responses

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

## Changes

- **2024-11-25** `cfaf4efd4ea8` — 2 breaking, 3 info
  - the `code` response's property type/format 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

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