You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: when calling claimAll, the time between when we get blockhash (at the beginning of the function execution) and when the transaction is constructed can be greater than 151 blocks. When constructing a transaction, recentBlockhash need to be passed as an arg to the new TransactionMessage constructor. The transactions can expired and error of type TransactionExpiredBlockheightExceededError: Signature jtsGz2RHt2LTUeN5vsGD6YTd2cj3BjKjUGAPW7z7LMWwJwjoruZwMYsrc9XXKL24RypfatMN3w4w34JdhhEmSHo has expired: block height exceeded. appears.
Cause: When executing the claimAll function most of execution runtime is linking to getReferralTokenAccounts especially if the referral token account owns several token accounts (like a DEX using Jupiter). For around 300 tokens, It took around 1m30s...
Solution: get blockHash after getReferralTokenAccounts
The text was updated successfully, but these errors were encountered:
claimAll
, the time between when we getblockhash
(at the beginning of the function execution) and when the transaction is constructed can be greater than 151 blocks. When constructing a transaction,recentBlockhash
need to be passed as an arg to thenew TransactionMessage
constructor. The transactions can expired and error of typeTransactionExpiredBlockheightExceededError: Signature jtsGz2RHt2LTUeN5vsGD6YTd2cj3BjKjUGAPW7z7LMWwJwjoruZwMYsrc9XXKL24RypfatMN3w4w34JdhhEmSHo has expired: block height exceeded.
appears.claimAll
function most of execution runtime is linking togetReferralTokenAccounts
especially if the referral token account owns several token accounts (like a DEX using Jupiter). For around 300 tokens, It took around 1m30s...blockHash
aftergetReferralTokenAccounts
The text was updated successfully, but these errors were encountered: