Hi
I want to send money from one address to another using API.
This is my command:
./src/bitcoinz-cli -datadir=/home/bitcoinz/data z_sendmany “t1aieBLQB3KSfTT6WjP3pkWERKecjoxT1dq” ‘[{“address”:“t1Na5hQ1ru9Qkb9oqEWkEa5fv8TjdvCL92E”,“amount”:1.0}]’
And as result I can see:
root@1d45a51f1530:/home/bitcoinz# ./src/bitcoinz-cli -datadir=/home/bitcoinz/data z_getoperationstatus ‘[“opid-de7ccd76-740c-4334-9ef3-7769491f78c6”]’
[
{
“id”: “opid-de7ccd76-740c-4334-9ef3-7769491f78c6”,
“status”: “failed”,
“creation_time”: 1568681972,
“error”: {
“code”: -6,
“message”: “Could not find any non-coinbase UTXOs to spend.”
},
“method”: “z_sendmany”,
“params”: {
“fromaddress”: “t1aieBLQB3KSfTT6WjP3pkWERKecjoxT1dq”,
“amounts”: [
{
“address”: “t1Na5hQ1ru9Qkb9oqEWkEa5fv8TjdvCL92E”,
“amount”: 1.0
}
],
“minconf”: 1,
“fee”: 0.0001
}
}
]
On address t1aieBLQB3KSfTT6WjP3pkWERKecjoxT1dq I have 2 btcz. They are showed in explorer.