personal_listAccounts
Last updated:
`personal_listAccounts` returns an array of the account addresses that are managed by the node, each as a `0x`-prefixed, 20-byte hex string. It is the JSON-RPC equivalent of enumerating the keystore the node holds.
Use this method to discover which accounts are available before composing calls that act on a specific `from` address. The order of the returned addresses is not guaranteed and may change between calls; do not rely on it as a stable index.
This is a **Business**-tier method in the `eth_peergraph` category and is rate limited to **20 RPS**. Requests authenticated with a lower tier are rejected with `-32002 tier_insufficient`.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://<your-endpoint>/ \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"personal_listAccounts","params":[]}'const res = await fetch("https://<your-endpoint>/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"id": 1,
"method": "personal_listAccounts",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"personal_listAccounts","params":[],"jsonrpc":"2.0"})
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- Credit cost: 1 per call.
FAQ
- What does personal_listAccounts do?
- Returns the list of Ethereum accounts managed by the node.
- How many credits does personal_listAccounts cost?
- personal_listAccounts costs 1 credit(s) per call on Triport by default.
- Is personal_listAccounts available over WebSocket?
- personal_listAccounts is an HTTP JSON-RPC method.