Skip to content

[BUG]: getBondingCurveTokenAccountWithRetry stuck returning null #1

@MikalaiLappo

Description

@MikalaiLappo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions