Introduction
Why choose OKX WaaS

Why choose OKX WaaS#

Blockchain wallets are not only tools for users to store encrypted assets and send transactions, they now represent the user's digital identity, and are undoubtedly the entrance to the blockchain world. However, the underlying technology of the wallet is far more complicated than its surface interaction. The intricate technical architecture, the extremely demanding stability requirements, and the uncompromising security standards are all obstacles that hinder ordinary developers from integrating blockchain wallet functions into their products.

For this reason, we have launched the OKX WaaS product (Wallet as a Service). OKX has been deeply cultivating the Web3 frontier for a long time. Since its launch, OKX Wallet has won countless praises for its excellent user experience and outstanding performance. Based on the same underlying technology, OKX WaaS can provide enterprises with a safe, reliable, and easy-to-use wallet solution. Developers no longer need to face the wallet technology itself, but can invest more energy into user needs and business innovation.

OKX WaaS Structure#

image

User API Layer#

The user API layer provides end users with the ability to interact with their wallets and achieve a smooth transaction experience. Its core functions are based on the open-source SDK, which includes:

  • Private key management: Includes the creation and derivation of private keys.
  • Address management: Includes the generation and verification of addresses.
  • Transaction signing: Used for the transaction signing process.
Note
Note: Developers need to ensure the security of private keys.

Application Layer#

The application layer aims to build the basic modules of a typical Web3 wallet and implement data management, asset management, and transaction management functions through APIs. APIs mainly include:

  • API:
    • Basic information management: Basic on-chain information is used to support information queries of all supported chains.
    • Asset management: Wallet asset information management API is used to support coin and asset queries.
    • Transaction management: Transaction sending function API is used to support Gas query, transaction broadcasting, and transaction history queries.
    • Subscription management: Real-time acquisition of transaction data API, supporting transaction supporting the ability to subscribe and unsubscribe to transaction data.
  • Wallet: Underlying application, used to manage and interact with assets and applications related to the blockchain. It provides the function of securely storing cryptocurrencies, digital assets, and private keys, and allows users to complete message signing, transaction sending, and DApp access functions.
  • DEX: Upper-level application, a one-stop multi-chain, cross-chain aggregated trading platform. With the "X Routing" intelligent routing split order algorithm, it can automatically calculate the optimal trading path and transaction volume split, providing users with lower slippage and network fees when trading on multi-chain and cross-chain scenarios.
  • Marketplace: Upper-level application for a decentralized, multi-chai NFT aggregated trading platform. It supports multi-chain NFT creation and cross-platform transactions, can provide users and developers with real-time, on-chain data, and is committed to the construction of a decentralized, multi-chain NFT ecosystem.
  • DeFi: Upper-level application, on-chain financial management platform. It supports depositing digital assets into on-chain protocols, providing various real-time, updated, and excellent financial products to help users earn an income.

Data Layer#

The role of the data layer is to structure and store heterogeneous, on-chain data to provide data support for the application layer. In addition, it can also discover more data value through data analysis and data monitoring, and realize early warning of potential risks. Mainly includes:

  • Data structuring: Ensures smooth access to upper-level businesses to create a unified data structure by standardizing the block and transaction data of different public chains
  • Data storage: Stores block transactions (such as pending, confirmed, internal transactions, etc.), addresses, balances, contracts, and other data to improve data reliability and query efficiency.
  • Data analysis: Completes on-chain data analysis with the help of AI and big data mining models, and identifies data value, such as token scoring, on-chain address behavior analysis, data labeling, etc.
  • Data monitoring: Governs and monitors on-chain data events, and provides early warning for potential risks, such as on-chain data security, Pixiu disk monitoring, on-chain large transfer monitoring, etc.

Interaction Layer#

The interaction layer can obtain real-time and accurate on-chain node data by by relying on the underlying data synchronization and data parsing.

  • On-chain data synchronization: We have combined the event push and data pull into one event, to ensure the accuracy of real-time, on-chain data for application services. It specifically includes new blocks, confirmed transactions, unconfirmed transactions and other data, and can sense on-chain events such as block reorganization, rollbacks, and forks in real time.
  • On-chain data parsing: Parse node data of different public chains and convert it into a common data structure, thereby shielding the difference of on-chain data for the upper layer. It specifically includes two types: transaction parsing (internal transactions, token transactions, authorization transactions, etc.) and contract parsing (liquidity depth parsing, transaction pair parsing).

On-chain Nodes#

On-chain nodes include OKX Web3’s own nodes, dedicated nodes, and third-party node clusters. It supports most mainstream public chains, various RPC servers and node cloud architectures, and can provide comprehensive and stable blockchain node services.