dash sendmany error -1: значение jason не является ожидаемым объектом
Я пытаюсь использовать опцию dash sendmany.
error -1: sendmany "fromaccount" {"address":amount,...} ( minconf addlockconf "comment" ["address",...] subtractfeefromamount use_is use_ps )
send multiple times. amounts are double-precision floating point numbers.
arguments:
1. "fromaccount" (string, required) deprecated. the account to send the funds from. should be "" for the default account
2. "amounts" (string, required) a json object with addresses and amounts
{
"address":amount (numeric or string) the dash address is the key, the numeric amount (can be string) in dash is the value
,...
}
3. minconf (numeric, optional, default=1) only use the balance confirmed at least this many times.
4. addlockconf (bool, optional, default=false) whether to add 5 confirmations to transactions locked via instantsend.
5. "comment" (string, optional) a comment
6. subtractfeefromamount (string, optional) a json array with addresses.
the fee will be equally deducted from the amount of each selected address.
those recipients will receive less dashs than you enter in their corresponding amount field.
if no addresses are specified here, the sender pays the fee.
[
"address" (string) subtract fee from this address
,...
]
7. "use_is" (bool, optional) send this transaction as instantsend (default: false)
8. "use_ps" (bool, optional) use anonymized funds only (default: false)
result:
"transactionid" (string) the transaction id for the send. only 1 transaction is created regardless of
the number of addresses.
examples:
send two amounts to two different addresses:
> dash-cli sendmany "tabby" "{\"xwnly9tf7zsef8gmgl2fhwa9zmmjt4kpwg\":0.01,\"xuqqkwa4fykq2xerzmy2ciazhjtedabtcg\":0.02}"
send two amounts to two different addresses setting the confirmation and comment:
> dash-cli sendmany "tabby" "{\"xwnly9tf7zsef8gmgl2fhwa9zmmjt4kpwg\":0.01,\"xuqqkwa4fykq2xerzmy2ciazhjtedabtcg\":0.02}" 6 false "testing"
as a json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["tabby", "{\"xwnly9tf7zsef8gmgl2fhwa9zmmjt4kpwg\":0.01,\"xuqqkwa4fykq2xerzmy2ciazhjtedabtcg\":0.02}", 6, false, "testing"] }' -h 'content-type: text/plain;' http://127.0.0.1:9998/
Я ввожу (реальные адреса кошелька заменены в примере ниже):
sendmany "mywallet" {"receiver_address_1":0.11159446,"receiver_address_2":0.05112226,"receiver_addres_3":0.03432049}
и это не работает.
Результат, который я получаю:
error -1: json value is not an object as expected
Как мне использовать эту функцию, чтобы она работала?