You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to get transaction hex to send bitcoins from native segwit address to legacy , nested segwit and native segwit address but when i try to send bitcoin from native segwit to taproot address I am not able to add the outputs.
Here I am trying to add output for taproot address but it throws " No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance " error .
You need to import an ecc library that is compatible with bitcoinjs-lib, and call initEccLib (which is at the root of this library) to load in an ecc library to calculate the address correctly.
If you can't use WASM in your project, then other people have suggested alternative implementations. #1781 (comment)
I am able to get transaction hex to send bitcoins from native segwit address to legacy , nested segwit and native segwit address but when i try to send bitcoin from native segwit to taproot address I am not able to add the outputs.
Here I am trying to add output for taproot address but it throws " No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance " error .
psbt.addOutput({
address: tb1p.......,
value: amount
});
The text was updated successfully, but these errors were encountered: