Post
Topic
Board Announcements (Altcoins)
Re: Nxt :: descendant of Bitcoin - Updated Information
by
notsoshifty
on 31/12/2013, 00:30:12 UTC
still waiting for someone to code a multi-line (not single text field) batch process for aliases. That'd save me days upon weeks of time. however, that'd probably support a lot of greed though; It wouldn't take too awfully long to assemble a list of 50k names... I did 2k+ in my sleep last night

Also this would help with double/tripple checking an alias. I've inputted several id's & they weren't taken but they never registered... lag or a bug, idk. So an accepted and denied list from your batch would be very helpful until everything smooths out.

It's not pretty, but you can use a script like this: (adapt as appropriate for uri and deadline)

Code:
#!/bin/bash

key=mySuperSecretKey

while IFS=, read al pr
do
  echo "Alias: $al (max price: $pr):     "
  curl -vk "https://localhost:7875/nxt?requestType=assignAlias&secretPhrase=$key&alias=$al&uri=&fee=$pr&deadline=180"
  echo
done < alias.csv

And to check them:

Code:
#!/bin/bash

while IFS=, read al pr
do
  echo -n "Alias: $al (max price: $pr):     "
  curl -k "https://localhost:7875/nxt?requestType=getAliasURI&alias=$al"
  echo
done < alias.csv

Example alias.csv file (alias,fee):

Code:
fred,1
bob,1
jim,1