Getting details of an address
api/v1
Path Parameters
Parameter
Type
Required
Description
address
string
Yes
A Hycon wallet address
Response - 200 OK, application/json
Parameter
Type
Description
hash
string
A Hycon wallet address
balance
string
The amount of Hycon in the address
txs
list
A list of transactions sent to or received from by the address
pendings
list
A list of pending transactions awaiting confirmation
minedBlocks
list
A list of mined blocks by the address
pendingAmount
string
The amount of Hycon pending in the address
Response Error Table
Status
Error
Message
400
INVALID_PARAMETER
Error: {address error}
GET/api/v1/address/{address}
Example request
1
$ curl -X GET http://localhost:2442/api/v1/address/H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT \
2
-H 'Content-Type: application/json;charset=utf-8'
Copied!
Response (Success)
1
{
2
"hash": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
3
"balance": "780622.88691486",
4
"nonce": 2178449,
5
"txs": [
6
{
7
"hash": "92jiapATwyUj2GhWTvs2kXg4jcLeaLsFXgA3b9T42XDQ",
8
"amount": "1.346689458",
9
"fee": "0.000001",
10
"from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
11
"to": "H4GxCHsAjDLhDBGTMpiwPK9cKAUxwEXmj",
12
"estimated": "1.346690458",
13
"receiveTime": 1542165841013,
14
"nonce": 2178449
15
},
16
...
17
],
18
"pendings": [],
19
"minedBlocks": [
20
{
21
"blockhash": "7Wn8GbtXEGDUcctRYPk71Jij6ya3o6dvitQgLN9JmU8K",
22
"timestamp": 1542165848576,
23
"miner": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
24
"feeReward": "120"
25
},
26
...
27
],
28
"pendingAmount": "0"
29
}
Copied!
Last modified 3mo ago
Copy link