Links

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
$ curl -X GET http://localhost:2442/api/v1/wallet/detail/mining \
-H 'Content-Type: application/json;charset=utf-8'
Response (Success)
{
"name": "mining",
"address": "H34kywGZSMUdPSCa3rqJLeHaRqigS3Bnt",
"balance": "0",
"txs": [
{
"hash": "wVTPoSvrAbC63zy7RorvRW4BfuiqgQozUyqYDaYE77J",
"amount": "0.62213847",
"fee": "0.000001",
"from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
"to": "H4FPn4X1RfR9RQtmFzY6BRozUAfoR3Ejp",
"estimated": "0.62213947",
"receiveTime": 1542101560397,
"nonce": 2154143
},
...
],
"pendings": [],
"minedBlocks": [
{
"blockhash": "FnQ2PKQmytfJLbyjoZwSSwtXjaFoCHzzUMsJGUmExNQ8",
"timestamp": 1528456179304,
"miner": "H34kywGZSMUdPSCa3rqJLeHaRqigS3Bnt",
"feeReward": "240"
},
...
],
"pendingAmount": "0"
}
Response (Error)
{
"name": "{name}",
"address": ""
}