You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently playing with the commands and there appears to be no way to send an asset in a transaction to multiple addresses using a standard command.
Using rvn (or the base network asset) we can use sendmany to send RVN to multiple addresses easily in a single command as below.
I would like to propose adding a similar command perhaps transfermany to transfer many assets rather than doing it one at a time in a transaction. I'm thinking that this makes sense to restrict the command to only the same asset type for clarity but raising it here to get your thoughts and comments.
I have not use the accounts system in the wallet as it is noted as deprecated etc and this may be why people are creating raw transactions for assets as well rather than using deprecated commands.
Open to suggestions and ideas. Below is the info on the current sendmany command.
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 raven address is the key, the numeric amount (can be string) in RVN is the value
,...
}
3. minconf (numeric, optional, default=1) Only use the balance confirmed at least this many times.
4. "comment" (string, optional) A comment
5. subtractfeefrom (array, optional) A json array with addresses.
The fee will be equally deducted from the amount of each selected address.
Those recipients will receive less ravens 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
,...
]
6. conf_target (numeric, optional) Confirmation target (in blocks)
7. "estimate_mode" (string, optional, default=UNSET) The fee estimate mode, must be one of:
"UNSET"
"ECONOMICAL"
"CONSERVATIVE"
Result:
"txid" (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:
> raven-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}"
Send two amounts to two different addresses setting the confirmation and comment:
> raven-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 6 "testing"
Send two amounts to two different addresses, subtract fee from amount:
> raven-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 1 "" "[\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\",\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\"]"
As a json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
The text was updated successfully, but these errors were encountered:
There technically is a transfer many using the dividend feature but this is a great suggestion for those of us that are constantly transferring assets.
Currently playing with the commands and there appears to be no way to send an asset in a transaction to multiple addresses using a standard command.
Using rvn (or the base network asset) we can use sendmany to send RVN to multiple addresses easily in a single command as below.
I would like to propose adding a similar command perhaps
transfermany
to transfer many assets rather than doing it one at a time in a transaction. I'm thinking that this makes sense to restrict the command to only the same asset type for clarity but raising it here to get your thoughts and comments.I have not use the accounts system in the wallet as it is noted as deprecated etc and this may be why people are creating raw transactions for assets as well rather than using deprecated commands.
Open to suggestions and ideas. Below is the info on the current
sendmany
command.The text was updated successfully, but these errors were encountered: