bitcore
bitcore copied to clipboard
A full stack for bitcoin and blockchain-based applications
## Description - This PR adds `RSK` integration into `bitcore` infrastructure - I did not make a copy of the ethereum implementation - **Used a better approach to extend and...
https://github.com/bitpay/bitcore/blob/e478af880b11990d9b402e246c9c920a24404d8b/packages/bitcore-node/src/modules/ethereum/api/csp.ts#L252 On this line we're getting web3 transfer events, but that won't work for really large block ranges, it'll time out. We have a transform stream that can generate the...
``` const tx = new bitcore.Transaction() .from(inputs) .to(recieverAddress, satoshiToSend) // In satoshis .fee(bitcore.Unit.fromBTC(fee).toSatoshis() * 20) // In satoshis .change(address) // Return the change to the same address .addData() // Add...
Trying to send from an old wallet but getting this. I literally have any idea how to make this happen can anyone pls help. Reward bitcore.ErrorTransactionMissingSignatures: Some inputs have not...
``` ₿ gulp browser [19:19:38] Using gulpfile ~/development/crypto/bitcore/packages/bitcore-lib/gulpfile.js fs.js:43 } = primordials; ^ ReferenceError: primordials is not defined at fs.js:43:5 at req_ (/home/isghe/development/crypto/bitcore/packages/bitcore-lib/node_modules/natives/index.js:143:24) at Object.req [as require] (/home/isghe/development/crypto/bitcore/packages/bitcore-lib/node_modules/natives/index.js:55:10) at Object....
I try to convert a pubkey to a taproot type address using codes like below: pubkey.toAddress(undefined, 'taproot').toString() And I got an error saying: xxx/node_modules/bitcore-lib/lib/address.js:293 info.hashBuffer = Hash.sha256ripemd160(Script.buildWitnessV1Out(pubkey).toBuffer()); ^ TypeError: Script.buildWitnessV1Out...
Just wanted to see what it'd take to be able to derive the SOL address from what is already in this lib I ref'd this blog post for an example...
my code import bitcoin from 'bitcoinjs-lib'; const TESTNET = bitcoin.networks.testnet; const privateKeyWIF = '...'; const keyPair = bitcoin.ECPair.fromWIF(privateKeyWIF, TESTNET);