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.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Is first call to oraclize query free in mainnet, as in testnet?

We were trying to include oraclize query to get price feed in one our contracts, as of now we have observed that the first oraclize is free in kovan. Does same applies for mainnet or else we has to ...
3
votes
1answer
74 views

What is a blockchain oracle?

What is a blockchain oracle for smart contracts? And why is it needed? I've seen a lot of posts about "how do oracles work", and "what is the oracle problem" but I don't understand ...
0
votes
1answer
13 views

How can the contract move funds from a user wallet to a contract address

We are creating a system where every month some ethers shall be transferred from user wallet to a contract wallet. We are focusing on creating a dapp too, so a user will initiate this request and once ...
3
votes
1answer
37 views

How is Chainlink decentralized? [closed]

I believe one of the main criticisms of chainlink is that it is not decentralized enough, adding more nodes would be a big step in a positive direction. When I pull data through a node, that node ...
0
votes
1answer
21 views

Explicit type conversion not allowed from “string memory” to “uint256”

I'm using an oracle to get results from a custom api. The result is in string by default. I want to convert it to uint256, so that I can perform basic arithmetic functions. Here's my code: function ...
1
vote
1answer
21 views

How is the volume for the currency pair accounted for on chainlink's reference data feed?

https://feeds.chain.link/ - link for reference. Let's take the LINK/USD feed for example: From my understanding, the aggregation contract fetches the price of LINK in USD from the node operators who ...
2
votes
0answers
24 views

How does chainlink solve the oracle problem? [closed]

I've heard a lot about Chainlink recently -- how Synthetix, Aave and other top Defipulse projects are using them. How exactly does Chainlink solve the oracle problem from a technical perspective?
6
votes
1answer
118 views

Why do I need decentralized oracles?

I've been reading a lot about how smart contracts work, and I'm a little new to the area, but why do we need decentralized oracles? It feels like I can just make an API call from wherever and it's OK?
0
votes
0answers
19 views

How does Oraclize work? [duplicate]

We know that an Oraclize based contract can communicate with the internet sites. We know than Oraclize source is built by Solidity language. We know that there is no command in solidity that can ...
1
vote
1answer
41 views

blockchain oracles to communicate with external api via smart contracts?

Is there is any other oracles other than provable or oraclize to communicate with external api via smart contract.
1
vote
2answers
36 views

Calling a Solidity function automatically in realtime

I have an oracle with a 'getPrice' function that returns the latest ETH/USD price. Let's say, I am implementing a stablecoin contract which requires over-collateralization with ETH. How will I ...
0
votes
1answer
37 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
26 views

Can't call coinFlip() function the second time

The first time when i run this it runs fine but the second time when i call the coinFlip() function it shows gas estimation failed can someone tell me why it is happening. pragma solidity ^0.6.0; ...
1
vote
1answer
35 views

Chainlink node error: BumpGasUntilSafe FindTxBy Attempt: record not found

I am currently testing sending requests to my Chainlink node on Ropsten. I am following the documentation for running a Chainlink node and all went well until. 40 BumpGasUntilSafe FindTxByAttempt: ...
0
votes
1answer
21 views

Is using oraclize to schedule using execution of a function asynchronous?

I am looking for ways to automatically execute a function call every 24 hours in my smart contract and came across this answer. Is the solution here asynchronous, i.e. can the contract execute other ...
0
votes
1answer
20 views

How to send the RFID card no read using Raspberry Pi to smart contract so the details can be stored on Ethereum blockchain? [closed]

Raspberry Pi reads an RFID card and has to send the RFID number to the smart contract to check further details related to the RFID number. Based on the details the payment is done and stored on the ...
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
1answer
33 views

onlyOwner / onlyProvable with oracle functions using Provable

Is it possible to make a function onyOwner, since one of them must obviously be called by Provable's server? Or is there an equivalent modifier to it, such as onlyProvable? If not, would there be a ...
1
vote
1answer
35 views

Are arguments from Provable callback's function mandatory?

Since I am only using Provable (formerly Oraclize) in order to make a cron job, and calling only a function from inside my smart contract (like here), I was wondering if the parameters myid and result ...
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 ...
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 ...
2
votes
2answers
150 views

Smart contract and oracles

I'm having trouble understanding the flow: Contract <==observes/injects== Oracle <==requestdata==> API I read several articles like this and I'm aware of the theory of the flow. But what ...
1
vote
2answers
28 views

Oracle used by a Smart Contract no longer available

Ethereum relies on Oracles to provide information about the outside world used by SmartContracts. Also, when a node syncs (in slow mode) it has to go over all transactions (including SmartContract ...
2
votes
1answer
153 views

Oraclize ( provable) updates the value only one time

I'm trying to write a smart contract that gives me the current timestamp. The very important part is that i want this to happen locally, not on test networks. After some research, i installed ethereum-...
2
votes
1answer
101 views

Multiple callbacks with provable random oracle

I'm making a simple lottery game where there are hourly, daily and weekly prizes. My contract has functions to pick winners for each of these game types. Each game types will have different number of ...
0
votes
2answers
122 views

Call an existing python code inside a solidity smart contract

I want to call some existing code (written in Python) inside my Ethereum smart contract (written in solidity). Is it possible to do that? if so, how can we do it?
1
vote
1answer
51 views

Provable/Oraclalize: How to get msg.sender in __callback

How do I get the msg.sender of the user who called randomNumber() in the __callback? pragma solidity ^0.5.11; import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol"; contract ...
2
votes
1answer
70 views

How to setup an oracle in Vyper?

I need an ETH-USD price oracle for my vyper contract. So far, the oracle services I've found, like chainlink, are written in solidity. Is it possible to use a solidity oracle in a vyper contract? How ...
0
votes
1answer
37 views

How does oraclize deal with chain reorg?

As title, does oraclize deal with the case where the query transaction and callback transaction are executed in different side chains? I mean in this situation: A-B \ B'->C->D->....' ...
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
12 views

How to use oraclize fee from contract balance instead of sender's wallet? [duplicate]

I am using oraclize query. I have a function that user's invoke but I dont want users to pay the gas fee for oraclize query, I want that fee to be paid by my contract balance, and if my balance is not ...
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
2answers
143 views

How to build the seamless bridge between two blockchain platform?

How to build the bridge between two different consensus blockchain platform? use case: 1.we need to ensure visibility of the transaction in both platforms to assure its integrity When a smart ...
0
votes
1answer
160 views

__callback was called after the specified delay

My smart contract should return the ETH rate from Coinbase api .. So i'm using Provable engine and i'm testing my smart contract locally using ganache and ethereum-bridge . It's expected that result ...
2
votes
1answer
184 views

Why Oraclize / Provable can call URLs, although it's forbidden in Ethereum?

So the library Oraclize if I understand correctly, allows you on solidity to get a result from a URL inside a callback. But I also read that you can't communicate with the external world in Ethereum ...
1
vote
0answers
12 views

Oraclize : Calling more than one API independently [duplicate]

There are 2 API 's which has to be called in different time delays recursively. For example : API_1 = 20 mins delay and API_2 = 24 hr delay. How can we call the above 2 API's independently based on ...
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 ...
1
vote
2answers
147 views

Random number generation in certain range

I need to add a random number function in my smart contract. Is it best to use Oraclize and e.g. random.org? It's not a lottery which means the random number generation does not require heavy security....
1
vote
2answers
53 views

Set the price by calling another contract and getting result from it

I want to set the price in Token every time the contract is deployed by calling ETHUSD in constructor and getting result from it. pragma solidity ^0.5.0; import "./ETHUSD.sol"; contract Token { ...
1
vote
2answers
138 views

Accessing private variables using assembly

I would like program an oracle service which I would like to charge a fee for. Therefore, I would store the data of interest as a private variable in my oracle contract. This private variable should ...
2
votes
1answer
37 views

Any other provider instead of Oraclize

Are there any other providers for calling external APIs in Solidity other than Oraclize?
1
vote
2answers
105 views

Any good smartcontract for “business calendar” oracles?

is anybody aware of some smart-contract that can be used as external "trustable" oracle for no-so-simple scenarios, like for example calculating the number of non-festive days passed since a given ...
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
2answers
40 views

Rejecting oraclize scheduled request [closed]

Using Oracle we can call scheduled functions. But is it possible to cancel scheduled function? I mean, for example, if I scheduled an function that updates something in my contract in 10 minutes but ...
0
votes
1answer
48 views

How to prove data you input is what an API call returned without using third-party service?

I know of Oraclize. As discussed in this answer How does Oraclize handle the TLSnotary secret? by Jeff Coleman there are disadvantages, and he suggests using TLSNotary oneself is safer than trusting ...
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 ...
1
vote
2answers
141 views

verify and publish when using oraclize?

I'm using oraclize in my contract. import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; When I go to verify and publish on etherscan I get this error myc:4:1: ParserError: Source "github.com/...
0
votes
1answer
221 views

ethereum-bridge oracle on private network does not receive queries

I have a private network with a few nodes and I have installed ethereum-bridge to deploy an Oracle. One of my blockchain nodes is used by ethereum-bridge to deploy the oracle. The node is started ...

1
2 3 4 5 6