Bitcoin Forum
June 17, 2024, 09:04:05 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: [testnet]got error: 256: absurdly-high-fee. Code:-26 on: August 31, 2017, 06:55:18 AM
Thanks for your answer.
Now I set change address and it worked.
2  Bitcoin / Bitcoin Technical Support / [testnet]got error: 256: absurdly-high-fee. Code:-26 on: August 31, 2017, 01:46:32 AM
Hi,

I made test address and private key and try to sent transaction on test net, but it shows error "absurdly-high-fee. Code:-26".

Sample code:
var a_key     = "cMoF2UjVmL1gUYBVMbY6YcBaTmApiU5Lqt5SnsWmZdwfngGyh3Hy"
var b_address = "muBfaVAj6JNzouYznzrXAErtFdezErui3V"

var tx = new bitcoin.TransactionBuilder(testnet)
var txId = '2d4b63d602f2c10394f1ea3ab294bfea54eb8c97e729156bbd568ddd6c2a4f06'
tx.addInput(txId, 0)
tx.addOutput(b_address, 1)

var privateKeyWIF = a_key
var keyPair = bitcoin.ECPair.fromWIF(privateKeyWIF,testnet)
tx.sign(0, keyPair)

console.log(tx.build().toHex())

Transaction:
0100000001064f2a6cdd8d56bd6b1529e7978ceb54eabf94b23aeaf19403c1f202d6634b2d00000 0006a473044022078626375cd3c69d9044e650954f42c60c31f2b173026e031c9baa5b16173e8a1 02201b49b7dda678ed9b6f6ff3f4e34ea64a8f7e3852eb5dfd373baae51df8658938012103887c5 a740b7ac673791553c0fa9ccd4f30d01745c6c8c8547419d1ce0d15af36ffffffff010100000000 0000001976a91495ebe73faf808abafd5775717f99da37f14b4c2388ac00000000

Broadcast on testnet
I tried on followings but all of those respond error(fee is too high).

https://live.blockcypher.com/btc-testnet/pushtx/
https://testnet.blockexplorer.com/tx/send
https://blockr.io/tx/push

Does someone have any idea to fix this issue?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!