Send raw transaction (have tx_hex) on litecoin testnet using api or module

Send raw transaction (have tx_hex) on litecoin testnet using api or module

I have raw data (tx_hex) for raw transaction, but i cant send it to litecoin tesnet using post request to testnet.litecore.api. If i insert tx_hex manually in the browser, the transaction is correctly sent. My code: request({ url: 'https://ift.tt/2sd8Tdz', method: 'POST', data: test_tx }, ((error, response, body) => { if(error) { console.log(error); } else { console.log(body); } }));

I also tryied to use another service, but it's failing too.

Code :

postdata = { tx_hex : test_tx }; request.post('https://ift.tt/2IKEBKB', postdata, function optionalCallback(err, httpResponse, body) { if (err) { return console.error('upload failed:', err); } console.log('Upload successful! Server responded with:', body); });

Someone offers?

https://ift.tt/2sd3B1F

Comments

Popular posts from this blog

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password

When downloading the blockchain my application is become unusable, is there an issue with my code or am I using the BitcoinJ library incorrectly?

Mistakenly sent BTC from my personal wallet back to one of the exchange wallet addresses that I had received BTC from before - help recovering!