# signMultipleTransactions

{% hint style="info" %}
This is an Xverse custom method. It can only be invoked for users using the [Xverse wallet](https://www.xverse.app/).
{% endhint %}

```typescript
import { signMultipleTransactions } from 'sats-connect'
```

To request signing of multiple PSBTs, you can use the `signMultipleTransactions` function.

<table><thead><tr><th width="166">psbt</th><th>Description</th></tr></thead><tbody><tr><td>psbtBase64</td><td>a valid <code>psbt</code> encoded in <code>base64</code></td></tr><tr><td>inputsToSign</td><td>an array of objects describing the address and index of input to sign</td></tr></tbody></table>

```typescript
import { signMultipleTransactions } from 'sats-connect'

const psbtsBase64 = [...,...,...]

await signMultipleTransactions({
      payload: {
        network: {
          type: network,
        },
        message: "Sign Transaction",
        psbts: [
          {
            psbtBase64: psbtsBase64[0],
            inputsToSign: [
              {
                address: paymentAddress,
                signingIndexes: [0],
                sigHash: btc.SignatureHash.SINGLE | btc.SignatureHash.ANYONECANPAY,
              },
              {
                address: ordinalsAddress,
                signingIndexes: [1],
                sigHash: btc.SignatureHash.SINGLE | btc.SignatureHash.ANYONECANPAY,
              },
            ],
          },
          {
            psbtBase64: psbtsBase64[1],
            inputsToSign: [
              {
                address: paymentAddress,
                signingIndexes: [0],
                sigHash: btc.SignatureHash.SINGLE | btc.SignatureHash.ANYONECANPAY,
              },
              {
                address: ordinalsAddress,
                signingIndexes: [1],
                sigHash: btc.SignatureHash.SINGLE | btc.SignatureHash.ANYONECANPAY,
              },
            ],
          }
        ]
      },
      onFinish: (response) => {
        console.log('Bulk tx signing response:', response);
      },
      onCancel: () => alert("Canceled"),
    });
  };
```
