Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

private Api for centralized blockchain #231

Open
seninAd opened this issue Dec 17, 2021 · 3 comments
Open

private Api for centralized blockchain #231

seninAd opened this issue Dec 17, 2021 · 3 comments

Comments

@seninAd
Copy link

seninAd commented Dec 17, 2021

hi I have read your code and you connect to etherscan and infura for the node, instead I have my own private blockchain and I have to implement the api for the connection with the flutter frontend. would you tell me if it is possible to implement the api with web3dart and how to do them or if flutter accepts javascript as a language so that you can use web3?

@TheGreatAxios
Copy link

TheGreatAxios commented Dec 28, 2021

@AAsenin

final Client _client = Client(); // I use the one from http package
final String _rpcUrl = 'http://localhost:1234';

final Web3Client _web3Client = Web3Client(_rpcUrl, _client);

I am currently using this without an issue.

// Javascript

Regarding the JavaScript piece, flutter does allow javascript packages and some code, but generally it is only using Flutter Web.

@seninAd
Copy link
Author

seninAd commented Dec 28, 2021

i see that but i implemented the api with web3 in javascript , but flutter dont accept all command , for example require or the const . in this moment i try to found one example for doing the api in web3dart . there is here ???

@TheGreatAxios
Copy link

i see that but i implemented the api with web3 in javascript , but flutter dont accept all command , for example require or the const . in this moment i try to found one example for doing the api in web3dart . there is here ???

If you send some code I can help. Just tag me and clip some code in and we can take a look at what is going on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants