(Un)Spent Transaction Outputs
Get Unspent UTXOs by Address
This endpoint retrieves a combined, ordered list of both confirmed and unconfirmed UTXOs for a given address.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/utxo/address/{address}Example Request
shell
curl --location --request GET "https://api.turingbitchain.io/api/tbc/utxo/address/1BqJ3zWFfbagnvHgPsAskz3pARqK7zrAaF"Example Response
json
{
"code": "200",
"data": {
"utxos": [
{
"txid": "666a860f2af836985ea01ef20dbe7d0f012e6a399eaf2b8c997497c35c701f06",
"height": 824190,
"index": 1,
"value": 406250000
}
]
},
"message": "OK"
}URL Parameters
| Parameter | Description |
|---|---|
| address | Address. |
Get Unspent UTXOs by Script
This endpoint retrieves a combined, ordered list of both confirmed and unconfirmed UTXOs for a given script.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/utxo/scriptpubkeyhash/{scriptpubkeyhash}Example Request
shell
curl --location --request GET 'https://api.tbcdev.org/api/tbc/utxo/scriptpubkeyhash/719c95302357d531ed2c02b1d609384f46b56962efb6061b000c8927b4e0fc18'Example Response
json
{
"code": "200",
"data": {
"utxos": [
{
"txid": "c25e3127926d71077e7540ba7cc7754107400b4299332fbad01516d2a726eaf7",
"height": 234358,
"index": 0,
"value": 500000
}
]
},
"message": "OK"
}URL Parameters
| Parameter | Description |
|---|---|
| scriptpubkeyhash | Script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string. |