Smart contracts do not have access to external data
Traditionally this is done by using a centralized servers called “Oracles”. But they are a single point of failure in otherwise decentralized applications and must be trustworthy.
This is posted on Steemhunt - A place where you can dig products and earn STEEM.
View on Steemhunt.com