forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 227
Is it possible to pay transaction fees from a different source?
dexX7 edited this page Oct 26, 2018
·
6 revisions
Yes.
The token sender is determined based on the first transaction input, while other arbitrary inputs can be added to a transaction.
This allows to craft transactions, which use an input to tag the token source, but other inputs to pay for transaction fees. The token sender likely has a tiny fraction of bitcoins anyway, because he or she received the tokens in the past.
It is possible to use the raw transaction API of Omni Core to craft such a transaction manually. As general guide, see the following tutorial:
To create, sign and broadcast funded transactions, in a similar fashion like omni_send
, there are two RPCs:
Please also see this introductional post about transaction funding: