Bitcoin
Bitcoin
Bitcoin
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | rawtxs | array | نعم | Array of signed raw tx hex strings; older Core requires exactly one, v22+ accepts a package. |
| 2 | maxfeerate | number | string | لا | Reject if the fee rate (BTC/kvB) is above this.الافتراضي: 0.10 |
| النوع | الوصف |
|---|---|
| array | One entry per tx: txid, wtxid, allowed (bool), and when allowed vsize and fees {base, effective-feerate, effective-includes}; when rejected reject-reason. |
| الكود | الرسالة | السبب |
|---|---|---|
-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.