Getting a list of transactions
api/v1
To retrieve a list of transactions sent to and received from the wallet. Providing the nonce parameter will retrieve a list of transactions after the nonce value.
Path Parameters
Parameter
Type
Required
Description
address
string
Yes
A Hycon wallet address
nonce
string
No
The transaction number sent from the Hycon address
Response - 200 OK, application/json
Parameter
Type
Description
txs
list
A list of transactions with: hash,amount,fee,from,to,estimated,receiveTime
Response Error Table
Status
Error
Message
400
INVALID_NONCE
nonce value is too big
400
INVALID_ADDRESS
invalid address
404
NOT_FOUND
the resource cannot be found / currently unavailable
GET/api/v1/wallet/{address}/txs/{nonce}
Example request
1
$ curl -X GET http://localhost:2442/api/v1/wallet/H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT/txs/20 \
2
-H 'Content-Type: application/json;charset=utf-8'
Copied!
Response (Success)
1
{
2
"txs": [
3
{
4
"hash": "A3CpvMaSm92mYbShhRwxFuXQYrNba1iZwBeCRrfhoeBn",
5
"amount": "25.995459977",
6
"fee": "0.000001",
7
"from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
8
"to": "H3zYvzxTDGEF9fZtmzLV78h38J4BR2qnL",
9
"estimated": "25.995460977",
10
"receiveTime": 1542011323948
11
},
12
...
13
]
14
}
Copied!
Last modified 3mo ago
Copy link