mirror of
https://github.com/AskDavis/cyphernode.git
synced 2026-01-02 11:59:47 -08:00
First push from Satoshi Portal's own cyphernode
This commit is contained in:
21
proxy_docker/app/script/importaddress.sh
Normal file
21
proxy_docker/app/script/importaddress.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./trace.sh
|
||||
. ./sendtobitcoinnode.sh
|
||||
|
||||
importaddress_rpc()
|
||||
{
|
||||
trace "[Entering importaddress_rpc()]"
|
||||
|
||||
local address=${1}
|
||||
local data="{\"method\":\"importaddress\",\"params\":[\"${address}\",\"\",false]}"
|
||||
local result
|
||||
result=$(send_to_watcher_node ${data})
|
||||
local returncode=$?
|
||||
|
||||
echo "${result}"
|
||||
|
||||
return ${returncode}
|
||||
}
|
||||
|
||||
case "${0}" in *importaddress.sh) importaddress_rpc $@;; esac
|
||||
Reference in New Issue
Block a user