Skip to main content

eth_accounts

POST

Returns the list of account addresses owned by the client.Because a TRON node does not hold keys, it always returns an empty array.

📘 This method is a stub provided only for compatibility with Ethereum clients.

Responses
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Unauthorized"
}
cURL
curl -X POST 'https://tron-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_accounts",
"params": []
}'