Special Characters / Alphanumeric


#1

Downloaded CLI and tried a successful price lookup with “test123.id” but then got a failed price lookup for “test123*.id”.

Vs-MacBook-Pro:~ v$ blockstack price test123.id
{
“name_price”: {
“btc”: 6.25e-05,
“satoshis”: 6250
},
“preorder_tx_fee”: {
“btc”: 0.00250176,
“satoshis”: 250176
},
“register_tx_fee”: {
“btc”: 0.00239557,
“satoshis”: 239557
},
“total_estimated_cost”: {
“btc”: 0.00840169,
“satoshis”: 840169
},
“total_tx_fees”: 833919,
“update_tx_fee”: {
“btc”: 0.00344186,
“satoshis”: 344186
},
“warnings”: [
“Wallet not accessed; fees are rough estimates.”
]
}

Vs-MacBook-Pro:~ v9$ blockstack price test123*.id
{
“error”: “Unexpected error:\nTraceback (most recent call last):\n File “/usr/local/bin/blockstack”, line 52, in \n result = run_cli()\n File “/usr/local/lib/python2.7/site-packages/blockstack_client/cli.py”, line 398, in run_cli\n result = method(args, config_path=config_path)\n File “/usr/local/lib/python2.7/site-packages/blockstack_client/actions.py”, line 526, in cli_price\n error = check_valid_name(fqu)\n File “/usr/local/lib/python2.7/site-packages/blockstack_client/backend/safety.py”, line 71, in check_valid_name\n if not is_b40(name):\nNameError: global name ‘is_b40’ is not defined\n”,
“help”: “Try getting latest version of CLI with “sudo pip install blockstack --upgrade””
}
Vs-MacBook-Pro:~ v$


#2

Thanks for reporting this @BlockstackFTW (awesome name BTW! :wink: )

Blockstack names don’t allow special characters. Lower case a-z, 0-9 and underscore are allowed.

This error you received isn’t useful though - we should be displaying an error that much clearer. I’ve opened an issue for it here: https://github.com/blockstack/blockstack-core/issues/464


#3

Okay got it. Was just a little confused because on the CLI instructions it says "…names without vowels and names with numbers and special characters get a special discount."
I’m assuming you guys changed the guidelines for your ID space?