2

I have called API dynamically using Oraclize with the delay of 10 minutes. The code is shown below and it works well.

  uint256 constant DELAY = 60*10;
  event Log(string result);

  function __callback(bytes32 _queryID,string memory result,bytes memory _proof)public
  {
    emit Log(result);
  }

  function update()public payable{
    oraclize_query(
        DELAY,
        "URL",
        "json(https://api.coinbase.com/v2/prices/ETH-USD/spot).data.amount"
    );

}

But if I got _callback transaction error while running the above code in ethereum-bridge and How to notify that error to the front end?

Platform : Privatenet solidity: 0.4.21 Truffle : 4.1.5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.