-
Notifications
You must be signed in to change notification settings - Fork 38.1k
Description
There's some pretty severe limitations with all the current rpc APIs to send a transaction, so I think it might make sense to create a more generalized API that subsumes them (createrawtransaction, fundrawtransaction, sendmany)
Arguments it should have:
-
transactions
(fromcreatecrawtransaction
) with the difference that if you leavesequence
undefined it uses normal core sequence number picking, instead of 0 -
amounts
fromsendmany
but not an object, but an array of outputs (the current object makes it very annoying to implement batched withdrawal logic when multiple payments are to the same address), along with the addition ofsubtractfeefromamount
as an option in the object -
The options from
fundrawtransaction
, along with the additional ability to pick to broadcast the transaction or not.
And the return should contain the full transaction, txid, fees paid, and location of the change.