Home

getrawmempool

POST
https://btc.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the TXIDs currently in the node mempool. By default the result is a list of TXIDs. With verbose=true the result is an object mapping each TXID to detailed mempool entry information, including vsize_adjusted and vsize_bip141 added in Bitcoin Core 32.1. A large mempool can produce a very large response. When verbose=false and mempool_sequence=true, returns txids and mempool_sequence.

Body

application/json

JSON-RPC payload for getrawmempool.

JSON-RPC request envelope sent to NOWNodes.

jsonrpcstringrequired

JSON-RPC protocol version.

idstring | integerrequired

Client-provided request ID echoed in the response.

methodstringgetrawmempoolrequired

JSON-RPC method name.

paramsArray<boolean>required

Parameters (positional order):

  1. verbose (boolean, optional, default=false) — When true, return a map of transaction IDs to mempool metadata; otherwise return a list of TXIDs.
  2. mempool_sequence (boolean, optional, default=false) — When verbose=false, include the mempool sequence number alongside TXIDs. Cannot be combined with verbose=true.

Response

200OK

Mempool data retrieved successfully, or JSON-RPC error returned in the response envelope.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error