Powered By GitBook
Getting the details of a transaction
api/v1
Retrieve the details of a single transaction.
Path Parameter
Parameter
Type
Required
Description
hash
string
Yes
A hash string of a transaction
Response - 200 OK, application/json
Parameter
Type
Description
hash
string
Hash representation of the transaction
amount
string
Amount of Hycon transferred in the transaction
fee
string
Transaction fee, in Hycon, to complete the transaction
from
string
Sender Hycon address
to
string
Recipient Hycon address
blockHash
string
Hash representation of the block that contains the transaction
nonce
number
Nonce value of the transaction from the address
receiveTime
number
Timestamp when the transaction is confirmed
estimated
string
Amount of Hycon needed to complete the transaction
confirmation
number
Number of nodes that have processed and validated the transaction
Response Error Table
Status
Error
Message
400
INVALID_PARAMETER
address was not provided
404
NOT_FOUND
the resource cannot be found / currently unavailable
GET/api/v1/tx/{hash}
Example request
1
$ curl -X GET \
2
http://localhost:2442/api/v1/tx/A3CpvMaSm92mYbShhRwxFuXQYrNba1iZwBeCRrfhoeBn \
3
-H 'Content-Type: application/json;charset=utf-8'
Copied!
Response (Success)
1
{
2
"hash": "A3CpvMaSm92mYbShhRwxFuXQYrNba1iZwBeCRrfhoeBn",
3
"amount": "25.995459977",
4
"fee": "0.000001",
5
"from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
6
"to": "H3zYvzxTDGEF9fZtmzLV78h38J4BR2qnL",
7
"blockHash": "CW1yZ5ii51zruXn13hTfQaUNmXtxQCPnPVRJYPt1Vydf",
8
"nonce": 2120339,
9
"receiveTime": 1542011323948,
10
"estimated": "25.995460977",
11
"confirmation": 85
12
}
Copied!
Last modified 3mo ago
Copy link