Bitcoin
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Bitcoin
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | verbose | boolean | Não | false = array of txids; true = object keyed by txid with per-tx data.Padrão: false |
| 2 | mempool_sequence | boolean | Não | Return { txids, mempool_sequence } instead; cannot combine with verbose=true.Padrão: false |
| Tipo | Descrição |
|---|---|
| array | Array of txid strings, or (verbose) object keyed by txid with vsize, weight, time, fees, depends, spentby, ancestor/descendant counts, bip125-replaceable. |
| Código | Mensagem | Causa |
|---|---|---|
-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.