<p>Just call <code>to</code> multiple times:</p>

<pre><code>            .from(txoSet)
            .to( userAddress, amountTotransfer)
            .to( userAddress2, amountTotransfer2)
            .fee(10000)
</code></pre>

CC BY-SA 4.0
2020-05-10T13:07:14.540Z
2020-05-10T13:07:14.540Z
MCCCS
<p>currently i m using below code,how to add multiple address to address.</p>

<pre><code>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);
                })
</code></pre>

CC BY-SA 4.0
2020-04-11T15:06:51.337Z
any one please guide
indrajit
<raw-transaction><bitcore><javascript>
how to sign a multiple output transaction
indrajit
# how to sign a multiple output transaction

(Asked by: username_0 on 2020-04-09)

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);
                })

**Tags:** raw-transaction, bitcore, javascript

> **Comments:**
> **username_0**: any one please guide  

---

## 1 answers

### Answer by username_1 on 2020-05-10. Score: 0 | Accepted answer

Just call to multiple times:
            .from(txoSet)
            .to( userAddress, amountTotransfer)
            .to( userAddress2, amountTotransfer2)
            .fee(10000)


---

