Implement QueryResponse
#579
janaakhterov
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reason for implementing this type is it doesn't make sense that you can't access the node, cost, or payment transaction itself for a query you've executed. I think it'd benefit users to be able to access this information. This would also allow a user to get the receipt for a payment transaction if that's something they want to do.
Another benefit is extensibility. Having an SDK owned type be returned from all queries would allow us to extend the query responses without breaking changes. Unlike right now where
FileContentsQuery
,ContractBytecodeQuery
,AccountRecordsQuery
, andAccountStakersQuery
return non-extensible types.Beta Was this translation helpful? Give feedback.
All reactions