lotus chain head
打印链头
lotus chain getblock
获取一个块并打印其详细信息
lotus chain getblock [command options] [blockCid]
–raw: 只打印原始块标题
lotus chain read-obj
读取对象的原始字节
lotus chain read-obj [objectCid]
lotus chain stat-obj
收集对象的对象大小和ipld链接计数
当提供一个基时,它将首先被遍历,当传入对象被遍历时,所有访问的链接都将被忽略。
lotus chain stat-obj [command options] [cid]
–base value: 忽略此对象中找到的链接
lotus chain getmessage
通过cid获取并打印消息
lotus chain getmessage [messageCid]
lotus chain sethead
手动设置本地节点头tipset(注意:通常仅用于恢复)
lotus chain sethead [command options] [tipsetkey]
–genesis: 重置头部去为genesis
–epoch value: 重置头部为给定的纪元
lotus chain list
查看链的一段
lotus chain list [command options]
–height value: 默认为0
–count value: 默认为30
–format value: 指定打印提示集的格式,默认为": () "
lotus chain get
按路径获取链DAG节点
lotus chain get [command options] [path]
DESCRIPTION:Get ipld node under a specified path:lotus chain get /ipfs/[cid]/some/pathPath prefixes:- /ipfs/[cid], /ipld/[cid] - traverse IPLD path- /pstate - traverse from head.ParentStateRootNote:You can use special path elements to traverse through some data structures:- /ipfs/[cid]/@H:elem - get 'elem' from hamt- /ipfs/[cid]/@Hi:123 - get varint elem 123 from hamt- /ipfs/[cid]/@Hu:123 - get uvarint elem 123 from hamt- /ipfs/[cid]/@Ha:t01 - get element under Addr(t01).Bytes- /ipfs/[cid]/@A:10 - get 10th amt element- .../@Ha:t01/@state - get pretty map-based actor stateList of --as-type types:- raw- block- message- smessage, signedmessage- actor- amt- hamt-epoch- hamt-address- cronevent- account-state
–as-type value: 指定要将输出解释为的类型
–verbose:
–tipset value: 为/pstate指定tipset,(传递以逗号分隔的cids数组)
lotus chain bisect
事件的对分链
lotus chain bisect [minHeight maxHeight path shellCommand <shellCommandArgs (if any)>]
DESCRIPTION:Bisect the chain state tree:lotus chain bisect [min height] [max height] '1/2/3/state/path' 'shell command' 'args'Returns the first tipset in which condition is truev[start] FFFFFFFTTT [end]Example: find height at which deal ID 100 000 appeared- lotus chain bisect 1 32000 '@Ha:t03/1' jq -e '.[2] > 100000'For special path elements see 'chain get' help
lotus chain export
将链导出到car文件
lotus chain export [outputPath]
lotus chain slash-consensus
报告一致性错误
lotus chain slash-consensus [command options] [blockCid1 blockCid2]
–miner value: Miner address
–extra value: 额外的block cid