Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added mk_opreturn #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

added mk_opreturn #94

wants to merge 1 commit into from

Conversation

wizardofozzie
Copy link
Contributor

mk_opreturn function returns script or inserts script into rawtx
See my fork: https://github.com/wizardofozzie/pybitcointools/

mk_opreturn function returns script or inserts script into rawtx
@reiven
Copy link
Contributor

reiven commented Jun 12, 2015

+1

@@ -480,3 +481,30 @@ def mksend(*args):
outputs2 += [{"address": change, "value": isum-osum-fee}]

return mktx(ins, outputs2)

def mk_opreturn(msg, rawtx=None, json=0):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the json parameter actually needs to be renamed jsonfmt, since return orhex if not json else orjson will never return orhex (since json is the name of the module)

@i3visio
Copy link

i3visio commented Dec 12, 2016

Any thought on officially merging this @vbuterin? I feel that this is useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants