Skip to main content
All CollectionsDevelop with Core
Core API Calls: eth_requestAccounts
Core API Calls: eth_requestAccounts
A
Written by Ana
Updated this week

Requests that the user provide an Ethereum address to be identified by. This method is specified by EIP-1102. Internally, this method calls wallet_requestPermissions for permission to call eth_accounts.

Params(0)

Result (AddressList)

array[string]

Match pattern:^0x[0-9,a-f,A-F]{40}$

Errors

Code

Message

4001

User rejected the request.

Request

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

For any additional questions, please view our other knowledge base articles or contact a Product Support team member via the chat button. Examples are for illustrative purposes only.

Did this answer your question?