This will produce an output that displays all the keys stored in the default keyring (os).
$ sscd keys list
- address: saga1nlv6stt25sdest7fl2fxxp3lncxruegfwqsmw0
name: mykey1
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A923CFCYWYBK58XocadjTaEm+F2g6iebyf2F9lZ1vMF7"}'
type: local
- address: saga1z0uscdcprxcun2mlnyrz5kelemmjw768sdrgz5
name: test1
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A+u4iLJZWZHHcRIEbme8ppbmk1jYTpZVio8anPqAIQ31"}'
type: local
- address: saga1wv8shjt2hvvg9w0c556lv37c25twt5uhyqtzvw
name: test3
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A6AbCvRiZdVmBZNISExHzSwE2Aqyx0jskLAGYCxVru7M"}'
type: local
Different Keyring
To list keys held in a different keyring (not the default os), simply pass the --keyring-backend <backend name> to the list command:
$ sscd keys list --keyring-backend test
- address: saga1su8nzwkyp6ptrtvjnhlxcpqmmy0gavwdhz802r
name: alice
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A6nfTD7EINw6CxGQfvuaFk6xUIffDAHUU1QicnezJ/QK"}'
type: local
- address: saga1l6my462usu7kpg4edzj0e4l39we9vde5n7vphk
name: bob
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A6fVpjMHMHAnaOE4UqZHf5sGQ+ArtFzB/QUlVOJWjv47"}'
type: local
Further Details
For a full list of options associated with listing keys, type