Bitcoin
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Bitcoin
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
getrawmempool is a Bitcoin Core JSON-RPC method that lists the transaction ids of every unconfirmed BTC transaction currently held in the node's mempool — the full set of payments waiting for a Proof-of-Work miner to include them in a block. Send the request to https://bitcoin.therpc.io/YOUR_API_KEY using positional params. By default it returns a flat array of txid strings, which is the lightest way to enumerate the pool. Pass verbose = true to instead receive an object keyed by txid, where each value carries per-transaction detail such as vsize, weight, time, the fees object (in BTC), depends and spentby links, ancestor and descendant counts, and the bip125-replaceable flag.
verbose = true to drive fee-bumping decisions such as CPFP or RBF without a separate getmempoolentry call per transaction.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | verbose | boolean | Non | false = array of txids; true = object keyed by txid with per-tx data.Défaut : false |
| 2 | mempool_sequence | boolean | Non | Return { txids, mempool_sequence } instead; cannot combine with verbose=true.Défaut : false |
| Type | Description |
|---|---|
| array | Array of txid strings, or (verbose) object keyed by txid with vsize, weight, time, fees, depends, spentby, ancestor/descendant counts, bip125-replaceable. |
| Code | Message | Cause |
|---|---|---|
-8 | Invalid parameter | A parameter is out of range or the wrong shape — check verbosity levels, conf_target bounds, and required fields. |
verbose = true builds a full detail object for every transaction in the pool, which can be a heavy response when the mempool holds tens of thousands of entries. Prefer the plain txid array and fetch detail only for the txids you actually need.mempool_sequence option cannot be combined with verbose = true; requesting both at once is rejected. Use mempool_sequence only with the plain (non-verbose) txid list.