OmniLayer / omnicore

OmniCore staging tree
http://www.omnilayer.org/
MIT License
758 stars 230 forks source link

how to inject multiple OP_RETURN outputs in one transaction #615

Open wupeaking opened 6 years ago

wupeaking commented 6 years ago

In a bitcoin's transaction, Whether it can contain more than one OP_RETURN, it is beneficial to generate multiple omni transactions in one transaction. I think it can improve transaction efficiency. @dexX7

dexX7 commented 6 years ago

Hi @wupeaking,

you can manually add multiple OP_RETRURN outputs with the raw transaction RPC omni_createrawtx_opreturn (see a walkthrough with example here).

But: these transactions won't be relayed or mined by other peers, because only on OP_RETURN per transaction is considered "standard" by the rest of the network.

patrickdugan commented 6 years ago

Dexx has a Send to Many tx in the roadmap, we're all looking forward to being able to use that.

The design there, is to insert payload referring to more outputs in the same OP_Return.

dexX7 commented 6 years ago

This is correct. There are a few ideas to add this to Omni Layer.

One idea is documented here: https://gist.github.com/dexX7/ba45d52d8edd084357253d93360e1519

WilliamXie9 commented 5 years ago

This is correct. There are a few ideas to add this to Omni Layer.

One idea is documented here: https://gist.github.com/dexX7/ba45d52d8edd084357253d93360e1519

How to create a transaction by this way? can it specify recipients address?