Comments (5)
Actually 'eth_requestAccounts' is mentioned on EIP-1193 and 1102:
The return value of eth_accounts is ultimately controlled by the Wallet or Client. In order to protect user privacy, the authors recommend not exposing any accounts by default. Instead, Providers should support RPC methods for explicitly requesting account access, such as eth_requestAccounts (see EIP-1102) or wallet_requestPermissions (see EIP-2255).
Yes thats why we have support for both, you'd be surprised how many dapps dont use eth_requestAccounts
from enkrypt.
eth_accounts
is also a call to get user accounts, I would suggest to use eth_requestAccounts
before doing eth_accounts
, you can detect whether user is using enkrypt by either checking window.ethereum.isEnkrypt
or window.enkrypt
from enkrypt.
eth_accounts is used to get the user account but not for requesting permission, that's requestAccounts method. Otherwise why having two method that do the same thing?
I'm using eth_accounts to get the user account silently in case is connected since I'm not saving sessions on localStorage I need a way to know whether the user is connected or not without requesting a connection
from enkrypt.
eth_accounts is the standard way of getting user accounts, and eth_requestAccounts is something metamask introduced along the way and is not part of the standard. We want to make sure our users are aware whenever a dapp try to get user accounts using either way.
from enkrypt.
Actually 'eth_requestAccounts' is mentioned on EIP-1193 and 1102:
The return value of eth_accounts is ultimately controlled by the Wallet or Client. In order to protect user privacy, the authors recommend not exposing any accounts by default. Instead, Providers should support RPC methods for explicitly requesting account access, such as eth_requestAccounts (see EIP-1102) or wallet_requestPermissions (see EIP-2255).
from enkrypt.
Related Issues (20)
- Rango Provider breaks on Firefox HOT 2
- Error when used with @web3-onboard/injected-wallets HOT 1
- Add the ability to connect hardware wallet directly HOT 5
- Allow to set custom transaction fee
- Add support for Arthera Mainnet
- Support For ERC3475 Tokens HOT 3
- Option to set fiat currency
- > "{ HOT 2
- https://github.com/enkryptcom/enKrypt/commit/f29cdb5d52fb87df7b35be6b4cdd340b14c72751
- .
- .
- I would avoid extending `TransactionParameters` type with simulation specific fields. Maybe we could Create a separate type for `SimulationTransactionParameters` or extend/change `SimulationCallArguments` that would accept these two params. 🤔
- https://github.com/enkryptcom/enKrypt does not work HOT 4
- Import account from other wallet does nothing HOT 4
- Extension not loading in chrome HOT 1
- Add KeepKey hardware wallet support HOT 1
- Contract reverts are not shown to user
- Support Add Custom Network and Derivation Path for Polkadot/Substrate networks. HOT 3
- Substrate derivation path HOT 1
- Calling the `eth_accounts` method prompts for wallet connection HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enkrypt.