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

New transaction status for proxy #41

Merged
merged 3 commits into from
Jul 12, 2023
Merged

Conversation

popenta
Copy link
Contributor

@popenta popenta commented Jul 11, 2023

Now for the proxy provider in order to get the transaction status we use the /process-status route.
The TransactionOnNetwork.isCompleted field is now optional and that could impact some people who were dependent on that field. If isCompleted is needed call getTransaction("txHash", withProcessStatus=True).

The isCompleted field is set only when getTransaction() was called using withProcessStatus = True.

When calling getTransaction() for the proxy provider an optional parameter called withProcessStatus: bool can also be provided. If withProcessStatus is set to True the /process-status route is also called. The transaction's status is then replaced with the process_status.

@popenta popenta self-assigned this Jul 11, 2023
src/proxyNetworkProvider.ts Outdated Show resolved Hide resolved
src/transactions.ts Outdated Show resolved Hide resolved
src/transactions.ts Outdated Show resolved Hide resolved
@andreibancioiu
Copy link
Contributor

Related to: multiversx/mx-chain-proxy-go#386.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants