Should i have ether in contract account in order to call oraclize_query (firtst call is free) or it discounts from the main account? Thanks!

2 Answers 2


You need the contract to have the Ether at the moment when it calls oraclize. However, it should work whether you pre-pay the contract or pay the contract in the transaction that calls oraclize.

  • Comments are not for extended discussion; this conversation has been moved to chat.
    – q9f
    Feb 20, 2017 at 11:22

Seeing by your comments, that you are using truffle, you should be able to send the appropriate ether amount, using a variation of the following:

MyContract.deployed().update({ from: myAccountWithEther, value: web3.toWei(0.1, 'ether') });

MyContract would be the contract name containing the Oraclize methods.

myAccountWithEther should be an account that contains sufficient ether that can be sent along that you have the ability to send with.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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