Author

Topic: How Data Feed in smart contract? (Read 130 times)

jr. member
Activity: 78
Merit: 2
April 18, 2019, 01:47:41 AM
#5

Oops, thanks for the answers, I got through contractfiat he gives me the ETHUSD price per hour.
for now is good, since the contract guarantees the price. Closed cap
Thanks for your help.
hero member
Activity: 966
Merit: 517
April 13, 2019, 12:53:38 AM
#4
Hello everyone, I'm needing your help: D

How can I get the ETH price data in my contract in solidity language?

I tested chainlink, until I got the testnet price, but I could not get the price to my contract.

I would get the price every time someone send or withdraw features.
Can anyone help?
I don't understand what you are trying to say, how can you get the price of eth writing a smart contract when the price of a coin is not embedded in the code of the coin but rather in the exchange were they are being traded. So what you need to do is to is to call Api from this exchange where ethereum is traded, you can try making use of coinbase because there is no way to call the price of eth from a contract code.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
April 10, 2019, 01:39:25 PM
#3
Smart contracts interact with the outside world through oracles and Oraclize is a provider. They have published code for sample apps on their Github. For example, here is the Kraken Cryptocurrency Price Tracker sample app

He tested with chainlink, which is also an Oracle. I believe it´s more developed, as it has already launched a testnet and is now around40 rank on CMC.

But i believe it´s still soon for this kind of use...
jr. member
Activity: 182
Merit: 8
April 10, 2019, 10:44:13 AM
#2
Hello everyone, I'm needing your help: D

How can I get the ETH price data in my contract in solidity language?

I tested chainlink, until I got the testnet price, but I could not get the price to my contract.

I would get the price every time someone send or withdraw features.
Can anyone help?

Thank you.

Since this is a programming related question you'll need to ask this in Stack Overflow or some other forums related to Solidity programming. Btw, have you looked at Oraclize?  Smart contracts interact with the outside world through oracles and Oraclize is a provider. They have published code for sample apps on their Github. For example, here is the Kraken Cryptocurrency Price Tracker sample app
jr. member
Activity: 78
Merit: 2
April 10, 2019, 07:16:32 AM
#1
Hello everyone, I'm needing your help: D

How can I get the ETH price data in my contract in solidity language?

I tested chainlink, until I got the testnet price, but I could not get the price to my contract.

I would get the price every time someone send or withdraw features.
Can anyone help?

Thank you.
Jump to: