Cannot send money from address t1 to another address t1


#1

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:

[email protected]:/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.


#2

Continue problem…
Help from programmers @renuzit @cryptorex @Marcelus


#3

Hi, do you try to send just mined btcz from an Pool address (pool mining fee) ? So try first to shield your coins : Error : bad-txns-coinbase-spend-has-transparent-outputs


#4

This is a problem with the correct display of the address balance and sending from address t to the second address t on the Linux server. There is no mined here and not windows wallet. The address created using the command on the NOD server and after was deposit 2 2BTCZ. Balance wrong. Problem with sending. Sorry my english is poor.


#5

What is the output if you execute :
Bitcoinz-cli getinfo
?


#6

./src/bitcoinz-cli -datadir=/home/bitcoinz/data getinfo
error code: -28
error message:
Activating best chain…


#7

20 minutes after start server NOD:

./src/bitcoinz-cli -datadir=/home/bitcoinz/data getinfo
{
“version”: 2000550,
“protocolversion”: 770007,
“walletversion”: 60000,
“balance”: 0.00000000,
“blocks”: 421462,
“timeoffset”: 0,
“connections”: 8,
“proxy”: “”,
“difficulty”: 2344.450942374539,
“testnet”: false,
“keypoololdest”: 1567153680,
“keypoolsize”: 101,
“paytxfee”: 0.00000000,
“relayfee”: 0.00000100,
“errors”: “”
}