BNB Smart Chain
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
BNB Smart Chain
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
BNB Smart Chain is chain ID 56, and every transaction on it spends BNB for gas. eth_sendRawTransaction is the call that actually puts one on the wire. Sign a transaction client-side, serialize it, then send the resulting RLP-encoded blob to https://bsc.therpc.io/YOUR_API_KEY. The method broadcasts that fully signed transaction to the network and returns its 32-byte hash. That hash is your handle for tracking the transaction while PoSA validators pick it up and seal it into a block within a few seconds. One caveat: the hash confirms acceptance into the mempool, not on-chain success.
to empty and packing the compiled bytecode into the data field of the signed transaction.transfer or a PancakeSwap router swap, by broadcasting the signed call.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | signedTransaction | string | Sí | The serialized signed transaction. Build and sign it client-side with a library (e.g. ethers, viem, web3.js); never send a private key to the node. |
| Tipo | Descripción |
|---|---|
| string | 32-byte transaction hash (0x-prefixed). The transaction is now in the mempool but not yet confirmed. |
Try it live in the BNB Smart Chain playground.
| Código | Mensaje | Causa |
|---|---|---|
-32000 | nonce too low | The nonce in the signed transaction is lower than the sender's current on-chain nonce. |
-32000 | insufficient funds for gas * price + value | The sender does not have enough native-token balance to cover gas cost and the transferred value. |
-32000 | replacement transaction underpriced | Tried to replace a pending transaction (same nonce) but the new fee is not high enough (typically requires ≥10% bump). |
eth_getTransactionReceipt to watch for inclusion in a block.status: "0x0" means the transaction was mined but reverted, and your BNB gas was still burned.eth_getTransactionCount right before signing; a stale nonce collides with another pending transaction and gets rejected.Parámetros
0x-prefixed hex string of the RLP-encoded signed transaction