tangle-network / relayer

🕸️ The Webb Relayer Network
https://webb-tools.github.io/relayer/
Apache License 2.0
22 stars 13 forks source link

[TASK] Process Evm private transaction through queue and expose API to track it #548

Closed salman01zp closed 1 year ago

salman01zp commented 1 year ago

Overview

Now that we have item status tracking for queue in #452 we can process private-tx withdraw requests through queue. We will be returning item-key on withdraw request which can be used to call API to track item progress

API for tracking transaction progress

/api/v1/tx/evm/:chainId}/:transactionItemKey`;

response

{
  "status": {
    "Processed": {
      "tx_hash": "0x9c63525918023044e00815e060a921bda6eb785aa957023d9f8a5f166f7d4bd3"
    }
  },
  "itemKey": "0x6576…8915"
}

Task Checklist

shekohex commented 1 year ago

I do believe this would be redundant work, since we will remove the whole websockets module and replace it with POST and GET HTTP endpoints. #535 and #536. But if this would make your work easier during the transition to HTTP from Websockets then that's okay.

salman01zp commented 1 year ago

Yes.. it will to good test transaction-queue changes too