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

  • Request type: HTTPS,WSS

Parameters

Parameter
Description
Instructions & Notes

transaction

Raw transactions bytes without 0x prefix.

[Required] Learn more about constructing the transaction here.

blockchain_network

Blockchain network name.

[Required] Set to X-Layer-Mainnet.

backrunme_reward_address

Wallet address String to receive BackRunMe rewards to

[Optional] Transactions are automatically enrolled in Backrunning services, from which rewards are shared with the specified backrunme_reward_address.

Example

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"}}
< ...

RESPONSE

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

Last updated