solana-py
solana-py copied to clipboard
Request adding get_confirmed_transaction_with_config
I want to know whether a transaction succeeds in 1 confirmation but get_confirmed_transaction
will wait about 19 seconds for about 25 confirmations.
Because
get_confirmed_transaction
returns transactions at the finalized commitment level by default (due to historical reasons). We recently added a get_confirmed_transaction_with_config method, and through the config struct you can request CommitmentConfig::confirmed() [2] instead of the default of CommitmentConfig::finalized()
from mvines core contributor of solana