input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.76k stars 632 forks source link

[Wallet API] Sending ADA to multiple accounts (batchSend) under same transaction hash ? #2668

Closed darxtrix closed 6 years ago

darxtrix commented 6 years ago

Hi,

Check the following transaction from cardano explorer https://cardanoexplorer.com/tx/1d7041f5557730911c69d2b4cabf9972a476b0e29898deb50410f2732eb5b8d4

we can see that we are sending to two different addresses some amount. But i can't see a way to send ADA to different accounts under the same transaction hash I am referring these wallet specs https://cardanodocs.com/technical/wallet/api/#/

Only this method is there, POST /api/txs/payments/{from}/{to}/{amount} which shows only one transaction can be submitted at a time ?

Is this will do ? POST /api/txs/payments/{address}/{transaction}

darxtrix commented 6 years ago

Got the docs

https://github.com/input-output-hk/cardano-sl/blob/867d3699db6e6bc3ea8ced20367f3e032a1e9cfb/wallet-new/spec/swagger.json#L1461

https://github.com/input-output-hk/cardano-sl/pull/2272