Questions tagged [web3dart]
34 questions
1
vote
0 answers
Can not send transaction on polygon network using flutter
I am using web3dart to send transaction.
I already connect wallet for polygon but can't sign transaction.
I think it's due to credential problem.
@override
Future sendAmount({
required String recipientAddress,
required double…

Oleg Postoev
- 63
- 1
- 7
1
vote
1 answer
How do I implement a dapp browser in flutter
I have tired to months to inject window.ethereum in flutter webview but to no avail, i found out i can only inject javascript on page load end, but once the page have loaded finished, window.ethereum would not be available to the dapp, is there any…

Davy King
- 27
- 8
1
vote
0 answers
How to connect web3 contract with flutter
I want to create a web d-App with flutter. I use flutter_web3 to connect to a metamask wallet on the browser with this code:
final access = await ethereum!.requestAccount();
if (access.isNotEmpty) currentAddress = access.first;
It connects…

Marlen Schreiner
- 726
- 10
- 25
1
vote
2 answers
How to get private key in WebDart
I'm using the module Web3dart for a mobile flutter application to interact with the ethereum blockchain. However i want to get the private key from a wallet. But there is only an attribute PrivateKey which returns a uint8Array.
Does someone know how…

M2DT
- 125
- 7
1
vote
0 answers
Web3 dart transaction stuck at pending
I'm relatively new to Flutter and blockchain and I'm trying to create simple app. For start i create my own wallet and it is OK, I get credentials and address. I get balance with web3 getBalance method, and gas info with estimateGas and…

Vlada Momirovic
- 41
- 7
1
vote
1 answer
Flutter - SocketException: Connection failed (OS Error: Network is unreachable, errno = 101)
Getting error while connecting to ethereum node
E/flutter (23790): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)]
Unhandled Exception: SocketException: Connection failed (OS Error:
Network is unreachable, errno =…

Ishwar Chandra Tiwari
- 5,099
- 6
- 22
- 41
0
votes
1 answer
Error: type 'int' is not a subtype of type 'BigInt' of 'data' with web3 dart
I am trying to sign a transanction off chain but it's giving me that error.
var data = contract.function('permit').encodeCall([
credentialsA.address,
appOwnerCredentials.address,
1000,
deadline,
0,
…

Tabi Serebour
- 1
- 1
0
votes
1 answer
Facing --- flutter: RPCError: got code -32700 with msg "Invalid signature v value"
I am a beginner to Flutter and Web3. I am trying to call a setter method on a button press and sending this transaction over a local blockchain network (Ganache). I am using Truffle for managing and deploying smart contracts.
My truffle-config.js…

mr-possible
- 109
- 1
- 9
0
votes
0 answers
What could be causing my web3dart message signature to fail validation when testing with my smart contract in Dart Flutter?
Everybody, I'm trying to sign a message with web3dart and interact with my smart contract, but I have problems when I do this. So I don't know what's going on, because when I use Js to do the same thing, the signature that I got is valid and when I…

Arthour Vásquez
- 1
- 1
0
votes
0 answers
How can I code ERC20 token approval in dart?
dart, web3dart and walletconnect_dart to create a function that connect users wallet and prompt ERC20 token (e.g USDT) approval. But the approve function requires credentials which has privatekey and there's no way to get privatekey from user…

Harlem Maverick
- 1
- 1
0
votes
0 answers
How to connect to Trustwallet with web3dart package in Flutter and do transaction?
I want to connect to trustwallet or metamask with web3dart package and do the transaction for example send USDT. I am using this library because it supports all platforms, but it lacks documentation and good example. The problem is there is no…

Davoud
- 2,576
- 1
- 32
- 53
0
votes
0 answers
TrustWallet doesn't show confirmation popup after few minutes of closing app "Flutter"
I am using walletconnect_dart package to connect with metamask/trustwallet and send transaction
for metamask it's working but for TrustWallet when user close app and come back after few minutes session is still connected but it doesn't show…

Amjad Khan
- 63
- 1
- 6
0
votes
0 answers
Signing and Verification failures for Dart Ethereum Library
I am coding the logic to sign & verify a string in Dart.
I am importing the following libraries
import 'package:web3dart/web3dart.dart';
import 'package:eth_sig_util/eth_sig_util.dart';
import 'package:collection/collection.dart';
import…

Senthil
- 189
- 4
- 16
0
votes
0 answers
error when working with web3dart in flutter
import 'dart:html';
import 'package:web3dart/web3dart.dart';
import 'package:flutter/material.dart';
class Home extends StatefulWidget {
const Home({super.key});
@override
State createState() => _HomeState();
}
class _HomeState…

Lll Cilician
- 47
- 4
0
votes
1 answer
Async/Await - Pass string after being generated into a function
I'm new to this async/await problem in Flutter. How do I wait until the mnemonic is generated then only I pass it into the generatePrivateKey. After that I would like to show the _getKey after the private key is obtained.
class _MyHomePageState…

Leo
- 179
- 9