SubQuery helps Khala Build their New ERC20 Chain Bridge

Today SubQuery is excited to announce that it has been working with Khala to power the advanced data behind their new Ethereum-Kusama bridge.

SubQuery Network

--

Khala’s new Ethereum-Kusama chain bridge is the first official parachain-Ethereum bridge on the Substrate ecosystem and allows the Khala community to easily transfer PHA between Ethereum and the Khala chain in a decentralized way.

Khala’s new Ethereum-Kusama chain bridge

“Writing a SubQuery project for Khala has allowed us to improve our Chain bridge app and make it easier for our community to use it. It’s only three steps, write the graphql.schema for what and how I want to query, write mappings and extract the interesting data from each block or event, and deploy it and wait for it to sync. In the end I only spent half a day on it, it’s amazing how much time it saved me!” — Jun (Developer at Phala)

Khala has written a SubQuery project that indexes data for their new bridge dApp (https://app.phala.network/en/bridge). This data is used to collect transfer events, proposal approvals and more to then present in the dApp for all users to analyse. A copy of this project is hosted in SubQuery Explorer, a free service that allows Khala’s community to access, query, and analyse this data to build their own dApps that build upon the first-ever parachain-Ethereum bridge in the Kusama ecosystem.

You can explore this project in SubQuery’s online playground here and see Khala’s bridge dApp here.

The SubQuery Explorer

For example, the below GraphQL query shows the 5 largest ever cross-chain transfer events of all time.

An example query for the largest 5 ever cross chain transfers

This next example shows the 5 most recent proposals that have ever been made and approved.

An example query for the 5 most recent proposals

Khala Network is the Phala pre-mainnet on Kusama, a privacy-preserving cloud for blockchain applications, enabling possibilities like privacy-protected DeFi trading positions and transaction history, co-computing DID confidential data, developing light-node cross-chain bridges, and more.

https://explorer.subquery.network/subquery/Phala-Network/khala-chainbridge

About Phala

Phala Network tackles the issue of trust in the computation cloud.

This blockchain is a trustless computation platform that enables massive cloud processing without sacrificing data confidentiality. Built around TEE-based privacy technology already embedded into modern processors, Phala Network’s distributed computing cloud is versatile and confidential. By separating the consensus mechanism from computation, Phala ensures processing power is highly scalable but not wasteful. Together, this creates the infrastructure for a powerful, secure, and scalable trustless computing cloud.

As a member parachain of the Polkadot cross-chain ecosystem, Phala will be able to provide computing power to other blockchain applications while protecting the data layer, enabling possibilities like privacy-protected DeFi trading positions and transaction history, co-computing DID confidential data, developing light-node cross-chain bridges, and more.

On-chain services currently being developed on Phala Network include Web3 Analytics: high-performance smart contracts from Phala to enable highly concurrent mass data analytics with privacy, paving the way for an alternative to Google Analytics that inherently respects individual confidentiality.

🍽 — Subscribe | Website | Twitter | Github

🥤 — Discord | Forum | Telegram |Italiano |Français | Persian | Korean

About SubQuery

SubQuery is a data aggregation layer that will operate between the layer-1 blockchains (Phala and Polkadot) and DApps (like Phala’s chain bridge). This service unlocks chain data and transforms it to a queryable state so that IT can be used in intuitive applications. It allows DApp developers to focus on their core use case and front-end, without needing to waste time on building a custom backend for data processing.

Website | Email | Discord | Telegram | Twitter | Matrix | LinkedIn | GitHub

--

--

SubQuery Network
SubQuery Network

Written by SubQuery Network

Pioneering fast, flexible, and scalable web3 infrastructure. Supercharge your dApp with SubQuery today. https://subquery.network/