Below is the code I was using

augur.api.FeeWindow.buy({
            _attotokens: "0x03",
            tx: { 
                to: "0xf0637758a90cd1bccf6767f85433d1704216c491",
                gas: "0x632ea0" 
            }, 
            onSent: function (result) { console.log("sent",result) },
            onSuccess: function (result) { console.log("success",result) },
            onFailed: function (result) { console.log("error",result); }
        });

Response: Error: eth_call returned no data (0x)

Try add "tx.from" argument

    augur.api.CancelOrder.cancelOrder({
    _orderId: orderId,
    tx: {
        from: _EthAccount,
        to: cancelOrderAddress,
        gas: augur.constants.CANCEL_ORDER_GAS
    },
    onSent: function (result) {
        console.log(result);
    },
    onSuccess: function (result) {
        console.log(result);
    },
    onFailed: function (result) {
        console.log(result);
    }
});
New contributor
Oleg Razumov is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.