Poll smart-contract transaction logs directly from the REST Mirror Network #76
Labels
contracts
LiveContract/Smart contract related
enhancement
New feature or request
heavy work
Heavy work is expected for this
Milestone
Currently, we issue a
TransactionRecordQuery
request if we want smart-contract execution logs following aContractExecuteTransaction
call. ForContractCallQuery
there is no such requirement since, by design, theContractCallQuery
response (which is aContractFunctionResult
) contains those logs.Such a transaction is costly but there is a way around this: we poll for the logs from the mirror-node via GET-ing on
/api/v1/contract/{contractId}/results/logs
.Now this is admittedly a burdensome strategy since it will put load on the mirror-node, yet since other libraries are doing it (eg.
hethers
), we might as well go down this path for cost-efficiency. Maybe we have this polling enabled via a flag? That's worth thinking about.The text was updated successfully, but these errors were encountered: