Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Co-authored-by: Austin Milt <austin.w.milt@gmail.com>
@steveluscher steveluscher merged commit 3922f3d into solana-labs:master Nov 28, 2022
@steveluscher
Copy link
Contributor

image

gnapoli23 pushed a commit to gnapoli23/solana that referenced this pull request Dec 16, 2022
…se (solana-labs#28555)

* Add confirmation status to ConfirmedSignatureInfo web3 response

* Update web3.js/src/connection.ts

Co-authored-by: Austin Milt <austin.w.milt@gmail.com>

Co-authored-by: Austin Milt <austin.w.milt@gmail.com>
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Jan 4, 2023
…se (solana-labs#28555)

* Add confirmation status to ConfirmedSignatureInfo web3 response

* Update web3.js/src/connection.ts

Co-authored-by: Austin Milt <austin.w.milt@gmail.com>

Co-authored-by: Austin Milt <austin.w.milt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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