The private-tx-sender provides enhanced transaction privacy for the BNB Smart Chain (BSC) network. By packing a transaction into a bundle and broadcast it to mev-builders who implementing the MEV standards, the following capabilities are provided:
-
Privacy: All transactions sent through this API will not be propagated on the P2P network, hence, they won't be detected by any third parties. This effectively prevents transactions from being targeted by sandwich attacks.
-
Fast Confirmation: By integrating multiple builders, the transaction will be included in the blocks mined by all the mev-validators integrated by all builders.
The example directory provides an example to use the SDK to send a private transaction.
[Sender]
ChainURL = "http"
BlockInterval = "3s"
BundleLifeNumber = 21
[[Bundler.Builders]]
Brand = "nodereal"
URL = "https://bsc-mainnet-builder-us.nodereal.io"
[[Bundler.Builders]]
Brand = "puissant"
URL = "https://puissant-builder.48.club"
[[Bundler.Builders]]
Brand = "txboost"
URL = "https://fastbundle-us.blocksmith.org"
Key = "Basic xxxxx"
Developers should carefully review the builder's website to understand their pricing and payment options. While some services are available free of charge, others require a paid subscription.
For premium services, users typically need to create an account and acquire an API key to gain access.
The steps to run example are as follows
make example
cd example
./example --config config.toml --privatekey 1bb2....7ca7