Skip to content

eth_sendRawTransaction v2

Introduction

The Fast Mode leverages BlockRazor's global high-performance network to achieve the lowest latency for transaction inclusion, making it suitable for users who have extreme requirements for transaction inclusion speed.

Compared to Send RawTx, eth_sendRawTransaction will not broadcasting txs via the mempool, ensuring both speed and privacy.

{% hint style="info" %} Fast Mode is not tied to the subscription plan, but each transaction sent in Fast Mode must include a tip sent to the address 0x9D70AC39166ca154307a93fa6b595CF7962fe8e5. The minimum tip amount is the greater of 0.000025 BNB or Transaction Fee * 5%. {% endhint %}

Compared with eth_sendRawTransaction, eth_sendRawTransaction v2 presents a much more streamlined and rapid method for submitting transactions.

  • Bypasses CORS Preflight: It eliminates the delay (50-100ms) that is typically incurred by OPTIONS preflight.
  • Plain Text over JSON: Employing a simple plain text transmission circumvents the computational burden associated with parsing JSON. Furthermore, the resulting smaller data size serves to cut down on network transfer time and costs.

Endpoint

http://bsc-fast.blockrazor.io/v2/sendRawTransaction

Rate Limit

Fast Mode is not tied to the subscription plan, the rate limit default to 10 TPS for all users. Please contact us if you require an increase in your TPS limit.

Request Example

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

curl -X POST 'http://bsc-fast.blockrazor.io/v2/sendRawTransaction?auth=<auth_token>' \
-H "Content-Type: text/plain" \
-d "<raw_tx>"

{% endtab %} {% endtabs %}

{% hint style="info" %} Note:

  • the auth are compulsory to be added in URI params
  • the only header permitted in the request is Content-Type: text/plain {% endhint %}

Response

Normal

{
    "code": 0,
    "message": "success",
    "data": {
        "txHash": "0xd2ebb523f400dd33ebf946a1280426196eed72c9a63b7e1734dd6f8e2f5a81dc"
    }
}

Abnormal

{
    "code": -32600,
    "message": "auth token is invalid",
    "data": null
}

Keep Alive

Please send a POST request to the health check endpoint to keep the connection alive. We recommend sending a request every 10 seconds. Below is a request example:

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

curl -X POST 'http://bsc-fast.blockrazor.io/health' \
-H "Content-Type: text/plain" \
-d ""

{% endtab %} {% endtabs %}