You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The field confirmationStatus is not documented in the RPC response although it is very useful. I've encountered this problem during development of an on-chain game http://solana-place.com/ where I need to show changes history. Without that field I would need to make additional getSignatureStatus calls to get the finality of transactions.
I'm wondering whether I can rely on its presence in RPC responses. Unfortunately, that field is not present in the solana-web3's ConfirmedSignatureInfo so I need to do an unchecked cast like
@CriesofCarrots I'll be glad to make a PR. Just wanted to reassure that the mentioned field is mandatory of the RPC response. At least on Mainnet API & Alchemy & Quicknode this is true.
I'll be glad to make a PR. Just wanted to reassure that the mentioned field is mandatory of the RPC response. At least on Mainnet API & Alchemy & Quicknode this is true.
Thanks. I'm not sure "mandatory" is the right word, but that response field has been in the code for 17 months so it definitely should be in the docs.
Problem
getSignaturesForAddress RPC API responds with undocumented
confirmationStatus
, for example, given an RPC request:the response:
The field
confirmationStatus
is not documented in the RPC response although it is very useful. I've encountered this problem during development of an on-chain game http://solana-place.com/ where I need to show changes history. Without that field I would need to make additional getSignatureStatus calls to get the finality of transactions.I'm wondering whether I can rely on its presence in RPC responses. Unfortunately, that field is not present in the
solana-web3
's ConfirmedSignatureInfo so I need to do an unchecked cast likeProposed Solution
Document the
confirmationStatus
field if it is a de-facto part of the RPC response.The text was updated successfully, but these errors were encountered: