Posts

Showing posts with the label Having issues broadcasting BitcoinJS transaction.

Having issues broadcasting BitcoinJS transaction.

Having issues broadcasting BitcoinJS transaction. I'm trying to send testnet with bitcoinjs, but when I go to broadcast the hex, it gives me an error code that says "fee is too high: 12372928". Now, from my understanding, the fee is the input - output. However, even if I increase the output to match the wallet's balance, I get the same exact error message. Here's my code: this.setState({ address: 'mphWVWbPgGKuaMpSpGNA3Ffrpva5cRChqP', privateKey: 'cW6dLEqkk2HAbQTSJaHnn4w3kd2iJfhBREccEE3vzrq8kcVE5TqS', }); } createTransaction = (e) => { e.preventDefault() const {address, privateKey} = this.state; var hashURL = `http://ift.tt/2kTpcMQ}` axios.get(hashURL).then((response) => { this.setState({ hash: response.data.txrefs[0].tx_hash }) }).then((result) => { var tx = new bitcoin.TransactionBuilder(testnet); var tx...