Skip to main content
MetaMask

eth_requestAccounts

Requests that the user provide an Ethereum address.

Parameters

This method does not accept any parameters

Returns

AddressList array

hex encoded address string

hex encoded address

Errors

Code
Message
4001
User rejected the request.
Customize request

Connect MetaMask to test requests using your wallet

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