You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the TransactionService.getTransactionStatusAndMetrics() method, when GET_RECORD_DEFAULT_TO_CONSENSUS_NODE is set to true, queries the consensus node to retrieve the operator's balance information to calculate the charged amount before and after executing TransactionRecordQuery. To ensure accurate account balances, a 200ms timeout is used to allow the balances to update properly. This results in a total of 400ms (before and after) for each request to calculate the difference in account balance. Depending on the size of the callData, each client call (e.g., eth_sendRawTransaction) can involve multiple requests (10+ or 20+), significantly increasing the total wait time just to calculate the balance difference.
This issue has been raised in the SDK repository under this ticket, requesting a new API that performs the calculation natively.
Solution
Wait for the new API to be included in the SDK and implement it in the TransactionService to improve performance.
Alternatives
No response
The text was updated successfully, but these errors were encountered:
Problem
Currently, the
TransactionService.getTransactionStatusAndMetrics()
method, whenGET_RECORD_DEFAULT_TO_CONSENSUS_NODE
is set to true, queries the consensus node to retrieve the operator's balance information to calculate the charged amount before and after executingTransactionRecordQuery
. To ensure accurate account balances, a 200ms timeout is used to allow the balances to update properly. This results in a total of 400ms (before and after) for each request to calculate the difference in account balance. Depending on the size of thecallData
, each client call (e.g.,eth_sendRawTransaction
) can involve multiple requests (10+ or 20+), significantly increasing the total wait time just to calculate the balance difference.This issue has been raised in the SDK repository under this ticket, requesting a new API that performs the calculation natively.
Solution
Wait for the new API to be included in the SDK and implement it in the
TransactionService
to improve performance.Alternatives
No response
The text was updated successfully, but these errors were encountered: