HYCON
Search…
Powered By GitBook
Getting details of a wallet
api/v1
Path Parameter
Parameter
Type
Required
Description
name
string
Yes
The name of the wallet
Response - 200 OK, application/json
Parameter
Type
Description
name
string
The name of the wallet
address
string
The address of the wallet
balance
string
The amount of Hycon in the wallet
txs
list
A list of transactions sent to or received from by the wallet
pendings
list
A list of pending transactions awaiting confirmation
minedBlocks
list
A list of mined blocks by the wallet
pendingAmount
string
The amount of Hycon pending in the wallet
GET/api/v1/wallet/detail/{name}
Example request
1
$ curl -X GET http://localhost:2442/api/v1/wallet/detail/mining \
2
-H 'Content-Type: application/json;charset=utf-8'
Copied!
Response (Success)
1
{
2
"name": "mining",
3
"address": "H34kywGZSMUdPSCa3rqJLeHaRqigS3Bnt",
4
"balance": "0",
5
"txs": [
6
{
7
"hash": "wVTPoSvrAbC63zy7RorvRW4BfuiqgQozUyqYDaYE77J",
8
"amount": "0.62213847",
9
"fee": "0.000001",
10
"from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
11
"to": "H4FPn4X1RfR9RQtmFzY6BRozUAfoR3Ejp",
12
"estimated": "0.62213947",
13
"receiveTime": 1542101560397,
14
"nonce": 2154143
15
},
16
...
17
],
18
"pendings": [],
19
"minedBlocks": [
20
{
21
"blockhash": "FnQ2PKQmytfJLbyjoZwSSwtXjaFoCHzzUMsJGUmExNQ8",
22
"timestamp": 1528456179304,
23
"miner": "H34kywGZSMUdPSCa3rqJLeHaRqigS3Bnt",
24
"feeReward": "240"
25
},
26
...
27
],
28
"pendingAmount": "0"
29
}
Copied!
Response (Error)
1
{
2
"name": "{name}",
3
"address": ""
4
}
Copied!
Last modified 3mo ago
Copy link