bsc_private_tx

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

BSC Mainnet

The bsc_private_tx endpoint allows users to send a single transaction to cloud-api, and cloud-api will propagate the transaction privately to the BDN accessible validators.

Note: endpoint is only supported by cloud-api.

REQUEST

Method: bsc_private_tx

ParameterDescriptionInstructions & Notes

transaction

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": "bsc_private_tx", 
         "params": {
            "transaction": "f86b0184...e0b58219",
	     }
          }
        }'

RESPONSE

Result Fields

Result Field

Description

tx_hash

Transaction hash

Examples

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

Last updated