Are there any rpc commands that could list all the CATs coins for a puzzle hash?

If I execute the command
cdv rpc coinrecords --by puzhash
I receive a list of XCH coins, I can’t see the coins of CAT’s .
Is there any command or parameter I need to add to see all the coins of a puzzlehash ?

The (outer) puzzle hash of the CATs is not the same as your XCH (inner) puzzle hash. You can get the CATs’ puzzle hash by using the command, cdv clsp cat_puzzle_hash --help.

For example, you can list all of your CH21 tokens like this:
cdv rpc coinrecords --by puzzlehash (cdv clsp cat_puzzle_hash --tail CH21 <XCH puzzle hash>)

1 Like