> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /tx

Broadcast a raw transaction to the network.

This method will use `10` [Compute Units](/nodeapi/about/billing).

***

## **Parameters**

**`hex tx data`** - string, required in request body.

## Returns

The txid will be returned on success.

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl --request POST \
    --url https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/tx \
    --header 'Content-Type: text/plain' \
    --data <HEX_DATA>
  ```

  ```bash title="testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl --request POST \
    --url https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/tx \
    --header 'Content-Type: text/plain' \
    --data <HEX_DATA>
  ```
</CodeGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.