xclud / web3dart

Ethereum library, written in Dart.
https://pub.dev/packages/web3dart
MIT License
171 stars 94 forks source link

Polygon main and test net address? #43

Open timfong888 opened 2 years ago

timfong888 commented 2 years ago

I read through the docs but I wasn't clear on whether I can just use various RPC URLs across the different EVM chains.

I don't see how to specify url and chain is. Is this just for Ethereum and named chains like rinkby?

timfong888 commented 2 years ago

Or are you using infura API to do so since the API incorporates the chain RPC and chain ID

And I assume it's only infura not moralis as well?

Will the private keys be compatible with more popular wallets like MetaMask. So someone once creating in the flutter app could then also manage on MetaMask by adding the private keys to MetaMask?

TheGreatAxios commented 2 years ago

@timfong888 You can use any EVM chain you want just add the custom RPC and Optional WS Urls. Additionally, some functions require the chainId, while for some you have to turn it off. I'll see if I can find it and flag it.

@xclud do you plan on making any updates to the library? My fork already has a bunch of umerged changes since the previous author neglected to respond

xclud commented 2 years ago

@timfong888 Sorry for my late response. There is a Web3Client constructor which takes a url as the RPC server.

xclud commented 2 years ago

@TheGreatAxios Contributions are welcome. Please submit PRs.