-
Notifications
You must be signed in to change notification settings - Fork 370
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
Change tx status method doc #1499
Conversation
Change tx status method doc https://docs.near.org/api/rpc/transactions#transaction-status In reality, we wait until the block of the last corresponding receipt_id is final, and only then return the result. So the user does not need to check anything.
Your Render PR Server URL is https://near-docs-pr-1499.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-ck4upj6i9prc73ffb88g. |
let me know if we should merge it 👍 |
I'm not sure this is the case, can you explain a bit more? This RPC call eventually ends up in cc @jakmeier do you happen to know how this works? |
Valid concern. @wacban @jakmeier I've created the proposal for improving tx status method, please leave any comments there |
I am not sure about this TBH. But the description in near/nearcore#6834 suggests we indeed wait for all execution outcomes to be available in the polling loop. So this part of the documentation seems outdated:
On the other hand, this seems to be still true:
I wrote my exact (but probably flawed) understanding in near/nearcore#9542 |
@gagdiez I see you merged this PR but I'm not sure if it was ready or abandonded. @telezhnaya, the author, did you mean to get it merged? |
I saw an approved PR that was not in If this was a mistake, please let me know so I roll it back. |
@gagdiez please roll it back |
@telezhnaya change has been reverted in b9fc109 |
@telezhnaya I have also created a new PR #1660 , and left it as |
https://docs.near.org/api/rpc/transactions#transaction-status
In reality, we wait until the block of the last corresponding receipt_id is final, and only then return the result. So the user does not need to check anything.
Return type is
FinalExecutionOutcomeView
, it's by the definitionFinal execution outcome of the transaction and all of subsequent the receipts.
I've found this while working on near/nearcore#6837
Maybe I'll change the signature of tx status method or add the new one with more fine-grained way to ask for the result without waiting until everything is final