post https://api.infstones.com/neo/mainnet/
Lists all the addresses in the current wallet.
Before you can invoke this method, wallet must be open first.
Parameters
None
Result
A list of all the addresses in the current wallet.
Result Fields
Key | Type | Detail |
---|---|---|
address | String | The address in the wallet. |
haskey | Boolean | Whether there is a private key for the address. |
label | String | Address label, null if there is no label. |
watchonly | Boolean | Indicates whether it is a watch only address. |
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0","method": "listaddress","params": [],"id": 1}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n",
"haskey": true,
"label": null,
"watchonly": false
},
{
"address": "NUkaNyPbML2QYfxK99WqZYpR8rR4CyUoth",
"haskey": true,
"label": null,
"watchonly": false
},
{
"address": "NbEsLzt9J1eMw5mbuStYBSwMfPBuWDx9DL",
"haskey": true,
"label": null,
"watchonly": false
}
]
}