Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

add RPC command listaddress #87

Closed
phobod opened this issue Jan 6, 2018 · 0 comments · Fixed by #103
Closed

add RPC command listaddress #87

phobod opened this issue Jan 6, 2018 · 0 comments · Fixed by #103

Comments

@phobod
Copy link

phobod commented Jan 6, 2018

I can list all the accounts in the wallet only by CLI Command "list address", but can't do this by any RPC command.
My application communicates with neo-cli via API interface (JSON-RPC), and it needs to get all the accounts in the wallet.
It would be preferable to have a command in the RPC API to list all addresses. Something like this:
Request body:

{
  "jsonrpc": "2.0",
  "method": "listaddress",
  "params": [],
  "id": 1
}

Response body:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
         "AVHcdW3FGKbPWGHNhkPjgVgi4GGndiCxdo",
         "AHCNSDkh2Xs66SzmyKGdoDKY752uyeXDrt",
         "ALDCagdWUVV4wYoEzCcJ4dtHqtWhsNEEaR"
     ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants