# Private Transactions

Use this endpoint to send a single transaction on X Layer Mainnet using bloXroute’s Blockchain Distribution Network (BDN). Sending transactions over WebSocket instead of HTTPS can reduce latency by up to 10ms. The endpoint returns the transaction hash as a response.

## Submission Endpoint

* Method: `blxr_tx`
* Cloud API Endpoint: `api.blxrbdn.com`&#x20;
* Request type: *`HTTPS,WSS`*

### Parameters

<table><thead><tr><th width="240.96529134114581">Parameter</th><th width="195.888916015625">Description</th><th width="314.9652506510417">Instructions &#x26; Notes</th></tr></thead><tbody><tr><td><code>transaction</code></td><td>Raw transactions bytes without <strong><code>0x</code></strong> prefix. </td><td><em>[<strong>Required</strong>]</em> Learn more about constructing the transaction <a href="../../eth/sending-transactions/raw-transaction-construction">here</a>.</td></tr><tr><td><code>blockchain_network</code></td><td><p>Blockchain network name. </p><p></p></td><td><em>[<strong>Required</strong>]</em> Set to <code>X-Layer-Mainnet</code>.</td></tr><tr><td><code>backrunme_reward_address</code></td><td>Wallet address <code>String</code> to receive BackRunMe rewards to</td><td><em>[<strong>Optional</strong>]</em> Transactions are automatically enrolled in Backrunning services, from which rewards are shared with the specified <code>backrunme_reward_address</code>.</td></tr></tbody></table>

### Example

{% tabs %}
{% tab title="wscat WS" %}

```bash
wscat -c wss://api.blxrbdn.com/ws --header "Authorization: <YOUR-AUTHORIZATION-HEADER>"
> {"jsonrpc": "2.0", "id": 1, "method": "blxr_tx", "params":
   {"transaction": "f86b0184...e0b58219", "blockchain_network": "X-Layer-Mainnet"}}
< ...
```

{% endtab %}

{% tab title="HTTPS POST" %}

```bash
curl -X POST https://api.blxrbdn.com \
  -H "Authorization: <YOUR-AUTHORIZATION-HEADER>" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "blxr_tx",
    "params": {
      "transaction": "f86b0184...e0b58219",
      "blockchain_network": "X-Layer-Mainnet"
    }
  }'
```

{% endtab %}
{% endtabs %}

#### RESPONSE

{% tabs %}
{% tab title="Response" %}

```bash
{
    "jsonrpc": "2.0", 
    "id": "1", 
    "result": {
        "tx_hash": "ffd59870844e5...bfa54a69"
    }
}    
```

{% endtab %}
{% endtabs %}
