Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Add confirmation status to ConfirmedSignatureInfo web3 response #28555

Merged

Conversation

amilz
Copy link
Contributor

@amilz amilz commented Oct 24, 2022

Problem

Web3.js ConfirmedSignatureInfo type does not include confirmationStatus. This was corrected for documentation in PR#27264 but not added to the Connection class in web3.js.

Summary of Changes

Updated /solana/web3.js/src/connection.ts by adding confirmationStatus as an optional value included in ConfirmedSignatureInfo type:

  /** cluster confirmation status, if data available. Possible responses: `processed`, `confirmed`, `finalized` */
  confirmationStatus?: TransactionConfirmationStatus;

Fixes #27569

@mergify mergify bot added the community Community contribution label Oct 24, 2022
@mergify mergify bot requested a review from a team October 24, 2022 16:36
Copy link
Contributor

@austinmilt austinmilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Minor wording suggestion

web3.js/src/connection.ts Outdated Show resolved Hide resolved
@steveluscher steveluscher merged commit 3922f3d into solana-labs:master Nov 28, 2022
@steveluscher
Copy link
Contributor

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RPC API getSignaturesForAddress sends undocumented field "confirmationStatus"
3 participants