connection.getAccountInfo fails to get the accountInfo, returning null even after 5 retries
|
accountInfo = await connection.getAccountInfo(bondingCurve); |
|
if (accountInfo) break; |
Fixed on my machine by adding commitment to confirmed or processed, e.g.
accountInfo = await connection.getAccountInfo(bondingCurve, {
commitment: "processed"
});
Tested with Helius
connection.getAccountInfofails to get theaccountInfo, returningnulleven after 5 retriespumpfun-bot/utils/getBondingCurveTokenAccountWithRetry.ts
Lines 14 to 15 in ef0d84e
Fixed on my machine by adding
commitmenttoconfirmedorprocessed, e.g.Tested with Helius