
Invisible Infrastructure 01 | Co-creating with Global Developers: A Comprehensive Analysis of OKX Web3 Wallet API
TechFlow Selected TechFlow Selected

Invisible Infrastructure 01 | Co-creating with Global Developers: A Comprehensive Analysis of OKX Web3 Wallet API
Innovation doesn't have to start from scratch—it can start with an API. Move forward with OKX Web3 Wallet.
Driven by its innovative DNA, OKX Web3 Wallet continuously refines its product internally while actively exploring co-creation externally.
In pursuing broad-based collaboration, OKX Web3 Wallet leads in open-sourcing code and increasingly strengthens its API infrastructure. These efforts hold significant importance within the blockchain technology ecosystem—accelerating technological innovation and development efficiency, enhancing system transparency, interoperability, and security, advancing the growth of the Web3 community and ecosystem, improving user experience, and promoting industry standardization.
Moreover, by open-sourcing code and opening APIs, OKX Web3 Wallet lowers development barriers and establishes extensive connections, enabling global developers to collaborate, learn, grow, and innovate together—ultimately advancing the foundational infrastructure of the crypto industry.
Functions such as APIs, which are often invisible or not immediately noticeable to end users during product usage, function like the "invisible infrastructure" of OKX Web3 Wallet—critical yet rarely widely recognized. Given the lack of existing public content on OKX Web3 Wallet’s APIs, this article focuses specifically on the API layer. Through a comprehensive analysis of OKX Web3 API capabilities, we aim to attract and assist more developers in turning ideas into reality and innovations into tangible outcomes. This marks the first installment of OKX Web3's Invisible Infrastructure series and the inaugural edition of the OKX Web3 API series. The next issue will explore, through interviews, the stories behind the API development at OKX Web3.
OKX Web3 Wallet API Framework
An API, or Application Programming Interface, refers to a set of definitions and protocols used for building and integrating software applications. APIs enable communication and data exchange between different software systems. With APIs, developers can leverage existing functionalities and data without having to write code from scratch. APIs significantly improve development efficiency, promote system interoperability, and drive technological innovation.
As a leading all-in-one Web3 gateway, OKX Web3 offers a complete Web3 development solution—OnchainOS. As a multi-chain Web3 development engine, OnchainOS standardizes access to blockchains and services, dramatically reducing development cycles and costs. It encompasses major modules such as wallet, DEX aggregator, marketplace, DeFi, and provides comprehensive solutions ranging from trading liquidity to on-chain data. For developers aiming to build their own Web3 services, adopting OnchainOS is a more efficient and cost-effective choice.
To better serve developers, greatly lower development barriers, and enhance efficiency, OKX Web3 provides an extremely comprehensive, detailed, and visually illustrated API documentation, available for interested developers to view and use step-by-step.
OKX Web3 Wallet now supports over 100+ public blockchains and delivers a unified user experience across app, browser extension, and web platforms. Covering five core areas—wallet, DEX aggregator, DeFi, NFT marketplace, and DApp discovery—it also features dedicated marketplaces for Bitcoin Ordinals and Runes, committed to offering users comprehensive Web3 services.
Below, we’ll introduce selected API functionalities using the wallet, DEX aggregator, marketplace, and DeFi modules as examples.
Wallet API
As the core of the entire product, the Wallet API provides the underlying technical framework for non-custodial wallets, enabling developers to easily build on-chain services and applications—such as multi-chain Web3 wallets, built-in DApp wallets, multi-chain Web3 apps, and exchange wallet services.
The Wallet API offers three key capabilities in wallet services: 1) Multi-chain address aggregation with support for asset statistics across millions of addresses; 2) Multi-scenario integration with seamless access to 60+ networks, supporting heterogeneous multi-chain ecosystems and various BTC asset protocols; 3) High availability and stability via robust interface and system monitoring to ensure smooth integration.
With the Wallet API, developers can securely and efficiently set up a wallet in just three steps, gaining access to 60+ networks—including popular EVM, Solana, TRON, BTC chains—and even cutting-edge ecosystems like Ordinals. Future updates will gradually introduce MPC wallets and AA smart wallet account capabilities and solutions. With powerful wallet services, OKX Web3 fully meets developers’ needs for Web3 wallet development and simplifies the Web3 onboarding process.
Specifically, the Wallet API includes multiple core modules that fulfill basic asset management and transaction needs. These include address and wallet generation, on-chain asset and price information queries, transaction management, and other common data lookups such as token details, gas prices, and address authorization. The transaction management module offers rich functionality: constructing, signing, broadcasting, tracking transactions, querying transaction history, supporting transactions on EVM-style account model networks, and UTXO-model networks like BTC. Overall, developers can use the Wallet API for account management, asset management, transaction management, common data queries, and Webhooks (real-time subscription to on-chain data), among others.
First, in account management. Unlike typical single-address query models, the Wallet API supports structured subscription queries across multiple addresses. Developers can associate multiple addresses with one account, enabling efficient queries of asset status and transaction history across multi-chain scenarios. The Wallet API offers two types of accounts: wallet accounts and watch-only accounts. Specifically: 1) Wallet accounts require message signatures for authentication, allow custom tokens to be added, and support sending transactions. 2) Watch-only accounts do not require message signatures, display all tokens indexed by the OKX platform by default, but cannot send transactions.
Through the Account Management API, developers can create and manage wallet account addresses, aggregate watch-only addresses, update wallet/watch accounts, delete accounts, retrieve lists of created accounts, and query addresses under an account.
Second, in asset management. This includes subscribing to new tokens, retrieving balance amounts, viewing total assets, and removing unwanted assets. Notably, wallet accounts allow developers to add and manage custom tokens. Watch-only accounts, however, only provide balances for tokens already supported by the Wallet API and do not allow customization.
Through the Asset Management API, developers can add tokens, retrieve token balances for wallet and watch accounts, get balances for specific tokens, calculate total asset value, remove tokens, and query token lists.
Third, in transaction management. This covers transaction sending and transaction history queries. Using the Transaction Management API, developers can retrieve data required for signing, such as gas price, gas limit, and nonce; validate addresses; query transaction details by transaction hash or order ID; and retrieve transaction lists by account or address.
Fourth, regarding other functions. Developers can also query chain-related information such as UTXO and token details via API, or use Webhooks to subscribe to block and transaction events, creating up to 20 subscriptions in batch per request.
DEX Aggregator API
OKX DEX Aggregator is an all-in-one, multi-chain DEX and cross-chain aggregator that currently integrates 25+ cross-chain bridges, 40+ public chains, and over 400 DEXs. Powered by X Routing intelligent routing, it enables a single trade to utilize multiple DEXs simultaneously, offering users better prices, superior liquidity, and zero trading fees. It also features DEX market data, limit orders, and KYT security checks.
Its core consists of single-chain Swap and Bridge functionalities, both relying on on-chain data parsing to complete trades. Depending on the token pair, trades follow different patterns—for example, source chain swap + bridge, direct bridge, or source swap + bridge + target swap for cross-chain transactions. At the heart of this system is OKX’s proprietary XBridge contract, supporting cross-chain operations between major EVM chains, heterogeneous chains, and between EVM and non-EVM chains.
Developers and professional users can use the DEX Aggregator API documentation to build Web3 trading services and applications, including Web3 wallets, DApps, and DeFi projects.
The OKX DEX Aggregator API stands out with multi-chain support, integration across multiple cross-chain bridges and DEXs, and high stability and availability. With response times under 100 milliseconds, it also offers free access to optimized pricing routes. Currently, the API primarily includes Swap API, Bridge API, and Limit Order API—designed for easy, intuitive, and secure integration.
First, in swap functionality. OKX DEX Aggregator pools liquidity from leading decentralized exchanges such as Uniswap, Curve, and Balancer, splitting single trades across multiple DEXs. Its efficient routing delivers better prices by automatically identifying pools with deeper liquidity, calculating price, slippage, and transaction costs, and applying smart order-splitting algorithms. By comparing quotes from DEXs and PMMs, it optimizes across three dimensions: greater liquidity, lower slippage, and better pricing.
Using the Swap API, developers can retrieve supported chains, token lists, liquidity sources, transaction authorization, swap pricing, and transaction data from OKX DEX Aggregator.
Second, in cross-chain functionality. OKX DEX Aggregator integrates top-tier cross-chain bridges such as Circle CCTP, Stargate, Across, Wormhole, and SWFT, offering users multiple cross-chain paths. It enables workflows where users swap on the source chain, bridge across, then swap again on the destination chain to obtain their desired token. OKX’s proprietary X Routing algorithm automatically identifies optimal liquidity pools on the source chain, computes price, slippage, and costs, and splits orders intelligently for better output. Then, it compares multiple premium bridges, evaluating outbound amount, bridge fee, slippage, and cost to deliver the best cross-chain quote.
Using the Bridge API, developers can retrieve supported chains for cross-chain swaps, token lists, bridge details, route information, transaction authorization, transaction data, and track transaction status.
Third, in limit order functionality. OKX DEX Aggregator’s Limit Order allows users to buy or sell tokens on DEXs at a specified target price. If the current market price meets the user’s target, the order is automatically executed. Through the Limit Order API, users can create and query limit orders via API and contribute liquidity to the aggregator, benefiting from improved pricing.
The OKX DEX Aggregator Limit Order API features execution dependent on other users taking the order, zero slippage for order creators, and partial fill support. Developers can use the Limit Order API to retrieve supported chains, transaction authorization, token lists, create limit orders, and query existing orders.
Marketplace API
OKX Marketplace includes EVM NFT Marketplace, Runes Marketplace, Ordinals Marketplace, and Launchpad, supporting 26 major public chains including Bitcoin and Ethereum.
First, the EVM NFT Marketplace. OKX NFT Marketplace is an all-in-one decentralized NFT aggregation trading platform that aggregates Opensea, Magic Eden, Looksrare, and others. It allows NFT holders to list their works across multiple markets simultaneously, achieving higher liquidity at lower transaction costs. It also supports multi-chain NFT creation and cross-platform trading, providing real-time on-chain data for users and developers, and aims to build a decentralized, multi-chain NFT ecosystem. Currently, OKX NFT Marketplace aggregates order depth from major platforms and indexes vast NFT collection data, delivering timely and accurate on-chain data to developers and users.
OKX NFT API offers two main functions: data queries and trading. Data includes NFT and collection information, transaction data. Trading supports one-click listing across multiple markets and bulk purchasing of lower-priced orders across markets. Developers can use the NFT Marketplace API to retrieve NFT details and lists, collection details and lists, supported networks and markets, and query listings, bids, and purchase orders.
Second, the OKX Runes Marketplace. As the industry’s first platform to offer Rune trading within its mobile app, OKX Runes Marketplace enables users to batch purchase and etch Rune assets with zero platform fees. Going forward, OKX will continue optimizing and adding new features based on user feedback.
Developers can use the OKX Runes Marketplace API to retrieve collection info, trending collections, transaction history, wallet assets, order details, and submit listings.
Third, the OKX Web3 Wallet Ordinals Marketplace is the largest BRC20 inscription and BTC NFT trading market. Fully decentralized, it charges no platform fees and supports one-stop transfer, trading, and minting of BRC-20 and BTC NFTs.
Developers can use the Ordinals Marketplace API to create listings, retrieve inscription asset lists, submit listings, and access collection lists, orders, transaction history, and related models.
DeFi API
OKX Web3 DeFi is a leading all-in-one DeFi trading aggregation platform, helping users quickly and accurately find suitable yield-generating products. It currently integrates over 80 protocols including Aave, Compound, Curve, Yearn, and Uniswap, and supports more than 15 networks such as Arbitrum, Ethereum, and Polygon.
OKX Web3 DeFi API details the data interaction flow throughout the user transaction process, covering subscription, redemption, and reward claiming procedures. By integrating the OKX Web3 DeFi Open API into their applications, developers can enable users to easily and rapidly access all DeFi protocols and enjoy earning opportunities during DeFi transactions.
Specifically, developers can achieve multiple functions via the OKX Web3 DeFi API. First, in information queries, they can retrieve protocol lists, token lists, product lists, product details, and network lists. Second, in calculations, they can fetch estimated values for subscriptions and redemptions. Third, in transactions, they can generate call data for pre-transaction approvals, subscription transactions, redemption transactions, and reward withdrawal transactions. Fourth, at the user level, they can query user positions, balance lists, and redemption request lists.
Innovation as Foundation, Advancing with Global Developers
In today’s fast-evolving blockchain and cryptocurrency landscape, open-source initiatives and open APIs have become vital drivers of technological innovation and industry advancement. By promoting code openness and API accessibility, OKX Web3 Wallet not only provides global developers with stable, reliable technical support, abundant resources, and convenient tools but also enhances industry-wide transparency, interoperability, and community collaboration.
The design and implementation of OKX Web3 Wallet’s APIs reflect a deep understanding of and relentless pursuit of innovation. By building APIs, OKX Web3 Wallet offers developers a powerful and flexible platform—a standardized interface to access and leverage its platform capabilities—enabling them to innovate on existing foundations and rapidly develop and deploy new decentralized applications (DApps). For instance, developers can use API endpoints to build innovative DeFi protocols, decentralized exchanges (DEXs), and other blockchain applications, unleashing their creativity and technical expertise to propose novel ideas and solutions that collectively push the boundaries of technology.
At the same time, open APIs allow developers and users to clearly understand and utilize all features of OKX Web3 Wallet. This transparency helps build user trust in the platform and accelerates adoption. For example, developers can consult API documentation to understand each endpoint’s exact function and usage, allowing better utilization of these resources. By opening its APIs, OKX Web3 Wallet demonstrates a clear commitment to openness and transparency. This approach not only enhances the platform’s credibility but also attracts more developers and users into the ecosystem, enriching application scenarios and jointly driving platform growth.
In the long term, by attracting more developers and projects, OKX Web3 Wallet can achieve deeper integrations with other blockchain platforms and service providers, forming an interconnected blockchain ecosystem. This fosters broader technological progress and application expansion across the industry, laying a solid foundation for a more open and collaborative ecosystem—and further propelling the platform’s own prosperity.
In summary, OKX Web3’s API development reflects a visionary mindset: “What we’re doing now is all for the future.”
Disclaimer
This article is for informational purposes only. It represents the author's views and does not reflect the position of OKX. This article is not intended to provide (i) investment advice or recommendation; (ii) an offer or solicitation to buy, sell, or hold digital assets; or (iii) financial, accounting, legal, or tax advice. We do not guarantee the accuracy, completeness, or usefulness of the information provided. Holding digital assets (including stablecoins and NFTs) involves high risk and may experience significant volatility. You should carefully consider whether trading or holding digital assets is suitable for you based on your financial situation. For your specific circumstances, please consult your legal/tax/investment professionals. You are solely responsible for understanding and complying with local applicable laws and regulations.
Join TechFlow official community to stay tuned
Telegram:https://t.me/TechFlowDaily
X (Twitter):https://x.com/TechFlowPost
X (Twitter) EN:https://x.com/BlockFlow_News











