multiple transactions in one transaction? transection

+1 vote
hi , i am implementing  multiple  transactions in a  single   transaction which should  contains like send from Alice account to Bob , then Bob send some amount Tom . i there any method to make transaction between address?????
related to an answer for: Creating raw transactions
asked Feb 8, 2019 by hamaad

1 Answer

+1 vote

If the amount Bob is sending to Tom is coming from Alice, then you can't do this in a single transaction.

Otherwise, you can build the transaction using createrawtransaction / appendrawtransaction by each involved user, using preparelockunspentfrom to prepare the input to be used in the raw transaction. Then once the transaction is complete, pass it to each user again for signing using signrawtransaction and then any user can broadcast it with sendrawtransaction.

answered Feb 11, 2019 by MultiChain
...