onflow / fcl-js

FCL (Flow Client Library) - The best tool for building JavaScript (browser & NodeJS) applications on Flow 🌊
https://onflow.org
Apache License 2.0
323 stars 117 forks source link

[FEATURE] Investigate FCL ethereum provider #1868

Open jribbink opened 4 months ago

jribbink commented 4 months ago

Issue to be solved

With EVM support coming to Flow, this brings the potential for any Cadence account to interact with Flow EVM. However, any dApps interacting exclusively with the EVM wallets via EVM client libraries will be unable to support existing Flow wallets, unless these wallets configure explicit support for Flow EVM.

Suggest A Solution

Potentially, a "FCL Ethereum Provider" could be created, such that it interfaces with a user's Flow wallet via FCL in order to interact with Flow EVM. This provider could handle the connection to the wallet, as well translate the necessary EVM interactions into a native Cadence transaction, which the provider would then request from the Flow wallet.

It is uncertain how feasible (or necessary) this is, but I've created this issue to track this idea.

What are you currently working on that this is blocking?

No response