Submit Transactions

Use this endpoint to send a single transaction on X Layer Mainnet using bloXroute’s Blockchain Distribution Network (BDN).

This Cloud API endpoint for sending transactions on X Layer Mainnet is available to all users, including those on the Introductory plan.

REQUEST

Method: blxr_tx

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.

Cloud-API

  • WebSocket endpoint: wss://api.blxrbdn.com/ws

  • HTTPS POST endpoint: https://api.blxrbdn.com

You may also send to IP-specific endpoints (e.g., wss://<IP>/ws). See Cloud-API IPs for more.

Sending transactions via WebSocket instead of HTTPS can lead to a latency improvement of up to 10ms.

Examples

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

Result Fields

Result Field
Description

tx_hash

Transaction hash

Examples

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

Rate Limits

Plan
Max Transactions
Time Window

Ultra

10 tx

1 second

Enterprise-Elite

5 tx

1 second

Enterprise

3 tx

1 second

Professional

1 tx

5 seconds

Introductory

1 tx

5 seconds

Last updated