0

When I call get_balance:

$ curl http://127.0.0.1:2024/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_balance","params":{"account_index":2}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "balance": 1000000000000000,
    "blocks_to_unlock": 0,
    "multisig_import_needed": false,
    "per_subaddress": [{
      "account_index": 2,
      "address": "BhJQTaLZFYSCpjMdbDS5BjZwKw4BuvP6826VucYUdiV2NdJWc4qVwftgxRQBMzbxxHY8a4B5ahzFdQWijQTzDujA6Tbh8kB",
      "address_index": 0,
      "balance": 1000000000000000,
      "blocks_to_unlock": 0,
      "label": "Default Label",
      "num_unspent_outputs": 103,
      "time_to_unlock": 0,
      "unlocked_balance": 1000000000000000
    }],
    "time_to_unlock": 0,
    "unlocked_balance": 1000000000000000
  }

But when I call transfer_split:

$  curl"http://127.0.0.1:2024/json_rpc" -d '{"jsonrpc":"2.0","method":"transfer_split","params":{"destinations":[{"amount":999960233000000,"address":"BfmApzUD1erda9SDSjpbULMbTyRUhSpJBMjef5m185NV2EneYinTYfa2HJNwNLj6ePJFZmA3QH9hcG6i7onuu5q7Bycm5cf"}],"mixin":15,"get_tx_key":true,"account_index":2,"subaddr_indices":"","payment_id":"","priority":1,"unlock_time":0,"do_not_relay":false}}'
{
  "error": {
    "code": -17,
    "message": "not enough money"
  },
  "id": 0,
  "jsonrpc": "2.0"
}

As is obvious, 1000000000000000 > 999960233000000 so, what do I do to ammend this? Is there some fee I have to take into account?

10
  • Try removing "priority":1,
    – jtgrassie
    Commented Nov 20, 2023 at 15:16
  • @jtgrassie , thanks, but why? Commented Nov 23, 2023 at 8:15
  • So it uses the default priority and thus lower fee rate.
    – jtgrassie
    Commented Nov 23, 2023 at 15:31
  • @jtgrassie I thought 1 was the lowest priority? Commented Nov 23, 2023 at 15:45
  • 0 is the default and lowest.
    – jtgrassie
    Commented Nov 24, 2023 at 0:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.