How to Submit Transactions to Public Mempool

Learn how to submit transactions to the BNB Chain public mempool through GetBlock's BDN fast path.

This process involves submitting transactions to the BNB Chain public mempool via GetBlock's BDN fast path. Your transaction propagates to validators significantly faster than through standard P2P gossip, increasing the probability of earlier block inclusion.

How It Works

When you submit a transaction via GetBlock's MEV endpoint:

spinner

Your transaction reaches a large portion of validators before it would via classical P2P, improving execution consistency.

circle-info

Note: Final inclusion still depends on the gas price you attach. Earlier propagation improves timing and visibility but doesn't override fee-based ordering.

When to Use Public Mempool

Use public mempool submission when:

  • You want faster propagation without hiding your transaction

  • MEV exposure is acceptable for your use case

  • You're competing on speed rather than privacy

  • You need broad validator visibility quickly

For MEV-sensitive transactions, see Private Transactions instead.

API Reference

Quickstart

1

Set up the project

2

Create a new file named index.js. This is where you will make your first call.

3

Set the ES module "type": "module" in your package.json.

4

Add the following code to index.js:

5
6

Create and Sign Your Transaction

7

Submit via WebSocket

8

Response

chevron-rightComplete Example: BNB Transferhashtag

chevron-rightComplete Example: Token Swap on PancakeSwaphashtag

Gas Price Recommendations

Priority
Gas Price
Use Case

Standard

3 gwei

Regular transfers

Fast

5 gwei

Time-sensitive trades

Urgent

10+ gwei

Competitive scenarios

circle-info

Note: Higher gas prices increase inclusion priority but also increase transaction cost.

Troubleshooting

  1. "nonce too low"

Your nonce is behind the network state. Fetch the latest:

  1. "insufficient funds"

Ensure you have enough BNB for both the transaction value and gas:

  1. "replacement transaction underpriced"

If replacing a pending transaction, increase the gas price by at least 10%:

  1. Transaction not included

  • Increase gas price for higher priority

  • Check that the transaction is valid

  • Verify sufficient balance

Next Steps

For transactions that need MEV protection, see:

Last updated

Was this helpful?