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://testnet.litecore.io/tx/send',
    method: 'POST',
    data: test_tx
}, ((error, response, body) =&gt; {
    if(error) {
        console.log(error);
    } else {
        console.log(body);
    }
}));


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

Code :

postdata = { tx_hex : test_tx };
request.post('https://chain.so/api/v2/send_tx/LTCTEST', postdata, function 
             optionalCallback(err, httpResponse, body) {
        if (err) {
            return console.error('upload failed:', err);
        }
        console.log('Upload successful!  Server responded with:', body);
});
Postdata must be String, not Object. ('tx_hex=...')