You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
340 B
17 lines
340 B
#! /bin/sh
|
|
|
|
# Alpha defaults to confidential addresses. We don't handle those (yet?)
|
|
# so extract the unconfidential address.
|
|
set -e
|
|
|
|
. `dirname $0`/vars.sh
|
|
|
|
case $STYLE in
|
|
alpha)
|
|
A=`$CLI getnewaddress`
|
|
$CLI validateaddress $A | sed -n 's/.*"unconfidential" : "\([A-Za-z0-9]*\)".*/\1/p'
|
|
;;
|
|
bitcoin)
|
|
$CLI getnewaddress
|
|
;;
|
|
esac
|
|
|