POST
/
788f110831fe13808302bd79796d55e8
curl --request POST \
  --url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "1.0",
  "method": "gettxoutsetinfo",
  "params": "<any>",
  "id": 1
}'
{
  "result": {},
  "error": {},
  "id": 123
}

The gettxoutsetinfo method provides statistics about the unspent transaction output set, including the total number of unspent outputs and the total value of all unspent outputs.

Takes a while to complete

This method may take a couple of minutes to complete, so you are better off using thecurlexample in your terminal.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • None

Response

  • result — an object containing statistics about the unspent transaction output set, such as the total number of unspent outputs and the total value.
  • error — an object containing an error message if an error occurred, otherwise null.
  • id — an integer representing the ID of the request, used to match requests with responses.

Use case

The gettxoutsetinfo method is useful for understanding the current state of the unspent transaction outputs in the blockchain. It provides valuable insights into the distribution and value of unspent outputs.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:gettxoutsetinfo
params
any
id
integer
default:1

Response

200 - application/json
Statistics about the unspent transaction output set
result
object

Statistics about the unspent transaction output set

error
object
id
integer