DID CLI
This document is a comprehensive listing of CLI commands for interacting with Chia DIDs.
Reference
create
Functionality: Create a DID wallet
Usage: chia wallet did create [OPTIONS]
Options:
Short Command | Long Command | Type | Required | Description |
---|---|---|---|---|
-wp | --wallet-rpc-port | INTEGER | False | Set the port where the Wallet is hosting the RPC interface. See the rpc_port under wallet in config.yaml |
-f | --fingerprint | INTEGER | False | Set the fingerprint to specify which wallet to use |
-n | --name | TEXT | False | Set the DID wallet name [default: None] |
-a | --amount | INTEGER | False | Set the DID amount in mojos. Value must be an odd number. [default: 1] |
-m | --fee | TEXT | False | Set the fees per transaction, in XCH. [default: 0] |
-h | --help | None | False | Show a help message and exit. |
Example
Create a new DID:
chia wallet did create -n My_DID
Response:
Successfully created a DID wallet with name My_DID and id 2 on key 4288332900
Successfully created a DID did:chia:17jvhl9z8zj6jma2uxk4mqj22p90hfpf29svlvlyalu8ksyefsvpql7f403 in the newly created DID wallet