Denys Leshchenko

Results comments of Denys Leshchenko

I'm actually trying to do it too, but receiving problem: ``` { btcAddress: 'bc1q5fqwlf88dtu9qa2jkvwhjr94k07cerfau3mh9s', nftAddress: 'bc1p7n462ru9wtfgclwedfgp0eqe6w40pjwt7wvkxgdmzue2y6ptdkvsuzzmu2', sign: '6b96d3f0165b11b448163825f67a894e8cb1e2fcaa44f203ce6f704c77c84c1c3b73735840b75c25b9d8b11c1448785c5f10f0d5a746f0482b95a4d2fc9f94d3' } { code: -1, msg: 'Signature.fromCompact: Expected 64-byte hex', data: null }...

> > I'm actually trying to do it too, but receiving problem: > > ``` > > { > > btcAddress: 'bc1q5fqwlf88dtu9qa2jkvwhjr94k07cerfau3mh9s', > > nftAddress: 'bc1p7n462ru9wtfgclwedfgp0eqe6w40pjwt7wvkxgdmzue2y6ptdkvsuzzmu2', > > sign: '6b96d3f0165b11b448163825f67a894e8cb1e2fcaa44f203ce6f704c77c84c1c3b73735840b75c25b9d8b11c1448785c5f10f0d5a746f0482b95a4d2fc9f94d3'...

> Thank you! So that's the endpoint I am looking for! How are you producing the signature? ``` const keyPair = ECPair.fromWIF(wif); const { address: btcAddress } = bitcoin.payments.p2wpkh({ pubkey:...

> Based on the docs you should be signing by the ordinals address (p2tr), not by the payment address. Anyway I am trying to do that but also getting the...

> > Could you share the code? > > Here it is, just be sure to get the version 6.1.6 of the bitcoinjs-lib (7 doesn't work well for me for...

> I am also wondering why this binding procedure is even required (especially when used over the API), to me seems like just a UX hurdle. Maybe @cloud6605 could help,...

@SOME-1HING Did you resolve this? Or maybe find out some other service which is working good ?

Trying to do this way: ```TypeScript import { ECPairFactory, ECPairInterface } from "ecpair"; import { initEccLib, networks, payments, Psbt, Transaction, address, script, opcodes, crypto, Network, } from "bitcoinjs-lib"; import *...