Questions tagged [oraclize]

8 questions
1
vote
0 answers

oraclize_newRandomDSQuery (Oraclize) on testrpc

I have the following contract that i plan on using as an external contract in a different contract: pragma solidity ^0.4.24; import "./Ownable.sol"; import "./oraclizeAPI.sol"; interface EtherHiLoRandomNumberRequester { function…
Brian Dilley
  • 3,542
  • 2
  • 22
  • 24
0
votes
0 answers

can i fetch two varibales from a single URL

`pragma solidity ^0.4.22; import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol"; contract ExampleContract is usingProvable { string public ETHUSD; event LogConstructorInitiated(string nextStep); event…
0
votes
2 answers

Gas related error deploying contract on Quorum @ Azure blockchain service

I am able to deploy contracts on ganache and test networks using migrations that includes sending some eth to one of the contracts deployer.deploy(Oracle, {from: accounts[0], gas:6721975, value: 0.25e18}); However, when I deploy the Oracle contract…
0
votes
2 answers

Timeout exceeded for Mocha promises

I have a async function that awaits a promise which resolves when it receives some 'data'. However, when I run the test, I get a Error: Timeout of 300000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise,…
0
votes
1 answer

I cant read the result from the Oraclize query but i can call it successfully

I create another function in solidity to return the result also there (getGameNumbers) but can I add it to oraclizeCall function enter image description here async WinningNumbers () { const {accounts, contract}=this.state; …
Bandock
  • 19
  • 4
0
votes
1 answer

Example Oraclize files return 0: string: when called in Remix

I want to use Oraclize in Remix, to test it. I'm too stupid to use their examples. How can I make this work? From their Github I took the YouTube-Views code and copied it into Remix pragma solidity >= 0.5.0 < 0.6.0; import…
JonathanB
  • 11
  • 4
0
votes
1 answer

How to use Oraclize in solidity to pass arguments to the data source?

My aim is to pass some string to the data source and then process there and get back the result. Below given code works in solidity oraclize_query("URL", "json(https://clever-ape-38.localtunnel.me).a","sfdg"); But when i try to fetch some value…
lokesh kumar
  • 760
  • 1
  • 7
  • 15
0
votes
0 answers

Parse React page as a string

I have a react page, it simply shows some live data: { "portfolioValue": 0.06, "usdEth": 94.82 } I wanted to parse it using oraclize. But I can't because it's not a plain HTML page and React should render it first. So, how to parse the data?
Vladimir B.
  • 3
  • 1
  • 2