Questions tagged [oracles]

Oracle is a way of implementing a Smart Contract. Instead of running the contract code directly on the blockchain, the code is executed on some special off-chain entities called oracles which then send the result of the code to the blockchain network with a signature.

54 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
438 views

Capturing an event fired from a contract that was called from another contract

I'm trying calculate tax on arbitrary items/values. To do this I have a single contract is used as an 'Oracle' to get the tax from an external system. This contract defines functions to be called from ...
3
votes
0answers
15 views

Oraclizer does not respond periodically

Contract that use oraclizer work just fine from moment of deploy. But three days ago oraclizer start to ignore requests of my contract(not allways). In this trx oracle dont return callback, but when ...
3
votes
0answers
38 views

Oraclize random datasource, what is trusted by using it?

I'm currently looking into ways of accessing randomness in a smartcontract. I found oraclize random datasource https://github.com/oraclize/ethereum-examples/tree/master/solidity/random-datasource and ...
2
votes
0answers
18 views

Oraclize ethereum bridge : Notifying __callback tx error to frontend

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 ...
2
votes
0answers
156 views

Call several endpoints in an Oraclize nested query and return an array

I am trying to get an average of ETH/USD conversion rate through Oraclize. My query works well when calling one single HTTP endpoint but I would like to call several endpoints within the same query ...
2
votes
0answers
71 views

How does a relying party learn a PageSigner server's public key?

Hoping for some insight Into to page signing... I understand that: https://tlsnotary.org/pagesigner.html can provide proofs that a specific web page was returned from a third-party TLS-protected ...
2
votes
0answers
234 views

Error in dapp developed using 'Truffle' framework -Smart contract function call won't get executed

I am developing a dapp using 'testrpc' and 'truffle'.I have also used ethereum-bridge for Oraclize.I have written a smart contract function which calls a url using 'OraclizeQuery'. The following is ...
2
votes
0answers
251 views

Connection between two blockchains

I am looking for an approach to creating a connection between two blockchain-networks. I found out that I can use oracles to get data from extern systems (= second blockchain-network). But how can I ...
1
vote
0answers
36 views

address recovery from signature

Sorry for the long question, I tried to keep it as standalone as possible. For my master thesis I'm analyzing historical data coming from price oracles contract events. In particular, the MakerDAO ...
1
vote
0answers
41 views

How to fix gas estimation failed error while getting random number from Provable Random DS?

I'm using Provable for getting a random number and I am using following code snippet from their github: https://github.com/provable-things/ethereum-examples/blob/master/solidity/random-datasource/...
1
vote
0answers
58 views

How to handle Oraclize if it's failed?

I'm using the Oraclize to get the random number for bets. When the function bet() is called and if the oraclize is failed it should call the pingOracle() again. Below is example function bet() public ...
1
vote
1answer
82 views

Truffle fails to migrate an Oraclize contract into Ganache

I have a contract that is using Oraclize. When deploying the contract from the Remix IDE into Ganache/Ethereum-bridge via MetaMask, the contract is fully functional. However, when trying to migrate ...
1
vote
2answers
283 views

Retrieve and store data into a local database using smart contract

For my information oraclize can be use to retrieve data from several data source but what if i need to get from a local database such as oracle,sql, etc. Is there any way of doing it? PS: I am ...
1
vote
2answers
157 views

How to use fiat exchange rate oracle in DAPP?

my team is trying to develop a DAPP about fiat exchange rate. How to get the latest fiat exchange rate (USD/EURO etc.) accurately from external Oracles(Or are there better ways doing this)?
1
vote
0answers
37 views

Tutorial for ZAP inegration with Oracle

Oracle is a trusted third party API from which smart contract will fetch the data. Zap is a way to monetize the data which smart contract is getting using a token called zap token. Is there any ...
1
vote
0answers
135 views

“Augur” vs. “Oraclize” : What is the main difference?

Can we say that "Augur" is a decentralized Oracle against "Oraclize" as a centralized model? I mean can we consider Augur as a decentralized Oracle and on the other hand, Oraclize as a centralized ...
1
vote
0answers
35 views

How to know the price of the day of ETH in USD by Oracles?

Consider in a contract the payer intends to pay recipient ETH based on USD (ex. the salary is 1 USD but paid by ETH). So, if today contract needs to know equivalent value of 1 ETH in USD exactly at ...
1
vote
0answers
61 views

How do we deploy a smart contract with Oraclize to Rinkeby Network?

I have created a smart contract with Oraclize logic which I tested locally using Truffle. Now I want to test it on Rinkeby network along with my front end, what it the process to do so ? How do we ...
1
vote
1answer
165 views

Solidity Oraclize error

I am learning to use oracles in solidity and I have taken this code to see how it works. But I get the following error: "VM error: revert. revert The transaction has been reverted to the initial state....
1
vote
0answers
100 views

Confirm Oraclize is not working on Ropsten? (No callback returned)

I have a contract on Ropsten testnet that was working fine up until 2 hours and 30 minutes ago. I don't believe it is an error on my side because the code hasn't been changed or redeployed. You can ...
1
vote
0answers
156 views

Oraclize: oraclize_newRandomDSQuery always reverted

I'm using oraclize for generating random number for my smart contract. I have tested successfully with 2 methods: Using WolframAlpha Using random.org service But when I try oraclize_newRandomDSQuery....
1
vote
0answers
52 views

Back of the envelope Oraclize callback cost calculations for

How does one do a back of the envelope calculation about how much the Oraclize callback will cost? Does it cost more if a query is returning a large amount versus a small amount of data? Does it cost ...
1
vote
2answers
195 views

How secure is an Oracle?

I am working on oracles. I saw this link - https://kndrck.co/posts/ethereum_oracles_a_simple_guide/ The code works, I tested it. But what is the issue to me, is the code actually secure? Can someone ...
1
vote
1answer
86 views

Using oraclize function into fallback function

I have an issue with my oraclize. I need to call oraclize for update exchange rate. If I call function updatePrice() manually - it's ok, global variable dollarCost is updating. But if I call ...
1
vote
1answer
98 views

Cannot get Oracalize to work on Ropsten

I have tried to run Oracalize as 1:1 of the example provided on their site. During the creation of the contract, I am also sending 1 ether to it (so it is not empty). Still even 30 minutes after this, ...
1
vote
1answer
64 views

How can I assign the value that I'm fetching using Oraclize to a member in a structure

I have the following code: contract CheckBet is usingOraclize { struct Weather { uint curr_temperature; uint high_temperature; uint low_temperature; } Weather ...
1
vote
0answers
182 views

Oraclize Queries Not Working On Rinkeby

I have the following contract (https://gist.github.com/postables/365f418b85c9d93503001682d6cc779e) which works when using Oraclize's web IDE version of remix. However when testing the contract out on ...
1
vote
0answers
153 views

Convert an hexadecimal string to bytes in pure Solidity

I am using Oraclize to recover a signature from a website. When I have it, I have to check if the address who signed it is correct. To do that, I would use ECRecovery from Zeppelin. The signature ...
1
vote
0answers
35 views

How to ensure users send just enough for Oraclize query?

In my contract, users send along ETH to cover the costs of their Oraclize query. Right now, they must send a fixed sum set by the contract owner. Whatever remains stays with the contract. How can ...
1
vote
0answers
34 views

What happens when an Oracle becomes unavailable?

If all contracts in the chain must be verifiable by all nodes at all the time, what happens when an Oracle service goes down, e.g. because the company supporting it goes bankrupt?
1
vote
0answers
390 views

Flow of an oracle

This is a code example from Solidity documentation: pragma solidity ^0.4.11; contract Oracle { struct Request { bytes data; function(bytes memory) external callback; } Request[] ...
1
vote
0answers
409 views

Avoiding out of gas errors when making Oraclize queries that have callbacks which trigger more queries

I have a contract that I want to automatically check the price of ethereum everyday. right now I have a method called startContract which calls a function setConversion which makes a query set for 1 ...
1
vote
0answers
265 views

How can I automatically send token in exchange for Ether

I want to send tokens in exchange for Ether. And I want to send tokens in terms of 1 JPY / 1 token. So I have to get ETH/JPY rate on smartcontract. I tried to use oraclize to get its rate. But because ...
0
votes
1answer
35 views

Provable store an array

I'm trying to understand some basis of Solidity, I get how to get multiple values from one query, but don't really understand how to store them, could anyone explain me how to do it? pragma solidity ^...
0
votes
1answer
22 views

Orcalize Query not working

function getRandomNumber() public payable { require(msg.value >= 0.000175 ether); // 175,000 gas * 1 Gwei = 0.000175 ETH bytes32 queryId = oraclize_query("URL", "json(https://...
0
votes
0answers
38 views

Chainlink services are not supporting the privateFor transactions in Quorum/Kaleido

We are exploring Kaleido and Chainlink for one of our use cases. What we have done: We have created a network of Quorum/Raft nodes. We had setup the chainlink service for the network. We have setup ...
0
votes
0answers
16 views

Town Crier Relay

I'm reading the paper Town Crier: An Authenticated Data Feed for Smart Contracts and i'm failing to understand this bit The Relay is an ordinary user-space application. It does not benefit from ...
0
votes
0answers
49 views

Fetch ETH USD Rate from past using Oracle

Is it possible to fetch the USD rate of ETH at a specific time in the past to a smart contract from an external API using an oracle? i.e. I have a function which tracks whether now > start + 10 ...
0
votes
0answers
79 views

Oraclize: Truffle migrate failed

I'm trying to migrate a contract into a ganache chain. It needs to use Oraclize - in the end, the plan is to have a private chain using Oraclize via ethereum-bridge. However, truffle migrate fails ...
0
votes
0answers
70 views

HTTP query create request error for oraclize

I have tried to deploy a sample contract having oraclizer query using truffle+ethereum bridge+solidity. First ethereum bridge made up and got OAR address which is used in sample contract in ...
0
votes
0answers
43 views

Dapp design to handle delay in callback response from Oraclize

In my dapp design I am receiving few user inputs via a form and passing them to a smart contract. Inside the smart contract I am using Oraclize service to timestamp the user inputs. Its a known fact ...
0
votes
2answers
183 views

Does running a Geth RPC server locally also require having a full Ethereum node?

I've been trying to learn about smart contracts and attempting to work through a few examples. Specifically, I found this one about creating an Oracle -- https://github.com/axic/tinyoracle. The ...
0
votes
0answers
61 views

Oraclize + CBOR Bug?

I'm making a computation query to Oraclize: import "https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.4.sol" bytes scriptMultihash = "QmVJyXAmxdfuVgazi2PtnwXJdSiYPpkcvv6EydccQKkiZW";...
0
votes
1answer
54 views

Unable to mine smart contract using Oraclize - Invalid JSON RPC response,error code : -32603

I am trying to use Oraclize to make a REST call. Please find below my contract code - pragma solidity ^0.4.16; import "./usingOraclize.sol"; //Importing Oraclize(verion 0.4) contract ...
0
votes
1answer
107 views

Orcalize query multi value callback

So I know JSONPATH can be used to select multiple values from a json response with an orcalize query like in the below example http://app.oraclize.it/home/test_query#VVJMKEdFVCk=:...
0
votes
1answer
181 views

Private Ethereum Smart Contract API call to notify (without needing the external api response to update the state) without using Oraclize

In a Private Ethereum Smart Contract, can we do an external API call just to notify (without needing the external api response to update the state) without using Oraclize? Understand Oraclize is ...
0
votes
0answers
111 views

Using Oraclize for ICO smart contract

What is the advantages of using Oraclize for the development of an ICO Smart contract? doesn't it just add unnecessary complexity?
0
votes
1answer
561 views

Time Specified calls in Solidity using Oraclize

I have started learning coding in Solidity and I have written the below contract using the official Oraclize guidelines. My aim is to: Make the update() function be called on its own on the ...
0
votes
1answer
63 views

Oraclize usage on blockchain

Is it possible to use oraclize for the purpose of communicating between ethereum private and public blockchains? For example, if i triggered an event in private blockchain, that event should be ...
0
votes
1answer
106 views

Unable to return string using Oraclize

I'm trying to do a simple coin flip using WolframAlpha and Oraclize, this is my smart contract pragma solidity ^0.4.18; import './usingOraclize.sol'; contract CoinFlipOracle is usingOraclize { ...