y-pakorn / flutter_web3

Web3 Ethereum, Etherjs and Wallet Connect wrapper for Flutter Web.
Other
136 stars 46 forks source link

Using with Polkadot (non-Ethereum) Wallet Chrome Extension #29

Open kornha opened 2 years ago

kornha commented 2 years ago

I would like to be able to access Polkadot wallet chrome extensions in Flutter Web.

I have considered porting the Polkadot Extension NPM package, or somehow using it in Flutter Web, but this seems to be a challenge.

I am wondering if there is a way to use this repository to hit a polkadot extension instead of a Ethereum (eg., Metamask) chrome extension, or if this is a future idea.

Thanks!

y-pakorn commented 2 years ago

Hi, This seems to be a problem because this package can only hit EVM chain using Ethers.js. If you want to use Polkadot.js or other packages that interact with non-evm chains you will need to build the package from scratch or just call the method using dart:js.