secretkeylabs / sats-connect-example

38 stars 28 forks source link

Support script outputs #6

Closed Imamah-Zafar closed 12 months ago

abhishek-Kumar009 commented 1 year ago

Hey guys I tried to send OP_RETURN memo using this code

tx.addOutput({
      script: btc.Script.encode([
        'RETURN',
        new TextEncoder().encode('abc')
      ]),
      amount: 0n
    })

but as I send this to xverse wallet it gives transaction error can you tell me how to form OP_RETRUN output pls?

vivinvinh212 commented 1 year ago

image do anyone have this issue when trying out the code?

abhishek-Kumar009 commented 1 year ago

Yes i'm getting this errro when trying to attatch a OP_RETURN Output Normal sending of funds are working fine though

On Thu, 3 Aug 2023 at 9:11 AM, vivinvinh212 @.***> wrote:

[image: image] https://user-images.githubusercontent.com/83176944/257993996-72d99e5c-4282-40c6-9090-d5e2cc97bcf9.png do anyone have this issue when trying out the code?

— Reply to this email directly, view it on GitHub https://github.com/secretkeylabs/sats-connect-example/pull/6#issuecomment-1663246640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJO6AILNBILBP6STJAWS5S3XTMMYPANCNFSM6AAAAAA22OB2SM . You are receiving this because you commented.Message ID: @.***>