The getAddresses method returns an array of your RPC Wallet's addresses.
A single viewSecretKey can be used to generate many addresses but a single wallet daemon application can handle one viewSecretKey at the same time.
This mean: A wallet file use a single viewSecretKey while it can have many adresses (Spent keys).

back to methods summary

No input.

Output:

ArgumentDescriptionFormat
addressesArray of strings, where each strings is an addressarray

Input example:

{  
  "params":{},
  "jsonrpc":"2.0",
  "id":"test",
  "method":"getAddresses"
}

$ curl -s -X POST -d '{"params":{},"jsonrpc":"2.0","id":"test","method":"getAddresses"}' localhost:14101/json_rpc | jq -C

Output example:

{
  "id": "test",
  "jsonrpc": "2.0",
  "result": {
    "addresses": [
      "ir48V76oJqAhYpGmsJgn79Yk6vvwYhU2cDc7azm3UW8C4EyzhhEDUUQjXtrbwzwpJ6Kp2ebwHErWD9VxBVnmXBk41oDB3Lt4j",
      "ir3mcJjrwhyBLL9uNDSMJzYcJB3pon1GiEAcXypZBSiTCD1HEtUagbAjXtrbwzwpJ6Kp2ebwHErWD9VxBVnmXBk41oD9jBfKq"
    ]
  }
}

back to methods summary