Introduction to 0x | 0x (2024)

tip

Prefer to watch a video instead? Jump to 0x Videos.

What is 0x?

0x is a developer's one-stop shop to build financial products on crypto rails. 0x provides a suite of APIs that enable developers to build faster, find the best prices, and create superior UX for their customers. Our suite of APIs has processed over 71 million transactions and $148B+ in volume from more than 8 million users and is used by many of the top trading apps including Coinbase Wallet, Robinhood Wallet, Matcha, Metamask, Zerion, Zapper, and more.

Introduction to 0x | 0x (1)

Why use 0x?

At 0x, we believe all forms of value will eventually be tokenized and settle on-chain. Because more and more forms of value are tokenized, liquidity is increasingly more fragmented across different blockchains and different DEX protocols on the chains. This makes it increasingly challenging to access tokens - not every liquidity source has every token, not every token is available on every chain.

0x offers APIs to easily access and navigate this fragmented liquidity:

  • Swap API - The most efficient liquidity aggregator for ERC20 tokens through a single API.
  • Gasless API - Never lose a user trade because of gas. Easily build frictionless apps with end-to-end gasless infra.

Introduction to 0x | 0x (2)

tip

ELI5 0x

0x helps you aggregate liquidity and find the best price, similar to what Google Flights does for flights. Just as Google Flights aggregates options from multiple airlines to help you find the best flights, 0x aggregates liquidity from various decentralized exchanges to help you find the best prices for trading digital assets. Both simplify the process: Google Flights makes booking flights easier by providing a user-friendly platform to compare and book directly, while 0x streamlines trading by offering APIs that enable secure and efficient transactions. This saves you time and effort by eliminating the need to visit multiple sources to find the best route.

The 0x Ecosystem

0x Tech Stack

0x's professional-grade APIs are built on the 0x Settler, a secure, audited smart contract. Applications building on these tools are part of the 0x Ecosystem.

Introduction to 0x | 0x (3)

Makers and Takers

Within the 0x Ecosystem, there are two sides - Makers and Takers:

Supply (aka Makers)

This is the entity who creates 0x orders and provides liquidity into the system for the Demand side (Takers) to consume. 0x aggregates liquidity from multiple sources including:

  • On-chain liquidity - DEXs, AMMs (e.g. Uniswap, Curve, Bancor)
  • Off-chain liquidity - Professional Market Makers, 0x's Open Orderbook network

Relevant Docs:

  • Market Makers - Professional Market Making With Limit Orders

Demand (aka Takers)

This is the entity who wants the Maker's asset. The Takers agree to trade their asset for the Maker's asset; in other words, they consume the 0x liquidity. Examples include projects as wallets, portfolio trackers, DAO tooling, NFT marketplaces.

Relevant Docs:

  • Swap API - The most efficient liquidity aggregator for ERC20 tokens through a single API.
  • Gasless API - enable developers to build frictionless apps with end-to-end gasless infrastructure

How does 0x work?

Let’s look into how a 0x order is executed.

Introduction to 0x | 0x (4)

  1. A Maker creates a 0x order which is a json object that adheres to a standard order message format (see list of all 0x order types here). It indicates what kind of asset the Maker is committed to trade. Assets could include fungible tokens (ERC20), non-fungible tokens (ERC721), or bundles of assets (ERC1155).
  2. The order is hashed, and the Maker signs the order to cryptographically commit to the order they authored.
  3. The order is shared with counter-parties.
    • If the Maker of the 0x order already knows their desired counter-party, they can send the order directly (via email, chat, or over-the-counter platform)
    • If the Maker doesn’t know a counter-party willing to take the trade, they can submit the order to orderbook.
  4. 0x API aggregates liquidity across all the supply sources to surface the best price for the order to the Taker. 0x helps traders create, find, and fill the 0x orders through the paradigm of off-chain relay and on-chain settlement. This means that 0x does not store orders on the blockchain; instead, orders are stored off-chain, and trade settlement only occurs on-chain. This unique feature makes 0x flexible and gas-efficient for developers to build on.
  5. The Taker fills the 0x order by submitting the order and the amount they will fill it for to the blockchain.
  6. The 0x Settler's settlement logic verifies the Maker’s digital signature and that all the conditions of the trade are satisfied. If so, the assets involved are atomically swapped between Maker and Taker. If not, the trade is reverted.

What can I build on 0x?

Below is a non-exhaustive list of projects that have been built on 0x. Note that 0x can also be integrated into any existing application where exchange is not the core purpose of the application. For more examples this blog post.

Demand (Takers)

  • Exchanges
    • A decentralized exchange for X asset on Y market
    • An Ebay-style marketplace for digital goods
    • An over-the-counter (OTC) trading desk
  • Wallets
    • Digital wallets whose users want to exchange tokens
  • Options and derivatives platform
    • A DeFi protocol that needs liquidity and exchange to function (e.g. a derivatives, lending, or options protocol)
  • Portfolio managers
  • Prediction markets
  • Non-fungible tokens (NFT) Exchange
    • NFT marketplace
    • Games with in-game currencies or items
  • Investment strategies (e.g. DeFi index funds, DCA apps)
  • Data
    • 0x multi-chain analytics portal
    • Real-time trades panel w/ GraphQL wrappers

Supply (Makers)

  • Orderbook models
  • Automatic Market Makers (AMM) models
  • Market Makers
    • A market making or arbitrage trading bot
Introduction to 0x | 0x (2024)

FAQs

What does 0x do? ›

0x (ZRX 8.2%) is a decentralized exchange infrastructure. It enables users to trade crypto tokens across multiple blockchains, and it searches different exchanges to find the best deal on each transaction. ZRX is its native cryptocurrency and utility token, and token holders can vote on project proposals.

What is start with 0x? ›

Hexadecimal numbers are usually prefixed with the characters '0x' which are not part of the number. A single hexadecimal digit can represent four binary digits!

What is 0x equal to? ›

Anything times zero gives zero.

Why should I use 0x? ›

Why use 0x? ​ At 0x, we believe all forms of value will eventually be tokenized and on chain. Because more and more forms of value are tokenized, liquidity is increasingly more fragmented across different blockchains and different DEX protocols on the chains.

Why do people use 0x? ›

0x is an open-source, decentralized exchange infrastructure that enables the exchange of tokenized assets on multiple blockchains. Developers can use 0x to incorporate exchange functionality into their applications, and market makers can use 0x to create markets for cryptocurrencies and tokens.

Why do wallets start with 0x? ›

Ethereum addresses always start with 0x. This is because 0x is a common prefix that indicates a string of characters is written in hexadecimal. All EVM-compatible networks also use the prefix 0x.

What kind of data is 0x? ›

Integers can be expressed in decimal, octal, or hexadecimal notation. The octal notation requires an initial “0” (zero), while hexadecimal notation requires an initial “0x” (zero x).

What is the base of 0x? ›

It's a hexadecimal number. The numbers starting with 0x are hexadecimal (base 16). 0x6400 represents 25600 .

Is 0x just 0? ›

When we multiply any number, any variable, any expression, any equation with zero the result is always zero. So, when we multiply 0 by x and write it as 0x, it makes no sense because ultimately the answer is zero. So, usually in practice we do not use such thing as 0x.

What is a 0x equivalent to? ›

0x is 1 size larger than an XL, but smaller than a 1X. There are 4" difference in material measurements between XL and 1X sizes, 0x is 2" larger than an XL and 2" smaller than a 1X. In tops this size is beneficial for women who's chest is too large for XL, but 1X fits the chest but is loose everywhere else.

Is 0x binary? ›

0b (or 0B ) denotes a binary literal. C++ has allowed it since C++14. (It's not part of the C standard yet although some compilers allow it as an extension.) 0x (or 0X ) is for hexadecimal.

How many bits is 0x? ›

Four. This follows from the fact that 2 to the 4th power = 16. Hexadecimal means base 16. So, given four bits, there are 16 possible unique values, without losing or duplicating any information.

Who uses the 0x protocol? ›

0x is used by fintech companies, self-custody wallets, and Web3 native organizations with millions of users across the world.

How does 0x protocol work? ›

Unlike other decentralized exchanges that solely operate on-chain, 0x does not store orders on the blockchain. Instead, orders are stored off-chain, and only trade settlement occurs on-chain. This unique feature makes 0x a flexible and gas-efficient DEX protocol for developers to build on.

What encoding starts with 0x? ›

0x is the prefix used for hexadecimal numbers in almost every C-like programming language, so it has become the de-facto standard when writing hex numbers. Sometimes you may also find hexadecimal numbers denoted by the h suffix (many assembly dialects follow this convention), or (in BASIC dialects) by the &H prefix.

What does 0x lab do? ›

0x is a protocol that facilitates the peer-to-peer (P2P) exchange of Ethereum-based assets. Built by 0x Labs, the protocol serves as an open standard and core DeFi building block for any developer needing exchange functionality.

What does 0x mean in statistics? ›

Representation of Hexadecimal Numbers: Hexadecimal numbers are represented by appending the prefix “0x” or “0X” to the value. For example, 15 in hexadecimal is written as 0xF, and 255 is represented as 0xFF. The prefix is used to differentiate hexadecimal values from decimal or binary values.

What does 0x do in Python? ›

Python hex() function is used to convert an integer to a lowercase hexadecimal string prefixed with “0x”. We can also pass an object to hex() function, in that case the object must have __index__() function defined that returns integer. The input integer argument can be in any base such as binary, octal etc.

References

Top Articles
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 6196

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.