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
Interestingly the fields don’t appear when using the js-stellar-sdk, but do appear when using the raw jsfetch example, so the sdk must be hiding the fields.
Ah, yes, we seem to hide the extra fields in the js-stellar-sdk when the response is received here:
Seems like an rpc bug to me though. Sdk hides the fields, so intent is for folks not to see it, but if we live “apis over sdks” the api should lead first with hiding the fields so sdks don’t have to, and folks who don’t use the sdks don’t see it.
The SDK doesn't intentionally "hide" the fields, it interprets the raw response in alignment with the documentation, which states certain fields are only present if status != "NOT_FOUND". They are hidden insofar as the SDK cannot rely on them existing for parsing per the spec.
What version are you using?
22.1.0-c7e9737b54913f5a33f29decdb0c9f6101dc1cfc
What did you do?
What did you expect to see?
Docs says this should be the result, and that for most of the fields in the response that:
Ref: https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransaction
What did you see instead?
Interestingly the fields don’t appear when using the
js-stellar-sdk
, but do appear when using the rawjs
fetch
example, so the sdk must be hiding the fields.Ah, yes, we seem to hide the extra fields in the js-stellar-sdk when the response is received here:
Seems like an rpc bug to me though. Sdk hides the fields, so intent is for folks not to see it, but if we live “apis over sdks” the api should lead first with hiding the fields so sdks don’t have to, and folks who don’t use the sdks don’t see it.
Discussion:
The text was updated successfully, but these errors were encountered: