APIs in Web3 with The Graph — How It Differs from Web 2.0 – InApps is an article under the topic Software Development Many of you are most interested in today !! Today, let’s InApps.net learn APIs in Web3 with The Graph — How It Differs from Web 2.0 – InApps in today’s post !

Read more about APIs in Web3 with The Graph — How It Differs from Web 2.0 – InApps at Wikipedia

You can find content about APIs in Web3 with The Graph — How It Differs from Web 2.0 – InApps from the Wikipedia website

Richard MacManus

Richard is senior editor at InApps and writes a weekly column about web and application development trends. Previously he founded ReadWriteWeb in 2003 and built it into one of the world’s most influential blogs. Follow him on Twitter @ricmac.

 

One of the stumbling blocks of developing a decentralized application (dApp) is the complexity of querying and using data from a blockchain and other “off-chain” solutions. With dApps, and particularly those running on the Ethereum blockchain, not all of the data is stored on the blockchain. There are often decentralized storage networks involved, like the The InterPlanetary File System (IPFS). Add to that the inherent complexity of blockchains — with their size, “gas fees” and other obstacles — and it makes for a difficult environment for developers to provide an API (application programming interface).

One project aiming to change this situation is The Graph, described as “an indexing protocol for querying networks like Ethereum and IPFS.” The protocol allows developers to “build and publish open APIs, called subgraphs, making data easily accessible.”

Blockchain Data Difficulties

According to documentation on The Graph’s website, it is “​​really difficult to read anything other than basic data directly from the blockchain.” One example they cite is the smart contract of the Bored Ape Yacht Club (BAYC), a popular set of digital ape NFTs on the Ethereum blockchain. It’s relatively easy, according to The Graph, to do “basic read operations on the contract” (who owns a specific ape, and so on), but “more advanced real-world queries and operations like aggregation, search, relationships, and non-trivial filtering are not possible.”

bayc code

The smart contract code, in Solidity, for the Bored Ape Yacht Club.

Essentially, what the Bored Ape Yacht Club puts on the blockchain is the transactional data for its apes. The smart contract is just over 2,000 lines of code, most of which is related to the purchasing and transferring of apes. An analysis of the code by Patrick Price, who runs a software consultancy called Northwest NFTs, notes that the code isn’t entirely original. “Looking around at other NFT contracts, many of them have the same copy-pasted function,” he wrote.

Read More:   Andrew Wafaa Brings ARM to OpenSUSE – InApps Technology 2022

The ape itself — its attributes, its visual appearance, and other data about the digital beast — is stored on IPFS. The BAYC has a web page that lists “the provenance record of each Bored Ape that will ever exist,” which includes links to IPFS.

bayc code 2

The original index, assigned BAYC Token ID, SHA256 Hash output and IPFS link of each Bored Ape image.

How Does The Graph Work?

What The Graph is aiming to do is index all of the bored ape data — the smart contract and all of the assets stored on IPFS and elsewhere — and then make that index available to developers. The APIs to this data, called “subgraphs,” can then be queried with a standard GraphQL API.

What each subgraph indexes is defined by a “subgraph manifest.” This file “defines the smart contracts of interest for a subgraph, the events in those contracts to pay attention to, and how to map event data to data that The Graph will store in its database.” The manifest is stored in IPFS.

The Graph

Source: The Graph

Similar to other blockchain projects, there is also a fairly complicated consensus mechanism at play in The Graph protocol. As described by Yaniv Tal, the project lead at The Graph, “Work on The Graph is performed by an open network of participants, including: Indexers, who run the computers that serve data; Curators, who organize data; and Delegators, who add security to the network by staking their tokens.” As at the end of 2021, according to Tal, there were “160 Indexers, 7,400+ Delegators, and 2,200+ Curators live on the network.”

As for the token, GRT, at time of writing it is ranked 53rd in market capitalization by CoinMarketCap.

Currently The Graph mainly supports Ethereum and compatible blockchains, but “Solana, Cosmos, and Polkadot integrations are on the way.” Tal also noted the importance of “access to off-chain data from places like storage networks and peer-to-peer databases,” which are also being worked on.

Read More:   How Rust Compares to Other Programming Languages – InApps 2022

Up till now, The Graph has mostly focused on building up its Ethereum and IPFS data stores. But there is a lot more data in the wider blockchain world. Clearly, there is significant work to do in order to provide the type of full-featured APIs we’re used to in the Web 2.0 world.

Who’s Behind The Graph?

The Graph protocol is being built by a company called Edge & Node, which Yaniv Tal is the CEO of. Nader Dabit, a senior engineer who I interviewed for a recent post about Web3 architecture, also works for Edge & Node. The plan for the company seems to be to build products based on The Graph, as well as make investments in the nascent ecosystem.

There’s some serious API DNA in Edge & Node. Three of the founders (including Tal) worked together at MuleSoft, an API developer company acquired by Salesforce in 2018. MuleSoft was founded in 2007, near the height of Web 2.0. Readers familiar with that era may also recall that MuleSoft acquired the popular API-focused blog, ProgrammableWeb, in 2013.

Even though none of the Edge & Node founders were executives at MuleSoft, it’s interesting that there is a thread connecting the Web 2.0 API world and what Edge & Node hopes to build in Web3.

APIs the Web3 Way

There are a lot of technical challenges for the team behind The Graph protocol — not least of all trying to scale to accommodate multiple different blockchain platforms. Also, the “off-chain” data ecosystem is complex and it’s not clear how compatible different storage solutions are to each other.

But I like the approach of using a protocol to try to bring APIs into the emerging Web3 world. In his end-of-year post, Tal described crypto protocols as “a new organizational structure that allow large numbers of people to coordinate anywhere in the world.” At least in theory, this means that a corporation (like, say, MuleSoft) does not have to be the middleman between an API developer and a consumer of that API. With The Graph and its cryptocurrency token, there are financial incentives for people to run an open protocol so that middleware isn’t needed.

Read More:   Microsoft Gets Rusty – InApps Technology 2022

However, as with any other blockchain technology at this point in time, it remains to be seen whether The Graph can become as influential in Web3 as MuleSoft was in Web 2.0.

Lead image via The Graph.

Source: InApps.net

List of Keywords users find our article on Google:

“web3”
web3
smart contract developers
smart contract application
graph api
mulesoft salesforce
mulesoft api
mulesoft jobs
facebook graph api
web 3 app development
mulesoft consultant
linkedin api
the graph coinmarketcap
ipfs corporation
the graph
mulesoft consultancy
salesforce and mulesoft
smart contract development
mulesoft facebook
whos behind web3
mulesoft blog
ipfs api
mulesoft developer jobs
graph api facebook
mulesoft developer
mulesoft email
mulesoft application
salesforce mulesoft
mulesoft events
mulesoft linkedin
bayc ipfs
“mulesoft”
patrick macmanus
graph theory wikipedia
linkedin jobs api
coinmarketcap the graph
wawa club
the graph founders
mulesoft image
mulesoft definition
mulesoft salesforce jobs
graph it
how does the graph work
imperial pfs jobs
programmableweb
ipfs corporation of california
mulesoft design center
ipfs api documentation
app ape
facebook places graph api
what does mulesoft do
mule software developer
mule software developers
teams graph api
ipfs code
what is ipfs
linkedin profile view graph
web3 api
ipfs upload
mulesoft icons
web3 documentation
salesforce with mulesoft
web3 get network id
what is graph facebook
mulesoft ceo
hire solidity developers
read ipfs
web3-typescript
graph attention networks
graph facebook api
mulesoft service now
graph block chain
ipfs peers
ipfs search
thegraph documentation
what is mulesoft salesforce
graph blockchain
solidity contract code
mulesoft projects
subgraph
whatsapp web3
how does dna work
Rate this post
Content writer

Let’s create the next big thing together!

Coming together is a beginning. Keeping together is progress. Working together is success.

Let’s talk

Get a custom Proposal

Please fill in your information and your need to get a suitable solution.

    You need to enter your email to download

      Success. Downloading...