[Crypto Q&A] Can Ethereum contracts pull data using third-party APIs?

Discussion • 2021/02/14 • ໂດຍ
ugospecial

Can Ethereum contracts pull data using third-party APIs?

ຄຳ ເຫັນ (13)
ແຂກ
nurhotimah
6 ປີຜ່ານມາ
No, Ethereum contracts cannot pull data from external information sources in this way. It is however possible to push data from external sites (e.g. weather sites, stock prices) to Ethereum contracts through transactions. There are “oracle” services that are compatible with the Ethereum network that will pull/push data to the Ethereum network for a fee.
guxcman
6 ປີຜ່ານມາ
good
atikarani14
6 ປີຜ່ານມາ
There are “oracle” services that are compatible with the Ethereum network that will pull/push data to the Ethereum network for a fee.
guxcman
6 ປີຜ່ານມາ
nice
jalansultan
6 ປີຜ່ານມາ
Ethereum contracts through transactions.
bellagita_
6 ປີຜ່ານມາ
Ethereum contracts cannot pull data from external information sources in this way.
visiblemoney
6 ປີຜ່ານມາ
Yes of course! Oracles enable smart contracts to retrieve data from the outside world. Each oracle node can be configured to perform a wide range of tasks depending on the adapters it supports. Some of these adapters include HTTP GET, HTTP POST, JSON Parse, Multiply, and more. Let’s assume that we want to create a smart contract that acts upon the USD price of Ethereum, as reported from the popular price analysis site CoinGecko. We know that there is no native way our smart contract can call an external HTTP API, but an oracle node can. Using the request-and-response cycle, our smart contract can request data from an oracle node, configured to perform HTTP GET requests, and implement a callback function for the oracle to fulfil with a response.
tugiman
6 ປີຜ່ານມາ
nope
guxcman
6 ປີຜ່ານມາ
i think eth use their own
ahusujin
6 ປີຜ່ານມາ
nope
yunan90
6 ປີຜ່ານມາ
no>
dergun12
6 ປີຜ່ານມາ
yes, for ex is trustwallet
ຂໍ້ຄວາມທີ່ກ່ຽວຂ້ອງ
Discussion
• 2021/05/28
APPLE AND CRYPTOCURRENCY
Discussion
• 2021/05/27
MARKET CRASH UPDATE
Discussion
• 2021/05/27
WILL BITCOIN EVER BE WORTH $100,000?

ຈົດໝາຍຂ່າວຂອງພວກເຮົາ

ຂ່າວຕະຫຼາດ cryptocurrency ຫຼ້າສຸດ, ເຕັກໂນໂລຢີ, ແລະຊັບພະຍາກອນຊ່ວຍເຫຼືອ.