Bitcoin
Bitcoin
Bitcoin
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
testmempoolaccept runs a signed Bitcoin transaction through the same policy and consensus checks the node would apply on broadcast, but stops short of relaying it. For each transaction it reports whether it is allowed, and when accepted returns the vsize and fee details (base, effective-feerate); when rejected it returns a reject-reason. Nothing is added to the mempool and no BTC moves — it is a pure pre-flight. Send the request to the Bitcoin JSON-RPC endpoint at https://bitcoin.therpc.io/YOUR_API_KEY.
sendrawtransaction.reject-reason to diagnose and fix fee or policy problems — insufficient fee, dust outputs, or a mempool conflict — before retrying.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | rawtxs | array | Sí | Array of signed raw tx hex strings; older Core requires exactly one, v22+ accepts a package. |
| 2 | maxfeerate | number | string | No | Reject if the fee rate (BTC/kvB) is above this.Predeterminado: 0.10 |
| Tipo | Descripción |
|---|---|
| array | One entry per tx: txid, wtxid, allowed (bool), and when allowed vsize and fees {base, effective-feerate, effective-includes}; when rejected reject-reason. |
| Código | Mensaje | Causa |
|---|---|---|
-22 | TX decode failed | The hex string is not a valid serialized transaction. |
-8 | Invalid parameter | A parameter is out of range or the wrong shape — check verbosity levels, conf_target bounds, and required fields. |
allowed: true result does not broadcast the transaction; it never enters the mempool. You still have to call sendrawtransaction to actually relay it.rawtxs array. Package validation of multiple dependent transactions requires a newer node.