---
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, or finalized PSBT in Base64 or hex.

## Response `200`

Transaction processed successfully.

- object
  - `success` boolean — Whether the transaction was successfully broadcast.
  - `rpcCode` integer — The RPC code returned by the node.
  - `rpcCodeMessage` string — The error code message returned during transaction submission.
  - `rpcMessage` string — The detailed RPC message returned by the node.

## Other responses

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

## Changes

- **2025-08-27** `7cfed66afed8` — 1 breaking, 1 warning, 4 info
  - removed the required property `transactionId` from the response with the `200` status
  - removed the request property `psbt`
  - added the optional property `rpcCode` to the response with the `200` status
  - added the optional property `rpcCodeMessage` to the response with the `200` status
  - …2 more
- **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
- **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/208cac39e31a/schema)
