espresso-cash-public icon indicating copy to clipboard operation
espresso-cash-public copied to clipboard

TimeoutException after 0:00:30.000000: Future not completed exception on transferSplToken yet tokens get deducted

Open sunsetjesus opened this issue 2 years ago • 2 comments

Future Times out yet tokens get deducted

To Reproduce Steps to reproduce the behavior:

      await _solanaClient.transferSplToken(
          mint: mintPubKey,
          destination: destinationPubKey,
          amount: amount,
          owner: keyPair,
          commitment: Commitment.processed,
          });

Expected behavior return signature Additional context rpc url - https://api.devnet.solana.com/ solana: ^0.23.0+1 Flutter 2.10.4 • channel stable • https://github.com/flutter/flutter.git Dart 2.16.2

sunsetjesus avatar May 13 '22 23:05 sunsetjesus

You can create a SolanaClient with a custom timeout value. Try to use some bigger value if it works for you.

ookami-kb avatar May 14 '22 18:05 ookami-kb

I see that you're using commitment: Commitment.processed. It's not supported by this method, try using confirmed or finalized.

ookami-kb avatar May 29 '22 19:05 ookami-kb