DASH
POST
GET
Last updated on January 1, 1970
1 min read
Method getspentinfo undefined ()
connect with JSON-RPC protocol
getspentinfo
Returns the txid and index where an output is spent (requires spentindexto be enabled).
Parameters
TXID
- string (hex)
The TXID of the transaction containing the relevant output, encoded as hex in RPC byte order.
index
- number (int)
The block height to begin looking in.
Request
curl --location --request POST 'https://dash.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "getspentinfo",
"params": {"txid": "0456aaf51a8df21dd47c2a06ede046a5bf7403bcb95d14d1d71b178c189fb933", "index": 0},
"id": "getblock.io"}'
Response
{
"error": null,
"id": "getblock.io",
"result": {
"txid": "14e874421350840e9d43965967c5a989e7d41ad361ef37484ee67d01d433ecfa",
"index": 1,
"height": 7742
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }