EVM
eth_accounts
Summary: Returns a null value
Typically, this request returns a list of addresses owned by a user. However, as Infura doesn't support "unlocking" of accounts, consider sending a pre-signed raw transactions using
eth_sendRawTransaction
.
Parameters
This method doesn't accept any parameters.
Returns
eth_accountsResponse array
This request returns an empty object because Infura does not support "unlocking" accounts.
Customize request
Parameter
Value
Request
CURL
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_accounts",
"params": [],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": []
}