@identity.com/sol-did-cli
v3.3.0
Published
sol is a CLI client for the did:sol method on Solana
Downloads
9
Maintainers
Keywords
Readme
did:sol
CLI
A typescript-based CLI for registering, manipulating, and resolving DIDs using the did:sol
method.
Command line tool
The client library comes with a command line tool sol
that resolves and manipulate
DIDs.
Installation
yarn global add @identity.com/sol-did-cli # or npm install -g @identity.com/sol-did-cli
Usage
Resolve a DID
sol did:sol:ygGfLvAyuRymPNv2fJDK1ZMpdy59m8cV5dak6A8uHKa # resolves a DID on mainnet-beta
...
sol did:sol:devnet:6fjuEFDTircJVNCQWYe4UHNfbYrU1a4sEr8FQ5w7d8Fx # resolves a DID on devnet
Usage
$ npm install -g @identity.com/sol-did-cli
$ sol COMMAND
running command...
$ sol (--version)
@identity.com/sol-did-cli/3.1.0 darwin-arm64 node-v16.13.0
$ sol --help [COMMAND]
USAGE
$ sol COMMAND
...
Commands
sol help [COMMAND]
Display help for sol.
USAGE
$ sol help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for sol.
See code: @oclif/plugin-help
sol resolve DIDSOL
Resolves a did:sol DID
USAGE
$ sol resolve [DIDSOL]
ARGUMENTS
DIDSOL did:sol DID to be resolved
DESCRIPTION
Resolves a did:sol DID
EXAMPLES
$ sol resolve did:sol:devnet:ygGfLvAyuRymPNv2fJDK1ZMpdy59m8cV5dak6A8uHKa
{
"@context": [
"https://w3id.org/did/v1.0",
"https://w3id.org/sol/v2.0"
],
"controller": [],
"verificationMethod": [
{
"id": "did:sol:devnet:ygGfLvAyuRymPNv2fJDK1ZMpdy59m8cV5dak6A8uHKa#default",
"type": "Ed25519VerificationKey2018",
"controller": "did:sol:devnet:ygGfLvAyuRymPNv2fJDK1ZMpdy59m8cV5dak6A8uHKa",
"publicKeyBase58": "ygGfLvAyuRymPNv2fJDK1ZMpdy59m8cV5dak6A8uHKa"
}
],
"authentication": [],
"assertionMethod": [],
"keyAgreement": [],
"capabilityInvocation": [
"#default"
],
"capabilityDelegation": [],
"service": [],
"id": "did:sol:devnet:ygGfLvAyuRymPNv2fJDK1ZMpdy59m8cV5dak6A8uHKa"
}
See code: dist/commands/resolve/index.ts