Comment on page
Utxo
The
/wallet/utxo
endpoint allows you to retrieve the Unspent Transaction Outputs (UTXO) for a specific wallet. UTXOs represent the unspent funds associated with a wallet's addresses. This endpoint is protected with Bearer Token authentication and accepts a GET request with the following parameters:- walletID: A query parameter specifying the ID of the wallet for which you want to retrieve UTXOs.
- X-Neucron-App-ID: A header parameter for specifying the app ID.
- X-Neucron-Key-ID: A header parameter for specifying the key ID.
- X-Neucron-Key-Secret: A header parameter for specifying the key secret.
- X-Neucron-User-ID: A header parameter for specifying the user ID.
- URL:
https://dev.neucron.io/wallet/utxo
- Method: GET
- Consumes:
application/json
- Produces:
application/json
- Tags: Wallet
- Summary: Get UTXO
Here's an example CURL request to retrieve the UTXOs for a specific wallet:
curl -X 'GET' \
'https://dev.neucron.io/wallet/utxo?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
Replace
<Wallet_ID>
with the ID of the wallet for which you want to retrieve UTXOs, and <Your_Bearer_Token>
with your actual Bearer Token.The API responds with a JSON object containing the UTXOs associated with the specified wallet. Here's the response structure:
{
"data": {
"list": [
{
// UTXO details
}
]
},
"status_code": "integer"
}
data.list
: An array containing UTXO objects, where each object represents an unspent transaction output with its details.status_code
: An integer representing the HTTP status code.
Each UTXO object should include details such as the transaction hash, index, amount, and more.
200
: OK - The UTXOs were successfully retrieved.400
: Bad Request - If there's an issue with the request, you'll receive an error response.500
: Internal Server Error - If there's a problem with the server, you'll receive an error response.
Here's the CURL example to retrieve the UTXOs for a specific wallet (replace
<Wallet_ID>
and <Your_Bearer_Token>
as mentioned above):curl -X 'GET' \
'https://dev.neucron.io/wallet/utxo?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
This CURL request will retrieve the UTXOs associated with the specified wallet and return them in the response.
get
https://dev.neucron.io
/wallet/utxo
get utxos by walletID
Last modified 3mo ago