Blockchain Direct HTTP Requests via the Internet Computer (2024)

While there’s plenty of optimism in Web3 about a future where everything happens on a blockchain, we’re a long way from that being a reality. The vast majority of useful data is generated in traditional data centers or cloud computing infrastructure and interfaced using familiar tools that largely leverage HTTP or HTTPS.

Decentralized applications running on any of the Layer 1 blockchains, like Ethereum or Solana, interface with HTTP-based services using what’s known as an oracle. These oracles act as trusted middleware to allow for the creation of a hybrid smart contact, where on-chain code can interact with off-chain infrastructure and data. Chainlink Network, a popular decentralized oracle network, offers a short explainer video on what this looks like.

The Trouble with Oracles

While oracles are the primary means of connecting dApps (decentralized apps) with off-chain data and infrastructure, there are some disadvantages. The requests are indirect, meaning you aren’t making an API call directly to the source of the data you want to query — the oracle does this for you and then your dApp needs to trust the response the oracle comes back with. This approach also comes with fees associated with using the oracle as a third-party intermediary.

DFINITY Foundation, one of the largest contributors to the Internet Computer, a layer 1 blockchain, is proposing an alternative approach where dApps can make HTTP requests directly using an API integrated into the blockchain.

In an interview with The New Stack, Dieter Sommer, Technical Program Manager for the DFINITY Foundation, explains the challenge of relying on oracles this way. “Everybody who wants to do anything reasonable needs some form of integrating with Web 2, and all other blockchains use oracles for this,” he said. “Oracles are outside services, so if you rely on an oracle to connect to Web 2, the oracle does all the HTTP stuff. This also means you introduce lots of new trust assumptions; for example in the standard model of using the Chainlink oracle, you make a call to one oracle provider and this provider needs to be trusted by you, which is a very weak model.”

An API to Make HTTP Calls Directly

DFINITY Foundation uses some slightly different terminology to explain how the Internet Computer blockchain infrastructure works. With a foundation of The Internet Computer Protocol, the Internet Computer hosts smart contracts called Canisters that are a combination of WebAssembly bytecode and memory pages where this code runs. Deploying a Canister means that the corresponding code and state gets replicated to all nodes on the subnet it is deployed on.

This concept of replication is one of the reasons most blockchains are using oracles to make HTTP requests today. In the design of the Internet Computer currently, each replica would make the same HTTP call to an external service. But the HTTP response returned to each replica might be different, because there could be variation in timestamps or IDs. When the replicas all get a slightly different response, it’s impossible to achieve consensus — which effectively breaks the subnet.

In the upcoming Chromium release of the Internet Computer, there’s a new approach to solving this problem and providing the blockchain with a direct integration using an API to make HTTP calls. This removes the trust assumptions required to use an oracle and theoretically simplifies the process of accessing off-chain data.

With an asynchronous API provided via the management canister, every node will make the same HTTP request. As each node receives a response, they sign the response and gossip it to the other nodes. Once the consensus layer aggregates enough signatures, it will include the response in the blockchain. When the block is finalized, the response is passed back to the execution layer, which in turn resumes the computation that originated the HTTP request.

Navigating Inconsistent Responses

When all nodes receive the same response at approximately the same time, this approach works flawlessly. This should work even in scenarios where a malicious node reports false information, as long as enough nodes come back with the same response.

As Sommer puts it, “All the nodes in a subnet make the request and only if consensus is successful, meaning at least two-thirds of the replicas agree on the result, then it is replied back to the canister as a result. This allows for a secure call outside, without any external third parties to rely on. Our consensus protocol is flexible enough to allow for such extension.”

A more complicated scenario is when the requests are semantically the same, but potentially have minor differences that don’t matter for the computational result. Instead of failing to reach a consensus, you can code around these inconsistencies using a function that transforms the response by only surfacing the portion of the response that is required for the computation. Take an example like needing to return a string of text where the text is packaged in a response with a timestamp. If the string of text is the same in all cases, it doesn’t matter that the timestamps vary and you can use the function to throw those out.

For the initial release, only GET requests are supported. The longer-term plan is also to support POST requests. In watching the DFINITY Foundation video covering this new feature in additional details, Ivan Malison, a software engineer at DFINITY, explains that POST requests are more complicated. He showed an example of a credit card payment. You wouldn’t want to attempt to charge the same card multiple times or get a different response to your POST request like a success message one time and a decline the next. The video provided Stripe’s Idempotency for safe API retries as an example of how to implement this correctly in the future.

TRENDING STORIES

Blockchain Direct HTTP Requests via the Internet Computer (2024)

FAQs

How does an ICP Internet Computer work? ›

ICP runs on a decentralized network with dedicated hardware established by independent parties rather than a cloud maintained by centralized data servers. The blockchain processes transactions quickly, setting it apart from other cryptocurrencies that may take 30 minutes or more to complete transactions.

What is the ICP explained? ›

The Internet Computer Protocol (ICP) is a blockchain based on threshold cryptography, state machine replication, and a novel consensus algorithm. It was carefully designed to give smart contracts near native performance and scalability while maintaining the security of decentralized execution.

What is the internet computer coin? ›

The ICP token has several major uses: it acts as a governance token (allowing holders to “lock” some of their ICP into the network in exchange for having a say in the future development of the ICP protocol), is rewarded by the network to participating data centers for good behavior, and is used to pay transaction fees ...

When was the internet computer launched? ›

The Internet Computer was launched and open-sourced on May 10th 2021 by the DFINITY Foundation.

What is the ICP used for? ›

ICP (Inductively Coupled Plasma) Spectroscopy is an analytical technique used to measure and identify elements within a sample matrix based on the ionization of the elements withing the sample.

Is ICP the new internet? ›

The goal of ICP is to change the centralized internet system we are currently using. ICP uses a technology called Chain Key Technology. This technology consists of several systems such as consensus threshold relay, internet identity (IID), network nervous system (NNS) and so on.

What is ICP linked to? ›

ICP is more common in twin and triplet pregnancies, which are associated with higher levels of hormones. ICP has been triggered in women taking high-dose oral contraceptives (which contain forms of oestrogen and progesterone) and also in women being treated with progesterone.

How to add Internet Computer to trust wallet? ›

Open Trust Wallet and navigate to the wallet tab to begin the process. Tap on the top right corner to access the token search function. Search for Internet Computer. In case ICP doesn't appear in the search results, it indicates that direct support may not be available in Trust Wallet at this time.

What is an ICP connection? ›

Independent Connection Provider (ICP)

An ICP is an accredited company that can build electricity networks to agreed standards and quality required for them to be owned by either a Distribution Network Operator (DNO) such as Electricity North West or an Independent Distribution Network Operator (IDNO).

How much is the Internet computer token worth? ›

The live price of Internet Computer is $ 9.838986 per (ICP / USD) with a current market cap of $ 4.60B USD. 24-hour trading volume is $ 94.83M USD.

Is ICP crypto dead? ›

While ICP crypto has misplaced most of its worth and recognition since its launch, it is not dead but. There are nonetheless some signs of lifestyles and hope for ICP crypto, such as: The continuous construction and development of Internet Computer.

What is the ICP website? ›

You are leaving www.icp.gov.ae and entering a website that Federal Authority For Identity, Citizenship, Customs & Port Security does not control and may have a different content and privacy policies.

Who is the owner of the internet? ›

No one person, company, organization or government runs the Internet. It is a globally distributed network comprising many voluntarily interconnected autonomous networks. It operates without a central governing body with each constituent network setting and enforcing its own policies.

Who invested in ICP coin? ›

Headquartered in Zurich, Switzerland, Dfinity has raised funding of nearly $167 million from 12 investors. The investors of Dfinity include Andreessen Horowitz, 9Yards Capital, Polychain, Scalar Capital, KR1, SV Angel, Amino Capital, Eterna Capital, Aspect Ventures, and Village Global.

Is ICP an AI coin? ›

Top 3 AI Crypto Coins 1) Internet Computer (ICP) ICP is a p | AfaqInsights on Binance Square. ICP is a protocol that allows computers to connect to each other and share information without the need for a central server. Instead, ICP uses independent data centers — a decentralized network of nodes.

How do ICP canisters work? ›

A canister is similar to a container in that both are deployed as a software unit that contains compiled code and dependencies for an application or service. Containerization allows for applications to be decoupled from the environment, allowing for easy and reliable deployment.

How does Internet Computer network work? ›

Computers connect to each other and to the Internet via wires, cables, radio waves, and other types of networking infrastructure. All data sent over the Internet is translated into pulses of light or electricity, also called "bits," and then interpreted by the receiving computer.

What does ICP mean WIFI? ›

The Internet Cache Protocol (ICP) is a UDP-based protocol used for coordinating web caches. Its purpose is to find out the most appropriate location to retrieve a requested object in the situation where multiple caches are in use at a single site.

Top Articles
Federal Reserve liabilities
Zero Waste Pasadena 2040 – Department of Public Works
Oldgamesshelf
Aberration Surface Entrances
Ffxiv Palm Chippings
Ventura Craigs List
Stl Craiglist
Slay The Spire Red Mask
Caresha Please Discount Code
2024 U-Haul ® Truck Rental Review
This Modern World Daily Kos
Saberhealth Time Track
7 Fly Traps For Effective Pest Control
Scenes from Paradise: Where to Visit Filming Locations Around the World - Paradise
Race Karts For Sale Near Me
Long Island Jobs Craigslist
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Stoney's Pizza & Gaming Parlor Danville Menu
Dcf Training Number
Craigslist Org Appleton Wi
Costco Gas Hours St Cloud Mn
Jayah And Kimora Phone Number
Dei Ebill
Local Collector Buying Old Motorcycles Z1 KZ900 KZ 900 KZ1000 Kawasaki - wanted - by dealer - sale - craigslist
Orange Park Dog Racing Results
Gopher Carts Pensacola Beach
Home Auctions - Real Estate Auctions
Cruise Ships Archives
Today's Final Jeopardy Clue
AI-Powered Free Online Flashcards for Studying | Kahoot!
Bismarck Mandan Mugshots
The Transformation Of Vanessa Ray From Childhood To Blue Bloods - Looper
Hindilinks4U Bollywood Action Movies
Pepsi Collaboration
Mars Petcare 2037 American Italian Way Columbia Sc
Colorado Parks And Wildlife Reissue List
Wasmo Link Telegram
Energy Management and Control System Expert (f/m/d) for Battery Storage Systems | StudySmarter - Talents
Hovia reveals top 4 feel-good wallpaper trends for 2024
Pink Runtz Strain, The Ultimate Guide
Memberweb Bw
John M. Oakey & Son Funeral Home And Crematory Obituaries
Child care centers take steps to avoid COVID-19 shutdowns; some require masks for kids
Haunted Mansion (2023) | Rotten Tomatoes
9:00 A.m. Cdt
What is 'Breaking Bad' star Aaron Paul's Net Worth?
Minecraft: Piglin Trade List (What Can You Get & How)
Craigslist Charles Town West Virginia
Brutus Bites Back Answer Key
Skyward Login Wylie Isd
Arnold Swansinger Family
The Love Life Of Kelsey Asbille: A Comprehensive Guide To Her Relationships
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 5796

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.