As a developer, I need to understand how to create a raw transaction that sends bitcoins to multiple recipients. Specifically, I want to find out what RPC command is used to add multiple outputs to a raw transaction and what parameters it requires. Also, what is the next step after creating the raw transaction with multiple outputs?
Navigate to 'bitcoin.org' Go to the 'Developer Guides' section. Navigate to 'Examples' and then 'Transactions'. Scroll down to the 'Simple Raw Transaction' section or any section detailing raw transaction creation. Locate the RPC command used for adding multiple outputs to a raw transaction. Identify the parameters required for this RPC command. Determine the next step after creating the raw transaction with multiple outputs.
Identify 'createrawtransaction' as the RPC command for creating a raw transaction. Identify 'fundrawtransaction' or 'signrawtransactionwithkey' as the RPC command for adding multiple outputs or signing the transaction. State that the 'createrawtransaction' command requires an array of transaction inputs and an object of outputs (address-amount pairs). State that after creating the raw transaction, the next step is typically to sign it using 'signrawtransactionwithkey' or 'signrawtransactionwithwallet', and then broadcast it using 'sendrawtransaction'.