Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
2

I resolved this. Here is the functional command: client.command('scantxoutset', 'start' ['addr(mfe87Qheq7SSveCDedyDUBEjMD9tgzRiU7)']) <!-- Address is valid. This address: '34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo' is invalid The issue is that the address was invalid. Using a valid address, I can ensure that this works.


1

It is not possible to verify just a single transaction, without knowing the state of the network. To know the state of the network, you must verify all of it's historical transactions (aka, run a full node). So this means it is not possible to just take a single transaction alone, and verify it using some bit of code. Rather, you will need the entire ...


1

You are trying to use a mainnet encoded address on testnet. That is not valid. You need to use a testnet encoded address. The testnet form of the address you are trying to use is 2MvX28fMpoipKxqaxo6pN1CH4QjB5t9qpr8.


1

Update: Oops sorry I read "public key". A private key can be converted to a public key that is either compressed on uncompressed, but raw EC private keys are always 32 bytes. That website appears to be generating what is called Wallet Input Format (WIF) which is used to transfer private keys between software applications. To convert to hex: decode using ...


1

You could try using eccrypto index.js: var crypto = require("crypto"); var eccrypto = require("eccrypto"); // A new random 32-byte private key. var privateKey = Buffer.from('2fd7cab0970c692b4151d77a6aeebcae2a3284556cbfc6f182c571eccfc2424f', 'hex') // Corresponding uncompressed (65-byte) public key. var publicKey = eccrypto.getPublic(privateKey); var buf =...


1

You also need to acquire the UTXO's which are spendable by your private key. The private key in WIF private key format provides the information required to derive the pubkeyhash found in P2PKH(pubkeyhash) and P2WPKH(pubkeyhash) output scripts spendable by the private key. Deriving the pubkeyhash, or even address, can be done with BitcoinJS on the front-end....


1

In most cases you should use the unconfirmedBalanceNQT. Think about it as spendable balance i.e. your total balance minus coins/asset shares/currency units locked for various reasons such unfulfilled coin exchange orders.


1

I wrote a tiny module to do just this: https://github.com/lukechilds/build-output-script It can be used like so: const buildOutputScript = require('build-output-script'); buildOutputScript([{address: '1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj', value: 100000000}]); // '0100e1f505000000001976a914da6473ed373e08f46dd8003fca7ba72fbe9c555e88ac' You can pass in ...


Only top voted, non community-wiki answers of a minimum length are eligible