[SNIP] Connect accounts to dapps

Some comments regarding this proposal

  • it matches what exists on Ethereum ecosystem:
    • no enable method (which is deprecated on Ethereum)
    • RPC method wallet_requestAccounts to retrieve a list of account
  • we could remove the reference of starknetjs by replacing the usage of its AccountInterface by a specific interface which match the AccountInterface of starknetjs.
  • I kept the possibility to retrieve a list of accounts, even if some wallets provider could choose to only select one. This way we don’t close the door to let dapps manage different accounts.
9 Likes