solana-py icon indicating copy to clipboard operation
solana-py copied to clipboard

Request adding get_confirmed_transaction_with_config

Open Jay54520 opened this issue 3 years ago • 0 comments

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

Jay54520 avatar Sep 11 '21 06:09 Jay54520