<p>It is definitively possible, provided every paying wallet sign the transaction. To do this with <code>cardano-cli</code>, you have to build the raw transaction as usual, involving the use of different UtxO coming from different wallets.</p>
<p><code>cardano-cli transaction build ... -&gt; tx.raw</code></p>
<p>Then, every involved wallet has to sign separately. For this you have to use</p>
<p><code>cardano-cli transaction witness --tx-body-file tx.raw ... -&gt; tx.wit_x</code></p>
<p>And finally you have to collect all individually signed <code>tx.wit_x</code> parts and assemble them into a single transaction</p>
<p><code>cardano-cli transaction assemble --witness-file tx.wit_0 --witness-file tx.wit_1 ...</code></p>

CC BY-SA 4.0
2022-02-23T07:54:36.450Z
Thanks.
Interesting, if I told you I really want to use smart contract with PAB and Nami would you say it is a dead end (at least for now)?
Ben Wolf
CC BY-SA 4.0
2022-02-24T10:26:09.043Z
I never tried to go for multi-sig with Nami (or ccvault, or others), so I'm not completely sure. However, the CIP 30 that defines the standard API to interface with them (https://cips.cardano.org/cips/cip30/) seems to allow that thanks to partial signature. The difficult part will then to setup the required protocol to collect all the partials and to reassemble them into a single final transaction. You will need to use the cardano serialization lib for that purpose. So, definitively not a dead end.
Jean-Sébastien Gonsette
CC BY-SA 4.0
2022-02-23T07:02:12.777Z
2022-02-23T07:02:12.777Z
Jean-Sébastien Gonsette
<p>When using smart contract and creating transaction, current wallet/user pays for fees.
Example of transaction:</p>
<ul>
<li>burn NFT</li>
<li>min NFT</li>
<li>burn native assets</li>
</ul>
<p>In my situation, my customers have their own wallet (nami #whatever) but is there any chance I can use a company wallet to pay fees instead of them?</p>
<p>Naive idea:</p>
<ul>
<li>customers should have some ADA: unfortunately I cannot go forward with it</li>
<li>granting customers some ADA will allow them to spend them on something else!~</li>
</ul>
<p>Basically I would have love the idea to have several wallet involve in a single transaction (multisig) but I do not find any relevant solution.</p>
<p>Maybe a different pattern should be think of?</p>
<p>Thanks.</p>

<smart-contract>
Smart contract fees paid from another wallet
# Smart contract fees paid from another wallet

(Asked by: username_0 on 2022-02-22)

When using smart contract and creating transaction, current wallet/user pays for fees.
Example of transaction:

* burn NFT
* min NFT
* burn native assets

In my situation, my customers have their own wallet (nami #whatever) but is there any chance I can use a company wallet to pay fees instead of them?

Naive idea:

* customers should have some ADA: unfortunately I cannot go forward with it
* granting customers some ADA will allow them to spend them on something else!~

Basically I would have love the idea to have several wallet involve in a single transaction (multisig) but I do not find any relevant solution.

Maybe a different pattern should be think of?

Thanks.

**Tags:** smart-contract

---

## 1 answers

### Answer by username_1 on 2022-02-23. Score: 0 | Accepted answer

It is definitively possible, provided every paying wallet sign the transaction. To do this with `cardano-cli`, you have to build the raw transaction as usual, involving the use of different UtxO coming from different wallets.

`cardano-cli transaction build ... -> tx.raw`

Then, every involved wallet has to sign separately. For this you have to use

`cardano-cli transaction witness --tx-body-file tx.raw ... -> tx.wit_x`

And finally you have to collect all individually signed `tx.wit_x` parts and assemble them into a single transaction

`cardano-cli transaction assemble --witness-file tx.wit_0 --witness-file tx.wit_1 ...`

> **Comments:**
> **username_0**: Thanks. Interesting, if I told you I really want to use smart contract with PAB and Nami would you say it is a dead end (at least for now)?  
> **username_1**: I never tried to go for multi-sig with Nami (or ccvault, or others), so I'm not completely sure. However, the CIP 30 that defines the standard API to interface with them (https://cips.cardano.org/cips/cip30/) seems to allow that thanks to partial signature. The difficult part will then to setup the required protocol to collect all the partials and to reassemble them into a single final transaction. You will need to use the cardano serialization lib for that purpose. So, definitively not a dead end.  

---

