confirmTransaction tested whether one transaction had succeeded at a requested
commitment and returned an RpcResponse<boolean>.
Removed RPC method
This JSON-RPC method was removed in Agave v2.0. Use getSignatureStatuses.
Migration
Wrap the legacy signature in an array: [signature, commitment] becomes
[[signature]]. Read result.value[0], compare its confirmationStatus with
the required commitment, and require err to be null. A missing status or a
failed transaction maps to the legacy false result.
getSignatureStatuses does not accept a commitment parameter. Set
searchTransactionHistory: true only when the signature may have left the
recent status cache. Treat confirmation levels as ordered: processed <
confirmed < finalized. A returned level satisfies an equal or weaker
requested commitment.
Is this page helpful?