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
Is your feature request related to a problem? Please describe.
We're going to add a cycles field on the transaction page and block page of CKB Explorer.
For a single transaction, we can call the dry_run_transaction RPC to get its cycles. However, the dry_run_transaction RPC is for development(estimate cycles to optimize a transaction) but not for data querying.
Besides, when it's a block page, we need to get cycles of all transactions in it to get the cycles of a block so we have to dry run all transactions, which might be infeasible.
Feature Request
cycles
field in result of get_transaction RPC;cycles
field in result of get_blockIs your feature request related to a problem? Please describe.
We're going to add a
cycles
field on the transaction page and block page of CKB Explorer.For a single transaction, we can call the dry_run_transaction RPC to get its
cycles
. However, the dry_run_transaction RPC is for development(estimate cycles to optimize a transaction) but not for data querying.Besides, when it's a block page, we need to get
cycles
of all transactions in it to get thecycles
of a block so we have todry run
all transactions, which might be infeasible.After a consultation, we've learned that
So I think an extra field
cycles
could be returned along with the get_transaction and get_block RPCs.Refs:
Describe the solution you'd like
As mentioned in the Feature Request section
Describe alternatives you've considered
None
The text was updated successfully, but these errors were encountered: