Liquality is an open-source platform for building decentralised cross-chain applications on various blockchain networks. It was developed to allow users to exchange digital assets securely and efficiently between different blockchain networks without the need for a centralised exchange or a trusted third-party.
Key Features:
1. Decentralized Cross-Chain Exchange: Liquality enables secure and efficient exchange of digital assets across various blockchain networks without relying on centralized exchanges or intermediaries. Users can conduct cross-chain swaps between supported cryptocurrencies, such as Ethereum, Bitcoin, Rootstock, Polygon, Avalanche, Binance Smart Chain, Near, Arbitrum, and Optimism, with just one click.
2. Open-Source Platform: Liquality is an open-source project, allowing developers to build decentralized cross-chain applications using the platform's technology. This promotes transparency, community collaboration, and innovation within the ecosystem.
3. Liquality Wallet Extension: The Liquality Wallet is a browser extension that empowers users to manage their crypto assets and access the decentralized web. It offers a seamless interface to interact with multiple blockchain networks, facilitating cross-chain swaps and enabling users to maintain full control of their private keys.
4. Liquality Web3 SDK: In addition to the wallet extension, Liquality offers a Web3 Software Development Kit (SDK). This SDK extends the functionalities of Liquality to web3 applications and allows developers to integrate web3 values and technologies into web2 spaces. The goal is to bring the benefits of self-custody and interoperability to traditional web applications while making it easy for developers to adopt web3 principles.
5. Frictionless User Experiences: Liquality's Web3 SDK aims to address the complexities and friction associated with current API-based web3 solutions. By incorporating self-custody and interoperability, Liquality strives to boost user engagement and provide true user ownership of assets, fostering seamless experiences for users and developers alike.
6. Applications in Gaming and Beyond: The Liquality Web3 SDK finds application in various domains, such as gaming, where true user custody of in-game assets and interoperability between games are becoming essential features. Additionally, the SDK can be integrated into web3 browsers, social networks, metaverse applications, wallets, and NFT/digital art marketplaces to enhance user experiences and promote wider adoption of decentralized technologies.
How to install Liquality wallet extension ?
-
To download and install the Liquality Wallet, go to Liquidity’s official chrome store listing in Chrome, Brave, or Edge and install the extension safely from the Chrome Web store.
-
Always double-check that the extension ID matches: kpfopkelmapcoipemfendmdcghnegimn.
-
Click on the Liquality wallet extension icon to open the extension. Follow the on-screen instructions to set up your wallet, including creating a new wallet or importing an existing one if applicable.
-
You can check their extension’s source code here.
You can also refer to this tutorial for installation:
Initializing Liquality Web3 Wallet SDK
Liquality provides the first self-custodial wallet-as-a-service platform to help build immersive, seamless, and customizable gaming or app experiences. The invisible web3 wallet platform is easy to integrate and will cut your time to launch to a minimum.
The wallet API and SDK provide all the necessary tools and resources to include customized wallets into your web3 game or application. It allows for quick integration into an existing product or platform, giving your users the power to securely store, send, and receive digital assets.
1. Installation:
You can use npm or yarn to install the Liquality SDK
npm install @liquality/wallet-sdk
yarn add @liquality/wallet-sdk
2. Setup API Keys:
Liquality SDK relies on API keys from different providers we use to fetch blockchain data. Before you can utilize all of the different functions Liquality SDK has to offer, you should export the sdk.setup()function which you can easily use in all of your files and components.
Example of a file where you export the setup function
import { setup } from "@liquality/wallet-sdk"; export function setupSDK() {
setup({ alchemyApiKey: "YOUR_API_KEY_HERE", etherscanApiKey: "YOUR_API_KEY_HERE", infuraProjectId: "-", pocketNetworkApplicationID: "-", quorum: 1, slowGasPriceMultiplier: 1,
averageGasPriceMultiplier: 1.5, fastGasPriceMultiplier: 2, gasLimitMargin: 2000, gelatoApiKey:"", //needed for gasless transactions });
}
Example of how to use it in a React component
import { setupSDK } from "../setupSDK"; import { NftService } from "@liquality/wallet-sdk"; import React, { useState } from "react";
export default function Collectibles() { setupSDK(); const [nfts, setNfts] = useState([]); const fetchNfts = async (address: string, chainId: string) => { const nfts: any = await NftService.getNfts(address, +chainId); console.log(JSON.stringify(nfts)); setNfts(nfts); }...
3. Service worker setup:
The seamless login experience with social single-sign-on is dependent on the service worker which need to be registered in the project.A service worker is a script that runs in the browser and operates separately from the DOM. It comes with several built-in network features. The Liquality SDK requires a service worker specific to the baseUrl to capture authentication redirects for the social single sign on.
To set up a service worker with React, you need to create a sw.js file in the public folder and register it in the index.html file. There is more information on how to do this in these outside resources.
-
React see this guide
-
Angular see this guide
-
Vue see this guide
4. Production Environment
If you are hosting your application in production enviornment, you also need to create a environment variable called PUBLIC_URL at the web hosting platform you use. See below example of how it would look like in Vercel:
5. Webpack and Dependancy Issue:
When starting a new web3 project from scratch, it's probable that you will encounter dependency issues that require polyfilling. This arises because web3.js and ether.js, which are utilized by the Liquality SDK, rely on specific dependencies that are not available in the browser environment through webpack 5. To address this, you'll need to apply polyfills for certain modules in your project to enable and override their functionality. For further guidance on the Polyfill Solutions, please refer to this document for the Polyfill Solutions.
Conclusion
Liquality is an open-source platform facilitating secure cross-chain asset exchange without centralized intermediaries. Its browser extension, the Liquality Wallet, enables easy management of crypto assets across various blockchains. With the expansion into a Web3 SDK, Liquality promotes self-custody and interoperability in web2 spaces. This frictionless approach finds applications in gaming, NFT markets, web3 browsers, and social networks, driving wider adoption of decentralized technologies. Liquality remains at the forefront of the evolving blockchain landscape, advocating for true user ownership and seamless interoperability.
Additional Reference
Here are some other docs that would help you going forward with the Liquality SDK:
-
Liquality SDK documentation
Frequently Asked Questions
Q1. Which tokens and chains are currently supported by Liquality?
A. Liquality currently supports Bitcoin (BTC), Ethereum (ETH), and ERC20s Dai (DAI), USD Coin (USDC), Tether (USDT), Wrapped Bitcoin (WBTC), Uniswap (UNI), Rootstock (RBTC), NEAR (NEAR), and Polygon (MATIC) for atomic swaps.
Q2. Which browsers are compatible with Liquality?
A. Currently, the Liquality Atomic Swap Wallet and Atomic Swap Interface work on both Chrome and Brave browsers.
Q3. What is the web3 wallet API/SDK ?
A. The Liquality Wallet API and SDK enable easy integration of customized wallets into web3 games or applications. It offers secure storage, sending, and receiving of digital assets, with a simple setup process and detailed documentation for developers.
Q4. How does the web3 wallet API/SDK work?
A.Liquality's self-custodial and extensible wallet libraries serve as the foundation for various integrations like LiFi and DeBridge. Their platform is chain-agnostic, supporting multiple blockchains. They provide the underlying infrastructure for in-app wallets and are expanding by building a self-custodial, extensible wallet API network on top of their existing wallet libraries.