Wallet CLI
This document is a reference for Chia's wallet
CLI commands. The following wallet
commands are documented on their own dedicated pages:
Reference
add_token
Functionality: Add/Rename a CAT to the wallet by its asset ID
Usage: chia wallet add_token [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 |
-id | --asset-id | TEXT | True | The Asset ID of the coin you wish to add/rename (the treehash of the TAIL program) |
-n | --token-name | TEXT | False | The name you wish to designate to the token |
-f | --fingerprint | INTEGER | False | The wallet fingerprint you wish to add the token to |
-h | --help | None | False | Show a help message and exit |
Example
Add the Spacebucks token:
chia wallet add_token --asset-id a628c1c2c6fcb74d53746157e438e108eab5c0bb3e5c80ff9b1910b3e4832913 --token-name Spacebucks --fingerprint 2121994410
Response:
Successfully added Spacebucks with wallet id 3 on key 2121994410