bitcoinjs-lib
bitcoinjs-lib copied to clipboard
A javascript Bitcoin library for node.js and browsers.
Hey, guys! How is it going? Hope you are doing well :) I'm making a monitoring server for deposits in different chains and I encountered that in EVM chains is...
Hi I use this code to send dogecoin: ``` ('sendrawtransaction', [ psbt.extractTransaction().toHex(), true, ]); ``` And i get this result: `6dcdfb42022c829eca72a61267b1bae8621bcc2922201ab347bef66675aa0aa3` but this TX not found on blockchain I change...
const seed = await bip39.mnemonicToSeed(mnemonic) const root = bip32.fromSeed(seed); const path = "m/44'/0'/0'/0/0" const child = root.derivePath(path) const bean = await payments.p2pkh({pubkey: child.publicKey}) The address generated in the vue project...
``` const expectedAddress = "tb1p2kclfdlyf35z2cz6r05ptx45utsypyjxzmj4ftm0tr2xq55yd47qtnh4j5"; bitcoin.initEccLib(ecc); const bip32 = BIP32Factory(ecc); // Your network (testnet in this case) const network = bitcoin.networks.testnet; const blockStreamApi = "https://blockstream.info/testnet/api"; // Load your private key...
The motivation for doing this is to simplify the PSBT code and put together the more closely related logic through the split mode to facilitate subsequent maintenance and splitting. Mentioned...
Fixes #1800 This will lower the noise especially for long running parsing processes.
fix some typos
Happens when `decompile` returns a null object, then `toASM` tries to `map`. https://github.com/bitcoinjs/bitcoinjs-lib/blob/6396fb488df79dd7cb27eb1b5f9fb56318055ff5/src/script.js#L158-L162 Do I have to check myself (in my code) if `decompile` returns a null before calling `toASM`?.
Optimize script.decomplie return type to Stack 1. avoid type error. for example: null.map https://github.com/bitcoinjs/bitcoinjs-lib/issues/2096 2. avoid unnecessary type assertion 3. simplify the judgment of returned results