# API question: pay for token send from another address

**URL:** <https://forums.counterparty.io/t/api-question-pay-for-token-send-from-another-address/1055>\
**Category:** Development\
**Created:** [April 14, 2015, 1:14pm UTC](https://forums.counterparty.io/t/api-question-pay-for-token-send-from-another-address/1055 "2015-04-14T13:14:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [April 14, 2015, 1:14pm UTC](https://forums.counterparty.io/t/api-question-pay-for-token-send-from-another-address/1055/1 "2015-04-14T13:14:45Z")

</div>

Is there an example of how to pay transaction fee using BTC from address A in order to send an asset from address B?

---

<div class="post-metadata">

**Author:** ![loon3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/loon3/32/1018_2.png) [@loon3](https://forums.counterparty.io/u/loon3)\
**Post date:** [April 14, 2015, 1:39pm UTC](https://forums.counterparty.io/t/api-question-pay-for-token-send-from-another-address/1055/2 "2015-04-14T13:39:06Z")

</div>

Is this even possible?

Can you send UTXOs from multiple addresses in the same transaction?

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [April 14, 2015, 2:12pm UTC](https://forums.counterparty.io/t/api-question-pay-for-token-send-from-another-address/1055/3 "2015-04-14T14:12:58Z")

</div>

It doesn’t seem to be possible, but I got that question (probably inspired by Bitcoin-Qt’s approach) and I’m wondering if someone knows for sure.

I just googled a bit to see if there’s anything that might make that possible and I’m not sure if [https://en.bitcoin.it/wiki/OP\_CHECKSIG#Procedure\_for\_Hashtype\_SIGHASH\_ANYONECANPAY](https://en.bitcoin.it/wiki/OP_CHECKSIG#Procedure_for_Hashtype_SIGHASH_ANYONECANPAY) is related.

---

<div class="post-metadata">

**Author:** ![deweller](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/deweller/32/44_2.png) [@deweller](https://forums.counterparty.io/u/deweller)\
**Post date:** [April 15, 2015, 4:18pm UTC](https://forums.counterparty.io/t/api-question-pay-for-token-send-from-another-address/1055/4 "2015-04-15T16:18:11Z")

</div>

No.

There is code that recognizes a transaction built with utxos from multiple addresses. But the current version of counterpartyd will ignore any transaction that spends transactions from more than one address.

> <https://github.com/CounterpartyXCP/counterparty-lib/blob/master/counterpartylib/lib/blocks.py>

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [April 17, 2015, 1:59pm UTC](https://forums.counterparty.io/t/api-question-pay-for-token-send-from-another-address/1055/5 "2015-04-17T13:59:36Z")

</div>

I kind of remembered I saw this question asked before, but couldn’t remember where.  
Here it is:

> <https://github.com/CounterpartyXCP/counterparty-lib/issues/649>
>
> At the moment the bitcoin transaction fees have to come from the "source" address unspent outputs.
> Are there plans to allow payment...
