POSTgetrawmempool

Bitcoin Mainnethttps://bitcoin-mainnet.nodit.io/

Returns all transactions waiting in the memory pool.

Set verbose to true to return an object keyed by transaction id with detailed mempool data. When verbose is false and mempool_sequence is set to true, the list of transaction ids is returned together with the mempool sequence number.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameters in order:

  1. verbose: The response format, as a boolean. (optional, default false)
  2. mempool_sequence: Whether to return the mempool sequence number, as a boolean. (optional, default false)
params[0]boolean

Whether to return a detailed object. When false, an array of transaction ids is returned.

params[1]boolean

Whether to return a detailed object. When false, an array of transaction ids is returned.

Responses

응답 본문이 없습니다.

X-API-KEY
RequestCU50
cURL
curl -X POST "https://bitcoin-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getrawmempool",
  "params": [
    false,
    false
  ]
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
    "9b0fc92260312ce44e74ef369f5c66bbb85848f2eddd5a7a1cde251e54ccfdd5"
  ]
}