Skip to content

Create a generalized rpc command for creating a transaction #10332

@RHavar

Description

@RHavar

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 (from createcrawtransaction) with the difference that if you leave sequence undefined it uses normal core sequence number picking, instead of 0

  • amounts from sendmany 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 of subtractfeefromamount 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions