getrawmempool

Returns all transaction ids in memory pool as a json array of string transaction ids.

Hint: use getmempoolentry to fetch a specific transaction from the mempool.

Arguments:

  1. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"getrawmempool","params":[]}'

Response

{
  "result": [
    "80f31e0f097732cde9ece9b6b45e1cb1a70d06ac9e0493e1f3ee51bd42dc36fe",
    "9b4e678ab592c45dd09ea0bcf152a649a6383a02cfdfb351066666dcd8b169ff",
    "b162685a7cae209861c9716f86d41cd43edd32e841ecbbd129099d78f4a78732",
    ...
  ],
  "error": null,
  "id": 1
}