multiversx / mx-sdk-js-network-providers

Network Provider (API, Gateway) components (compatible with sdk-js).
Other
6 stars 6 forks source link

New transaction status for proxy #41

Closed popenta closed 1 year ago

popenta commented 1 year ago

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 callgetTransaction("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.

andreibancioiu commented 1 year ago

Related to: https://github.com/multiversx/mx-chain-proxy-go/pull/386.