Will the primary occasion bear all of the charges since they’re offering the enter funds,
Sure, since they’re the one one offering enter funds.
or is there a option to distribute this between the events?
There isn’t a means for somebody who is just not offering funds to pay transaction charges within the transaction.
Observe additionally that the Bitcoin community doesn’t have any idea of which inputs contribute charges.
I simply need to consumer pay funds and different occasion (non consumer) add wanted struct and in addition I would like consumer to not do tx (dont pay charges).
There isn’t a mounted relationship between occasion that transmits (“does”) the finished transaction and the occasion or events that present the inputs to the transaction. Whoever submits the finished transactions to the community needn’t be a supplier of inputs or perhaps a signatory. Persons are not charged a price for transmitting a brand new unconfirmed transaction, the members offering funds organize that sum(inputs) > sum(outputs), that’s all.
From be taught.saylor.org:
As I perceive it†, sighash_single (for instance) means your “consumer” can present in your “non-user” so as to add an additional output with out your “non-user” having to offer any inputs. The second output might include a small quantity of embedded information. The financial quantity of the second output would come from sum(blue inputs) – sum(blue outputs) and go away some because the tx price. Observe additionally Transaction outputs with worth 0
† I do not use this, so caveat emptor.