Closed yangby-cryptape closed 1 month ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Motivations
Suppose the follow scenes:
Block
, I want to extract itsHeader
.Header
, I want to extract itsRawHeader
forpow_hash
.Transaction
, I want to extract itsRawTransaction
fortx_hash
.Script
, I want to extract itsargs
.I have to decode them into a JSON file, modify the JSON file then encode the JSON file manually.
Feature Request
Maybe
ckb-cli molecule
could add a sub-commandextract
to extract some common fields from its parent structs.