Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALREADY_EXISTS: already known when sendTransaction() #100

Open
junixapp opened this issue Mar 29, 2023 · 0 comments
Open

ALREADY_EXISTS: already known when sendTransaction() #100

junixapp opened this issue Mar 29, 2023 · 0 comments

Comments

@junixapp
Copy link

junixapp commented Mar 29, 2023


const String rpcUrl = 'https://eth-goerli.api.onfinality.io/public';

var res = await client.sendTransaction(
      credentials,
      Transaction(
        to: EthereumAddress.fromHex('xxxxx'),
        gasPrice: EtherAmount.fromUnitAndValue(EtherUnit.kwei, 10),
        maxGas: 100000,
        value: EtherAmount.fromUnitAndValue(EtherUnit.gwei, 1000000), //0.0001eth
        // value: EtherAmount.fromUnitAndValue(EtherUnit.ether, 0.01),
      ),
      chainId : 5,
  );

error:

response: {jsonrpc: 2.0, id: 3, error: {code: -32000, message: ALREADY_EXISTS: already known}}
Unhandled exception:
RPCError: got code -32000 with msg "ALREADY_EXISTS: already known".
#0      JsonRPC.call (package:web3dart/json_rpc.dart:73:7)
<asynchronous suspension>
#1      Web3Client._makeRPCCall (package:web3dart/src/core/client.dart:53:20)
<asynchronous suspension>
#2      main (package:example/main.dart:41:13)
<asynchronous suspension>

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

No branches or pull requests

1 participant