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
$ curl -X GET http://localhost:2442/api/v1/wallet/H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT/txs/20 \
-H 'Content-Type: application/json;charset=utf-8'
Response (Success)
{
"txs": [
{
"hash": "A3CpvMaSm92mYbShhRwxFuXQYrNba1iZwBeCRrfhoeBn",
"amount": "25.995459977",
"fee": "0.000001",
"from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
"to": "H3zYvzxTDGEF9fZtmzLV78h38J4BR2qnL",
"estimated": "25.995460977",
"receiveTime": 1542011323948
},
...
]
}
Last updated
Was this helpful?