Getting details of a wallet

api/v1

Path Parameter

Response - 200 OK, application/json

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": ""
}

Last updated