Open brothereum opened 3 years ago
I have the same problem
我也有同样的问题
After the transfer is successful, I can't find the transaction in the browser.
me to any solution, After the transfer is successful, I can't find the transaction?
The transaction returns hash but doesn't appear on Etherscan or change the values. Please help :(
final sendFunction = contract.function('transfer');
await client.sendTransaction( credentials, Transaction.callContract ( from: ownAddress, contract: contract, function: sendFunction, parameters: [receiver, BigInt.from(10)], gasPrice: EtherAmount.inWei(BigInt.from(1000000)), maxGas: 100000,
),
chainId: 4,
).then((value) async{
print("DONE");
print(value);
final balance = await client.call(
contract: contract, function: balanceFunction, params: [ownAddress]);
print('We have ${balance.first} EC');
});
in callContract: nonce: await provider.getTransactionCount(credentials!.address),
"gasPrice" in a network with eip1559 activated must not be included "from" is not needed if you send it from the same signer(credentials)
Hi, I am very new to web3dart or blockchain. I have some problem with web3dart, I am unable to send transaction using the dart code attached in this issue. The code executed correctly however it is not transferring any amount. It returned a transaction hash however whenever I checked it in the metamask transactions does not show up neither value changes. It may be due to non specifying a network_id or hardfork along with the transaction. The code equivalent that work correctly in the web3js is also attached.
Using the following code I can clearly able to transfer any amount to any target wallet address