0

currently i m using below code,how to add multiple address to address.

let transaction = new bitcore.Transaction()
            transaction
                .from(txoSet)
                .to( userAddress, amountTotransfer)
                .fee(10000)
                .change(changeAddress)
                .sign(BTCkey)
            var sendTx = script.broadcastTransaction(transaction.serialize())
            sendTx.then(async function (tx) {
                console.log('tx', tx);
                })
  • any one please guide – indrajit Apr 11 at 15:06
0

Just call to multiple times:

            .from(txoSet)
            .to( userAddress, amountTotransfer)
            .to( userAddress2, amountTotransfer2)
            .fee(10000)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.