Comment on page
History
The
/wallet/history
endpoint allows you to retrieve the transaction history of a specific wallet. This endpoint is protected with Bearer Token authentication and accepts a POST request with the following parameters:- walletID: A query parameter specifying the ID of the wallet for which you want to retrieve the transaction history.
- 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/history
- Method: POST
- Consumes:
application/json
- Produces:
application/json
- Tags: Wallet
- Summary: History
Here's an example CURL request to retrieve the transaction history of a specific wallet:
curl -X 'POST' \
'https://dev.neucron.io/wallet/history?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>' \
-d ''
Replace
<Wallet_ID>
with the ID of the wallet for which you want to retrieve the transaction history, and <Your_Bearer_Token>
with your actual Bearer Token.The API responds with a JSON object containing the transaction history of the specified wallet. Here's the response structure:
{
"data": {
"txn": [
{
// Transaction details
}
]
},
"status_code": "integer"
}
data.txn
: An array containing transaction objects, where each object represents a transaction with its details.status_code
: An integer representing the HTTP status code.
Each transaction object should include the details of the transaction, including the sender, receiver, amount, timestamp, and more.
200
: OK - The transaction history was 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 transaction history of a specific wallet (replace
<Wallet_ID>
and <Your_Bearer_Token>
as mentioned above):curl -X 'POST' \
'https://dev.neucron.io/wallet/history?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>' \
-d ''
This CURL request will retrieve the transaction history associated with the specified wallet and return it in the response.
get
https://dev.neucron.io
/wallet/history
fetch transaction history by walletID
Last modified 3mo ago