⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
dcr
Decred (DCR)

Method: POST getrawmempool

dropdown

# getrawmempool example for Decred (DCR)

POST getrawmempool

Returns information about all of the transactions currently in the memory pool.

The verbose flag specifies that each transaction is returned as a JSON object.

Parameters

verbose - boolean

Optional, default=false

Returns JSON object when true or an array of transaction hashes when false.

txtype - string

Optional.

Type of transaction to return.

The valid transaction types are regular, tickets, votes, revocations, tspend, tadd, and all.

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getrawmempool",
"params": [false, "regular"],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        "0e113c4c874ffbbcf96d843acfaca2c35cb1012fc198124a4d8f328f49741687",
        "b3fa1496b1babaf5f116d2ebd590863de9f80a978a885309492dfddeec3a84b7",
        "90d6d3cf0de139d4ebb6e79f493f644883298a5c99d5a230edcff4e400255ae2",
        "e6b3592321c8eabfd07cef53f65b3f9b1d0c22c24d6067e40f01d513899f60b4",
        "3bc1380540a0dcf93ab21c328eaa5d9ff2700361c0c5d17717b23346c8ec903d",
        "7f678b5a656ef09aaa5e48666676a3448b877b4a63110461c43d52f75743580e",
        "af346ecee81d7c8ae1ec31a0984c6524ac42973c3d10a4ad49bdc1e208a8b919",
        "2226b9e0ba88e60fb442117b56751526db03ed717eb5cbc73cc0360483746ba8"
    ]
}