thetacli.ListKeys

This API lists the addresses of all the accounts on the local machine (i.e. under ~/.thetacli/keys/encrypted/)

Parameters

None

Result

Result Fields

KeyTypeDetail
addressesStringthe addresses of the accounts

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"thetacli.ListKeys","params":[],"id":1}'

Return

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "addresses": [
          "0x7F7Bf878527AC6DE7b6fe12acD664D59d20E0001"
        ]
    }
}
Language
Click Try It! to start a request and see the response here!