eth_accounts
Get accounts on the Avalanche C-Chain network.
Parameters
This method accepts no parameters.
{
"jsonrpc": "2.0",
"method": "eth_accounts",
"params": [],
"id": 1
}
Returns
Array
- Array of DATA, 20 Bytes - addresses owned by the client.
Implementation Example
- cURL
- JavaScript
curl -X POST https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_accounts",
"params": [],
"id": 1
}'
const response = await fetch('https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_accounts',
params: [],
id: 1
})
});
const data = await response.json();
console.log(data.result);
Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
Note: Most Avalanche nodes don't manage accounts directly, so this typically returns an empty array.
Need help? Contact our support team or check the Avalanche documentation.