# eth\_requestAccounts

Requests that the user provide an NeoLine address to be identified by. This method is specified by [EIP-1102](https://eips.ethereum.org/EIPS/eip-1102).&#x20;

## Params&#x20;

None.

## Result

array\[string]&#x20;

Match pattern: `^0x[0-9a-fA-F]{40}$`

## Errors

| Code | Message                                                                                                               |
| ---- | --------------------------------------------------------------------------------------------------------------------- |
| 4001 | User rejected the request.                                                                                            |
| 4901 | The current network is Neo Legacy or Neo N3. Please call `wallet_switchEthereumChain` to switch to the Neo X network. |

## Example

### Request

```javascript
await window.NEOLineNeoX.request({
  "method": "eth_requestAccounts",
  "params": []
});
```

### Result

<pre class="language-javascript"><code class="lang-javascript"><strong>["0xE45e9AdC2B51514849ea5B38dF37d1a65e6D52f5"]
</strong></code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tutorial.neoline.io/reference/json-rpc-api/eth_requestaccounts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
