Skip to content

Commit 2c25a79

Browse files
authored
Update Wallet command line help for key fingerprints (#14982)
1 parent 44cdd92 commit 2c25a79

File tree

3 files changed

+37
-37
lines changed

3 files changed

+37
-37
lines changed

chia/cmds/coins.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def coins_cmd(ctx: click.Context) -> None:
2323
type=int,
2424
default=None,
2525
)
26-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
26+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
2727
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
2828
@click.option("-u", "--show-unconfirmed", help="Separately display unconfirmed coins.", is_flag=True)
2929
@click.option(
@@ -93,7 +93,7 @@ def list_cmd(
9393
type=int,
9494
default=None,
9595
)
96-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
96+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
9797
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
9898
@click.option(
9999
"-a",
@@ -187,7 +187,7 @@ def combine_cmd(
187187
type=int,
188188
default=None,
189189
)
190-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
190+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
191191
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
192192
@click.option(
193193
"-n",

chia/cmds/plotnft.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def plotnft_cmd() -> None:
3434
default=None,
3535
)
3636
@click.option("-i", "--id", help="ID of the wallet to use", type=int, default=None, show_default=True, required=False)
37-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
37+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
3838
def show_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int) -> None:
3939
import asyncio
4040

@@ -57,7 +57,7 @@ def get_login_link_cmd(launcher_id: str) -> None:
5757

5858
@plotnft_cmd.command("create", short_help="Create a plot NFT")
5959
@click.option("-y", "--yes", help="No prompts", is_flag=True)
60-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
60+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
6161
@click.option("-u", "--pool_url", help="HTTPS host:port of the pool to join", type=str, required=False)
6262
@click.option("-s", "--state", help="Initial state of Plot NFT: local or pool", type=str, required=True)
6363
@click.option(
@@ -108,7 +108,7 @@ def create_cmd(
108108
@plotnft_cmd.command("join", short_help="Join a plot NFT to a Pool")
109109
@click.option("-y", "--yes", help="No prompts", is_flag=True)
110110
@click.option("-i", "--id", help="ID of the wallet to use", type=int, default=None, show_default=True, required=True)
111-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
111+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
112112
@click.option("-u", "--pool_url", help="HTTPS host:port of the pool to join", type=str, required=True)
113113
@click.option(
114114
"-m",
@@ -139,7 +139,7 @@ def join_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int, fee: int
139139
@plotnft_cmd.command("leave", short_help="Leave a pool and return to self-farming")
140140
@click.option("-y", "--yes", help="No prompts", is_flag=True)
141141
@click.option("-i", "--id", help="ID of the wallet to use", type=int, default=None, show_default=True, required=True)
142-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
142+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
143143
@click.option(
144144
"-m",
145145
"--fee",
@@ -168,7 +168,7 @@ def self_pool_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int, fee
168168

169169
@plotnft_cmd.command("inspect", short_help="Get Detailed plotnft information as JSON")
170170
@click.option("-i", "--id", help="ID of the wallet to use", type=int, default=None, show_default=True, required=True)
171-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
171+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
172172
@click.option(
173173
"-wp",
174174
"--wallet-rpc-port",
@@ -187,7 +187,7 @@ def inspect(wallet_rpc_port: Optional[int], fingerprint: int, id: int) -> None:
187187

188188
@plotnft_cmd.command("claim", short_help="Claim rewards from a plot NFT")
189189
@click.option("-i", "--id", help="ID of the wallet to use", type=int, default=None, show_default=True, required=True)
190-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
190+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
191191
@click.option(
192192
"-m",
193193
"--fee",

chia/cmds/wallet.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def wallet_cmd(ctx: click.Context) -> None:
2828
type=int,
2929
default=None,
3030
)
31-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
31+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
3232
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
3333
@click.option("-tx", "--tx_id", help="transaction id to search for", type=str, required=True)
3434
@click.option("--verbose", "-v", count=True, type=int)
@@ -49,7 +49,7 @@ def get_transaction_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: in
4949
type=int,
5050
default=None,
5151
)
52-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
52+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
5353
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
5454
@click.option(
5555
"-o",
@@ -140,7 +140,7 @@ def get_transactions_cmd(
140140
type=int,
141141
default=None,
142142
)
143-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
143+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
144144
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
145145
@click.option("-a", "--amount", help="How much chia to send, in XCH", type=str, required=True)
146146
@click.option("-e", "--memo", help="Additional memo for the transaction", type=str, default=None)
@@ -227,7 +227,7 @@ def send_cmd(
227227
type=int,
228228
default=None,
229229
)
230-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
230+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
231231
@click.option(
232232
"-w",
233233
"--wallet_type",
@@ -255,7 +255,7 @@ def show_cmd(wallet_rpc_port: Optional[int], fingerprint: int, wallet_type: Opti
255255
default=None,
256256
)
257257
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
258-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
258+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
259259
@click.option(
260260
"-n/-l",
261261
"--new-address/--latest-address",
@@ -286,7 +286,7 @@ def get_address_cmd(wallet_rpc_port: Optional[int], id, fingerprint: int, new_ad
286286
default=None,
287287
)
288288
@click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True)
289-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
289+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
290290
def delete_unconfirmed_transactions_cmd(wallet_rpc_port: Optional[int], id, fingerprint: int) -> None:
291291
extra_params = {"id": id}
292292
import asyncio
@@ -304,7 +304,7 @@ def delete_unconfirmed_transactions_cmd(wallet_rpc_port: Optional[int], id, fing
304304
type=int,
305305
default=None,
306306
)
307-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
307+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
308308
def get_derivation_index_cmd(wallet_rpc_port: Optional[int], fingerprint: int) -> None:
309309
extra_params: Dict[str, Any] = {}
310310
import asyncio
@@ -322,7 +322,7 @@ def get_derivation_index_cmd(wallet_rpc_port: Optional[int], fingerprint: int) -
322322
type=int,
323323
default=None,
324324
)
325-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
325+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
326326
@click.option("-a", "--address", help="The address you want to use for signing", type=str, required=True)
327327
@click.option("-m", "--hex_message", help="The hex message you want sign", type=str, required=True)
328328
def address_sign_message(wallet_rpc_port: Optional[int], fingerprint: int, address: str, hex_message: str) -> None:
@@ -344,7 +344,7 @@ def address_sign_message(wallet_rpc_port: Optional[int], fingerprint: int, addre
344344
type=int,
345345
default=None,
346346
)
347-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
347+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
348348
@click.option(
349349
"-i", "--index", help="Index to set. Must be greater than the current derivation index", type=int, required=True
350350
)
@@ -400,7 +400,7 @@ def add_token_cmd(wallet_rpc_port: Optional[int], asset_id: str, token_name: str
400400
type=int,
401401
default=None,
402402
)
403-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
403+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
404404
@click.option(
405405
"-o",
406406
"--offer",
@@ -459,7 +459,7 @@ def make_offer_cmd(
459459
type=int,
460460
default=None,
461461
)
462-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
462+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
463463
@click.option("-id", "--id", help="The ID of the offer that you wish to examine")
464464
@click.option("-p", "--filepath", help="The path to rewrite the offer file to (must be used in conjunction with --id)")
465465
@click.option("-em", "--exclude-my-offers", help="Exclude your own offers from the output", is_flag=True)
@@ -505,7 +505,7 @@ def get_offers_cmd(
505505
type=int,
506506
default=None,
507507
)
508-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
508+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
509509
@click.option("-e", "--examine-only", help="Print the summary of the offer file but do not take it", is_flag=True)
510510
@click.option(
511511
"-m", "--fee", help="The fee to use when pushing the completed offer, in XCH", default="0", show_default=True
@@ -546,7 +546,7 @@ def take_offer_cmd(
546546
type=int,
547547
default=None,
548548
)
549-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
549+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
550550
@click.option("-id", "--id", help="The offer ID that you wish to cancel", required=True)
551551
@click.option("--insecure", help="Don't make an on-chain transaction, simply mark the offer as cancelled", is_flag=True)
552552
@click.option(
@@ -589,7 +589,7 @@ def did_cmd():
589589
type=int,
590590
default=None,
591591
)
592-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
592+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
593593
@click.option("-n", "--name", help="Set the DID wallet name", type=str)
594594
@click.option(
595595
"-a",
@@ -627,7 +627,7 @@ def did_create_wallet_cmd(
627627
type=int,
628628
default=None,
629629
)
630-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
630+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
631631
@click.option("-i", "--did_id", help="DID ID you want to use for signing", type=str, required=True)
632632
@click.option("-m", "--hex_message", help="The hex message you want to sign", type=str, required=True)
633633
def did_sign_message(wallet_rpc_port: Optional[int], fingerprint: int, did_id: str, hex_message: str) -> None:
@@ -647,7 +647,7 @@ def did_sign_message(wallet_rpc_port: Optional[int], fingerprint: int, did_id: s
647647
type=int,
648648
default=None,
649649
)
650-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
650+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
651651
@click.option("-i", "--id", help="Id of the wallet to use", type=int, required=True)
652652
@click.option("-n", "--name", help="Set the DID wallet name", type=str, required=True)
653653
def did_wallet_name_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int, name: str) -> None:
@@ -667,7 +667,7 @@ def did_wallet_name_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: in
667667
type=int,
668668
default=None,
669669
)
670-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
670+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
671671
@click.option("-i", "--id", help="Id of the wallet to use", type=int, required=True)
672672
def did_get_did_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int) -> None:
673673
import asyncio
@@ -691,7 +691,7 @@ def nft_cmd():
691691
type=int,
692692
default=None,
693693
)
694-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
694+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
695695
@click.option("-di", "--did-id", help="DID Id to use", type=str)
696696
@click.option("-n", "--name", help="Set the NFT wallet name", type=str)
697697
def nft_wallet_create_cmd(
@@ -713,7 +713,7 @@ def nft_wallet_create_cmd(
713713
type=int,
714714
default=None,
715715
)
716-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
716+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
717717
@click.option("-i", "--nft_id", help="NFT ID you want to use for signing", type=str, required=True)
718718
@click.option("-m", "--hex_message", help="The hex message you want to sign", type=str, required=True)
719719
def nft_sign_message(wallet_rpc_port: Optional[int], fingerprint: int, nft_id: str, hex_message: str) -> None:
@@ -733,7 +733,7 @@ def nft_sign_message(wallet_rpc_port: Optional[int], fingerprint: int, nft_id: s
733733
type=int,
734734
default=None,
735735
)
736-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
736+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
737737
@click.option("-i", "--id", help="Id of the NFT wallet to use", type=int, required=True)
738738
@click.option("-ra", "--royalty-address", help="Royalty address", type=str)
739739
@click.option("-ta", "--target-address", help="Target address", type=str)
@@ -831,7 +831,7 @@ def nft_mint_cmd(
831831
type=int,
832832
default=None,
833833
)
834-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
834+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
835835
@click.option("-i", "--id", help="Id of the NFT wallet to use", type=int, required=True)
836836
@click.option("-ni", "--nft-coin-id", help="Id of the NFT coin to add the URI to", type=str, required=True)
837837
@click.option("-u", "--uri", help="URI to add to the NFT", type=str)
@@ -888,7 +888,7 @@ def nft_add_uri_cmd(
888888
type=int,
889889
default=None,
890890
)
891-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
891+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
892892
@click.option("-i", "--id", help="Id of the NFT wallet to use", type=int, required=True)
893893
@click.option("-ni", "--nft-coin-id", help="Id of the NFT coin to transfer", type=str, required=True)
894894
@click.option("-ta", "--target-address", help="Target recipient wallet address", type=str, required=True)
@@ -939,7 +939,7 @@ def nft_transfer_cmd(
939939
type=int,
940940
default=None,
941941
)
942-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
942+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
943943
@click.option("-i", "--id", help="Id of the NFT wallet to use", type=int, required=True)
944944
def nft_list_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int) -> None:
945945
import asyncio
@@ -958,7 +958,7 @@ def nft_list_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int) -> N
958958
type=int,
959959
default=None,
960960
)
961-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
961+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
962962
@click.option("-i", "--id", help="Id of the NFT wallet to use", type=int, required=True)
963963
@click.option("-di", "--did-id", help="DID Id to set on the NFT", type=str, required=True)
964964
@click.option("-ni", "--nft-coin-id", help="Id of the NFT coin to set the DID on", type=str, required=True)
@@ -1009,7 +1009,7 @@ def nft_set_did_cmd(
10091009
type=int,
10101010
default=None,
10111011
)
1012-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
1012+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
10131013
@click.option("-ni", "--nft-coin-id", help="Id of the NFT coin to get information on", type=str, required=True)
10141014
def nft_get_info_cmd(
10151015
wallet_rpc_port: Optional[int],
@@ -1043,7 +1043,7 @@ def notification_cmd():
10431043
type=int,
10441044
default=None,
10451045
)
1046-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
1046+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
10471047
@click.option("-t", "--to-address", help="The address to send the notification to", type=str, required=True)
10481048
@click.option(
10491049
"-a",
@@ -1087,7 +1087,7 @@ def _send_notification(
10871087
type=int,
10881088
default=None,
10891089
)
1090-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
1090+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
10911091
@click.option("-i", "--id", help="The specific notification ID to show", type=str, default=[], multiple=True)
10921092
@click.option("-s", "--start", help="The number of notifications to skip", type=int, default=None)
10931093
@click.option("-e", "--end", help="The number of notifications to stop at", type=int, default=None)
@@ -1120,7 +1120,7 @@ def _get_notifications(
11201120
type=int,
11211121
default=None,
11221122
)
1123-
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int)
1123+
@click.option("-f", "--fingerprint", help="Set the fingerprint to specify which key to use", type=int)
11241124
@click.option("-i", "--id", help="A specific notification ID to delete", type=str, multiple=True)
11251125
@click.option("--all", help="All notifications can be deleted (they will be recovered during resync)", is_flag=True)
11261126
def _delete_notifications(

0 commit comments

Comments
 (0)