Skip to main content

access account

Account connection is the first step for EVM DApp. Only after user authorization can the application read the address and continue to initiate signature or transaction requests.

In Ethereum, an account is both a user identifier and an address used to sign and send transactions. Methods involving signatures or transaction approvals usually require the current account to be passed in as a inputs, for instance:

  • eth_sendTransaction
  • eth_sign (unsafe, not preferred)
  • eth_personalSign
  • eth_signTypedData

Call only eth_requestAccounts after the user clicks "Connect Wallet" and other explicit actions, and do not automatically pop up the authorization when the page is loaded.

Account connection example: