Skip to content

theNamesdao/namesdao-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Namesdao

Register a Namesdao .xch name or send XCH to a Namesdao .xch name. Find out more at Namesdao.org.

Usage

Sample usage:

$ python3 namesdao.py name register $name $destaddress
$ python3 namesdao.py name register $name $destaddress --cloak -a 0.018
$ python3 namesdao.py name register _nameToRegister.xch _MyExistingName.xch --cloak -a 0.018
$ python3 namesdao.py name register ___nameToRegister.xch xchaddresstoregister --cloak -a 0.000000000001 -m 0.0000000001
$ python3 namesdao.py name register ___nameToRegister.xch xchaddresstoregister -a 0.000000000001 -m 0.0000000001
$ python3 namesdao.py wallet send $address -a $amount -m $fee
$ python3 namesdao.py wallet send hellobilly.xch -a 0.000000000001 -m 0.000000000002
$ python3 namesdao.py wallet resolve $address

Options:

  • $destaddress is a .xch name or a xch address that will receive the new registered name
  • $name is a Namesdao .xch name
  • $address is the .xch name or xch address to send the XCH to [required for wallet send]
  • -a, --amount TEXT How much chia to send, in XCH [required for wallet send]. In the case of name register, if no amount is provided, then NAME tokens will be sent.
  • -e, --memo TEXT Additional memo for the transaction
  • -k, --cloak Use a cloaked registration
  • -m, --fee TEXT Set the fees for the transaction, in XCH (optional, default value 1 mojo)
  • -M, --Fee TEXT Set the fees for the transaction, in mojos [takes precedence over --fee]
  • -y, --yes Execute without asking for confirmation
  • -h, --help Show this message and exit

Requirements

Python 3 is required.

To use cloaked registrations, you will need to install GPG for Python:

On Ubuntu: sudo apt install python3-gpg

See here for other operating systems.

Cloaked Registrations

Cloaked registrations encrypt part of the request to prevent others from watching the name you request in the Chia mempool, and trying to register the name before you.

To use a cloaked registration, include --cloak in the command line of your "name register" command.

Troubleshooting

You can fix the following warning message:

/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.11) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "

by running:

$ pip3 install --upgrade requests

License

MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages