Useful CDV examples: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
* [[cdv rpc coinrecords --by id]] - To get parent coinID and spent block height. | * [[cdv rpc coinrecords --by id]] - To get parent coinID and spent block height. | ||
* [[cdv clsp treehash trigger.clvm| cdv clsp treehash trigger.clvm.hex]] - To verify puzzle you have revealed is the one committed to in the coin. | * [[cdv clsp treehash trigger.clvm| cdv clsp treehash trigger.clvm.hex]] - To verify puzzle you have revealed is the one committed to in the coin. | ||
* [[cdv rpc coinrecords --by puzhash]] | * [[cdv rpc coinrecords --by puzhash]] -nd | ||
* [[cdv rpc blockspends --by id]] - To get puzzle reveal and solution. | * [[cdv rpc blockspends --by id]] - To get puzzle reveal and solution. |
Latest revision as of 15:51, 27 December 2023
Return to: Chialisp
- cdv rpc blocks -s x -e y - For looking at block outputs
- cdv inspect spendbundles ./spendbundle.json -db
- cdv inspect --id coins - For getting coinID
- cdv rpc coinrecords --by id - To get parent coinID and spent block height.
- cdv clsp treehash trigger.clvm.hex - To verify puzzle you have revealed is the one committed to in the coin.
- cdv rpc coinrecords --by puzhash -nd
- cdv rpc blockspends --by id - To get puzzle reveal and solution.