eth_accounts

Returns a list of addresses owned by client.

https://api.1inch.com/web3/143
Supported on:
Monad

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/143', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_accounts',
    params: [],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

Accounts

Accounts
array
items
string
JSON
1
2
["0xd1f5279be4b4dd94133a23dee1b23f5bfc0db1d0"]

Did you find what you need?