-
-
Save np/2687007 to your computer and use it in GitHub Desktop.
update all your namecoin domains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'json' | |
JSON.load(`namecoind name_list`).each do |domain| | |
if domain['expires_in'] < 5000 | |
command = "namecoind name_update '#{domain['name']}' '#{domain['value']}'" | |
puts command | |
puts `#{command}` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment