Skip to main content
Immutable LogoImmutable Logo
Learn
Build
  • Unity
  • Unreal
  • Typescript
Reference
Tools
  • Overview
  • Immutable zkEVM Faucet
  • Network Status
Blog
v2
  • v2
  • v1
Immutable Hub
Reference Docs
  • Unity SDK Reference
    • Passport
    • Orderbook
    • Marketplace
  • Unreal SDK Reference
    • Passport
    • Orderbook
  • Typescript SDK Reference
    • Passport
    • Orderbook
    • Minting
    • Checkout
    • Blockchain Data
    • JSON-RPC API
      • eth_requestAccounts
      • eth_sendTransaction
      • eth_accounts
      • eth_gasPrice
      • eth_getBalance
      • eth_getStorageAt
      • eth_estimateGas
      • eth_call
      • eth_blockNumber
      • eth_chainId
      • eth_getBlockByHash
      • eth_getBlockByNumber
      • eth_getTransactionByHash
      • eth_getTransactionReceipt
      • eth_getTransactionCount
      • eth_getCode
      • eth_signTypedData_v4
      • personal_sign
    • V1 to V2 Migration Guide
    • V1 SDK Troubleshooting
  • Immutable zkEVM API
    • API Reference
    • API Keys
  • Typescript SDK Reference
  • JSON-RPC API
  • eth_accounts
Version: v2

eth_accounts

Returns the list of Passport accounts that the user has authorised to connect to the dApp.

Params​

This method does not accept any parameters.

Result​

Returns a Promise that resolves with a string array containing the users Passport wallet address.

Example​

const accounts = await provider.request({ method: 'eth_accounts' });
console.log(accounts); // ['0x...']
Previous
eth_sendTransaction
Next
eth_gasPrice

IMX Whitepaper • IMX Tokenomics • Block Explorer • Careers • Contact Us