Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 855 Bytes

eth_accounts.md

File metadata and controls

56 lines (44 loc) · 855 Bytes
description
Returns a list of addresses owned by client.

eth_accounts

{% hint style="warning" %} Since Alchemy does not store keys, this will always return empty. {% endhint %}

Parameters

none

Returns

Array of DATA, 20 Bytes - addresses owned by the client.

Example

Request

{% tabs %} {% tab title="Curl" %}

curl https://eth-mainnet.alchemyapi.io/v2/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}'

{% endtab %}

{% tab title="Postman" %}

URL: https://eth-mainnet.alchemyapi.io/v2/your-api-key
RequestType: POST
Body: 
{
    "jsonrpc":"2.0",
    "method":"eth_accounts",
    "params":[],
    "id":1
}

{% endtab %} {% endtabs %}

Result

{
  "id":1,
  "jsonrpc": "2.0",
  "result": []
}