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

When adding a memo to create an OP_RETURN transaction using the latest version of the UniSat wallet, a problem occurs. #167

Closed
ferrarif1 opened this issue Mar 21, 2024 · 2 comments

Comments

@ferrarif1
Copy link

I want to know how to correctly create an OP_RETURN transaction using UniSat. When I add a memo in the unisat.sendBitcoin method, the data I input is treated as a string. The Rune protocol requires a format like "OP_RETURN 52 0001fe406f4001 ffdbf3de59dbf3de5912", where 52, 0001fe406f4001, and ffdbf3de59dbf3de5912 should each be parsed as separate parts, similar to the transaction example here: mempool.space testnet transaction.
image

However, currently, when I input data like "52 0001fe406f4001 ffdbf3de59dbf3de5912", the transaction generated does not separate these data into three parts, as seen in this transaction: mempool.space testnet transaction. Is there a way to add a method that allows users to directly add the OP_RETURN part encoded by the bscript.compile method into the transaction, for example, "6a0952554e455f544553540900a9cfd6ff1b866800"?
image

@GGG888GGG
Copy link
Collaborator

Please send your question to contact@unisat.io for developer service. @ferrarif1

@ferrarif1
Copy link
Author

Please send your question to contact@unisat.io for developer service. @ferrarif1

ok

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

No branches or pull requests

2 participants