Open doitian opened 1 month ago
CKB does not index history dead cells for performance restrictions. Internally, CKB still needs to get the whole transaction from the database to get a single dead cell from its outputs.
get_transaction
to resolve inputs and cell deps. It's recommended to use verbosity=0
to avoid JSON serialization overhead. Since this RPC will return the whole transaction instead of a single output, it's recommended to not include too many huge output cells in one transaction.get_header
to resolve header deps.It's a common requirement to handle tx in CKB. For example:
mock-tx
sub-command and ckb-standalone-debugger stores resolved tx in ckb-mock-tx-types
Feature Request
Is your feature request related to a problem? Please describe.
Given a transaction, clients must use
get_transaction
andget_header
to fetch each input, cell dep, and header dep.Describe the solution you'd like
Add a high level RPC method to simplify resolving the dependencies of a transaction. The RPC method may accept a tx hash of an existing a transaction, or a full tx payload.
Describe alternatives you've considered
N/A