getspentinfo - Pastel RPC

getspentinfo {"txid": "txid", "index": n}

Returns the txid and index where an output is spent.

WARNING: getspentinfo is disabled.
To enable it, restart pasteld with the -insightexplorer commandline options,
or add this line to the pastel.conf file:

insightexplorer=1

Arguments:
{
  "txid"   (string) The hex string of the transaction id
  "index"  (number) The vout (output) index
}

Result:
{
  "txid"   (string) The transaction id
  "index"  (number) The spending (vin, input) index
  ,...
}

Examples:
> pastel-cli getspentinfo '{"txid": "33990288fb116981260be1de10b8c764f997674545ab14f9240f00346333b780", "index": 4}'
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getspentinfo", "params": [{"txid": "33990288fb116981260be1de10b8c764f997674545ab14f9240f00346333b780", "index": 4}] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/


Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node