Bitcoin Forum
July 09, 2024, 01:13:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to use [ sendmany ] [ sendfrom ] command?  (Read 177 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
May 02, 2018, 12:58:09 AM
 #1

This wiki says,
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

[sendmany] , [sendfrom] command requires specific [ fromaccount ] variable?

Then, when bitcoin daemon installed, there is no default account? maybe.

Then, I need to set account (something like "admin") to some address first?

For use [sendmany] command.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4681



View Profile
May 02, 2018, 01:58:27 AM
 #2

I believe the "account" system is deprecated in Bitcoin Core.

If you want accounts, you should implement them yourself in your own external system.  The functionality of the Bitcoin Core accounting system is limited in scope, and most people make bad assumptions about how it works.

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
May 02, 2018, 02:10:33 AM
 #3

I believe the "account" system is deprecated in Bitcoin Core.

If you want accounts, you should implement them yourself in your own external system.  The functionality of the Bitcoin Core accounting system is limited in scope, and most people make bad assumptions about how it works.



So sendfrom and sendmany requires account? So this deprecated reason is there is no need to maintain account? Then just use these commands like sendfrom "" (blank space of account variable) is ok?

bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
May 02, 2018, 06:03:56 PM
 #4

So sendfrom and sendmany requires account?

From the RPC Help:

Code:
Arguments:
1. "fromaccount"       (string, required)

So.. yes.



So this deprecated reason is there is no need to maintain account?

You don't have to use 'accounts' in core.
sendfrom is deprecated. It is recommended to use sendtoaddress:
Code:
sendtoaddress "address" amount



Then just use these commands like sendfrom "" (blank space of account variable) is ok?

From the RPC Help:


Code:

1. "fromaccount"       ...May be the default account using "".

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!