omnicore: Error with selected inputs for the send transaction (btc balance is enough)

1. balance overview

Addr No. account btc balance omnitest balance
addr1 mx7r52d2oaNTeiMDr2zrcw2VGm1BQurC9K 0.14196558 2
addr2 n4YZv8eV8VTXW2ae2uZhnb64KdK3jS4GCx 0 0

The balace is checked by below commands: btc balance:

usdt@iZj6c48apyeg9dvouqz3uxZ:~$ omnicore-cli listreceivedbyaddress 0 true
[
  {
    "address": "mx7r52d2oaNTeiMDr2zrcw2VGm1BQurC9K",
    "account": "",
    "amount": 0.14196558,
    "confirmations": 412,
    "label": "",
    "txids": [
      "641d9e1975333ba61af5ffd3023427ab4935b507cb042ff561a563d09e0f2644"
    ]
  },
  {
    "address": "n4YZv8eV8VTXW2ae2uZhnb64KdK3jS4GCx",
    "account": "",
    "amount": 0.00000000,
    "confirmations": 0,
    "label": "",
    "txids": [
    ]
  }
]

omnitest (asset id = 2)

usdt@iZj6c48apyeg9dvouqz3uxZ:~$ omnicore-cli omni_getbalance "mx7r52d2oaNTeiMDr2zrcw2VGm1BQurC9K" 2
{
  "balance": "2.00000000",
  "reserved": "0.00000000",
  "frozen": "0.00000000"
}

usdt@iZj6c48apyeg9dvouqz3uxZ:~$ omnicore-cli omni_getbalance "n4YZv8eV8VTXW2ae2uZhnb64KdK3jS4GCx" 2
{
  "balance": "0.00000000",
  "reserved": "0.00000000",
  "frozen": "0.00000000"
}

2. send 0.2 omnitest from addr1 to add2 by below command

usdt@iZj6c48apyeg9dvouqz3uxZ:~$ omnicore-cli omni_send "mx7r52d2oaNTeiMDr2zrcw2VGm1BQurC9K" "n4YZv8eV8VTXW2ae2uZhnb64KdK3jS4GCx" 2 0.2

3. Then the omni_send returns the error:

error code: -206
error message:
Error with selected inputs for the send transaction

I have read other issues about this error, seems it occurs a lot: https://github.com/OmniLayer/omnicore/issues?utf8=✓&q=Error+with+selected+inputs+for+the+send+transaction

Below is my conf setting, I have set txconfirmtarget = 25 to lower the tx fee, but it’s not working.

# This config should be placed in following path:
# ~/.bitcoin/bitcoin.conf

# [core]
# Specify the location of the configuration file. To use non-default location, create a default location config file containing this setting.
conf=~/.bitcoin/bitcoin.conf
# Specify a non-default location to store blockchain and other data.
datadir=/mnt/bitcoin/omni

# [debug]
# Run this node on the Bitcoin Test Network.
testnet=1

# [rpc]
# Accept command line and JSON-RPC commands.
server=1

# Accept public REST requests.
rest=1

# RPC user
rpcuser=rpcuser

# RPC password
rpcpassword=rpcpass

# listen for connections
port=16333

# RPC prot
rpcport=16332 #for testnet
#rpcport=6332 #for mainnet

# RPC allow ip (allow all)
rpcallowip=0.0.0.0/0

# RPC bind
rpcbind=0.0.0.0

# get all transaction
txindex=1

# lower the tx fee
txconfirmtarget=25

My addr1 have 0.14196558 btc, is it not enough to pay the tx fee? I can’t belive it. How exactly can I send omni assets?

@laanwj @sipa @zathras-crypto @dexX7 @gavinandresen needs your help, thanks!

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 19 (1 by maintainers)

Most upvoted comments

It’s the default behavior of bitcoin when you use sendtoaddress ( you can change this in GUI or with rawtransaction ) , every time that you send a bitcoin transaction, the wallet generate a new address and send the change to this address. Using omni_send the change returns to fromaddress.