1.XRGB Wallet Architecture🍭🍭

The XRGB Wallet architecture consists of four layers

1.1. Infrastructure Layer🌈🌈

This layer comprises modules that facilitate interaction with the underlying blockchain networks. Its primary focus is on the BTC blockchain, Lightning Network, and other BTC Layer2 blockchains and protocols. It facilitates asset management, message signing, and transaction execution on these blockchains. Additionally, XRGB USB seamlessly integrates various interoperable blockchains, protocols, and assets within the BTC ecosystem.

1.2. Protocol Layer🌈🌈

The Protocol Layer supports various protocols, including:

Babylon Staking Protocol: Allows users to stake BTC directly from the wallet to become candidates for different POS blockchains' validators.

Lending Protocol: introduces support for borrowing and lending of the assets in BTC layer2s and other mainstream blockchains through a pool-based liquidity protocol, utilizes the design of Compound v2

AMM: To unlock easy access to trading for BTC Layer2s users, XRGB wallet introduces a decentralized exchange (DEX). The DEX serves as capital source for liquidations on in the liquidity protocol, follows the Uniswap v2 design for wrapped BTC with any other crypto assets and Curve StableSwap AMM for low-slippage swaps between assets, e.g., BTC and wrapped BTC.

Bridge Protocol Support: Facilitates interoperability with various blockchain assets through protocols like XRGB USB, CoreDAO bridge, and others.

Stamps Protocol: A Protocol for Storing Images On-Chain in Transaction Outputs Immutably on Bitcoin, embedding base64-formatted image data using transaction outputs in a novel fashion.

1.3. Data Layer🌈🌈

The Data Layer offers comprehensive dashboards and information, organized as follows:

  • Data Structuring: This component standardizes block and transaction data from various public chains, facilitating smooth access for upper-level businesses and establishing a unified data structure.

  • Data Storage: It involves storing a wide range of block transaction data, including pending, confirmed, and internal transactions, as well as addresses, balances, contracts, and more. This enhances data reliability and query efficiency.

  • Data Analysis: Utilizing AI and big data mining models, this module performs in-depth on-chain data analysis. It extracts valuable insights such as token evaluation, on-chain address behavior analysis, and data labeling.

  • Data Monitoring: This aspect focuses on the governance and monitoring of on-chain data events. It provides early warnings for potential risks, including on-chain data security issues, Pixiu disk monitoring, and large transfer monitoring on the blockchain.

1.4. Application Layer🌈🌈

The Application Layer integrates decentralized finance (DeFi), GameFi, SocialFi, NFT marketplaces, and other applications.

  • DEX: Advanced trading platform operating on blockchain technology. Facilitating peer-to-peer trading of cryptocurrencies without the need for an intermediary. A notable feature is the "X Routing" intelligent routing split order algorithm, which calculates the most efficient trading path and volume split. This innovative approach minimizes slippage and network fees, especially in multi-chain and cross-chain trading scenarios. Providing users with greater privacy, security, and control over their assets compared to traditional centralized exchanges.

  • Marketplace: A decentralized platform for trading NFTs, unique digital assets verified using blockchain technology. Supporting multi-chain NFT creation and transactions across different platforms. Providing real-time, on-chain data to users and developers, fostering a decentralized, BTC ecosystem NFT. Enableing artists, creators, and collectors to buy, sell, or trade NFTs, often including artwork, music, videos, and other forms of digital content.

  • DeFi: Blockchain-based financial applications that allow users to lend, borrow, trade, and earn revenue on their digital assets without traditional financial intermediaries. Users can deposit their digital assets into various on-chain protocols and access a range of financial products with real-time updates. Offering innovative financial services, including yield farming, liquidity mining, and staking, providing opportunities for users to earn revenue on their investments.

  • SocialFi (Social Finance): SocialFi combines social network with decentralized finance. It leverages blockchain technology to create a new paradigm in social media where users have more control over their data and can monetarily benefit from their online social activities. SocialFi platforms could reward users with tokens for creating content, engaging with others, or participating in platform governance. This model promotes a more fair distribution of value among all participants in the social network.

  • GameFi (Game Finance): GameFi refers to the integration of gaming and decentralized finance. It is a sector within the broader blockchain gaming industry where players can earn real-world financial rewards through gameplay. In GameFi, in-game assets such as characters, props, and virtual land are often tokenized as NFTs, allowing players to own, buy, sell, and trade these assets in a decentralized manner. The play-to-earn model of GameFi enables players to generate income as they engage in gaming activities, contributing to the game's ecosystem.

2.Comparison of BTC Ecosystem Wallets🍭🍭

XRGBOKX WalletUnisat Wallet

Social Login

BTC Mainnet

Lightning Network

RGB Assets

Taproot Assets

Nostr Assets








Atomicals NFT








BTC Layer2 Bridge

BTC Layer2 Defi

BTC Staking

BTC NFT Marketplace

Last updated