Send Polygon transaction with front-running protection automatically on server side, base on the accessibility of the next validators

Polygon Mainnet

The polygon_private_tx endpoint allows users to send a single transaction to cloud-api, and cloud-api will check the BDN accessibility of the next validators. If validators are accessible, transaction will be sent with next_validator flag, along with 4 seconds fallback. Otherwise transaction will be sent with validator_only flag. More details about these flags can be found in semi-private transaction page. There is also a safe window on BDN (500ms ~ 200ms before blocks confirm), transaction arrives before this window will be held, and transaction arrives after will not be sent to validator.

Note: endpoint is only supported by cloud-api.


Method: polygon_private_tx

ParameterDescriptionInstructions & Notes


Raw transactions bytes without 0x prefix.

Mandatory. Learn more about constructing the transaction here.

Examples (Cloud API)

curl https://api.blxrbdn.com \
    --insecure \
    -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: <YOUR-AUTHORIZATION-HEADER>" \
    -d '{
         "id": "1", 
         "method": "polygon_private_tx", 
         "params": {
            "transaction": "f86b0184...e0b58219",


Result Fields

Result Field



Transaction hash


    "jsonrpc": "2.0", 
    "id": "1", 
    "result": "0xffd59870844e5...bfa54a69"        

Last updated