gettxoutsetinfo

Provides information regarding the output set of unspent transactions.

Note this call may take some time.

Example Request and Result for gettxoutsetinfo method

In this section, we provide an illustrative example of a request made to retrieve details contents using the gettxoutsetinfo method. Additionally, we present the resulting response containing information about the output set of unspent transactions.

Parameters

The example in this section uses a non-existing project id.

Make sure you replace it with your Bitcoin mainnet or Bitcoin Testnet endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Provides information regarding the output set of unspent transactions.

POST https://bitcoin-mainnet.blastapi.io/<project-id>

Request Body

{
  "height" : 225494,
  "bestblock" : "00000000eb0443fd7dc4a1ed5c686a8e995057805f9a161d9a5a77a95e72b7b6",
  "transactions" : 335344,
  "txouts" : 2221582,
  "bytes_serialized" : 72130407,
  "hash_serialized" : "3d14832b1b468f52ce942d4b9dc0c76a54fa6865207ff64540105403e3109f43",
  "total_amount" : 10886823.50380013
}

Curl Request example

curl --location 'https://bitcoin-mainnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "1.0",
    "id": "bwarelabs",
    "method": "gettxoutsetinfo",
    "params": []
}'

Last updated