get-txos
Returns the TXOs (transaction outputs) filtered by the provided query parameters.
Endpoint
/v1/CHAIN/NETWORK/get-txos
Description
This endpoint retrieves transaction outputs (TXOs) from the Output table according to the specified query parameters.
At least one filtering parameter (other than verbosity) must be provided.
Validation is performed on all parameters to ensure proper format and type.
Query Parameters
Example
Request
curl -X GET "http://localhost:1031/v1/LTC/regtest/get-txos?verbosity=1&address=mkMUZNoiLh4uuuENU5HNZ4Ssxo8BqEQc5t&isSpent=false&limit=2"
Response
On success, the response will be an array of DBOutput objects matching the query parameters. See full db schema for more details here.
Success (200)
[
{
"rev": "5a04f3cdb0450fd4708dfcd2fe86f51c6077add296507d69f2620c15e94c8e89:3",
"address": "mkMUZNoiLh4uuuENU5HNZ4Ssxo8BqEQc5t",
"satoshis": 99927794,
"asm": "OP_DUP OP_HASH160 350dbb89c08f5b4aa19eb2bc0b4bb8ba5b79a873 OP_EQUALVERIFY OP_CHECKSIG",
"isObject": false,
"mod": null,
"previous": null,
"expHash": "a69f71ff08ef782d3edb7d938cd765b89ce608c3b7d0db9a3f1675c172fe43b3",
"blockHash": "00000000000000000000000000000000000000000000000000000000000000ff",
"blockHeight": 104,
"blockIndex": 0
}
]
Server error (500)
{ "error": "Internal server error message" }