Last month we announced the standard relayer API. Since the announcement, Radar Relay launched the first public implementation of the standard with other relayers close behind. To recap our announcement, the standard relayer API is a set of clearly defined methods of communication between a program and a 0x relayer that makes it easy to write programs that are compatible with any relayer in the 0x ecosystem. We want to make it even easier to write these programs that interact with relayers, that’s why today, we’re excited to introduce the 0x Connect library.

What is it?

0x Connect is a Javascript library that makes it easy to write programs that interact with relayers that adhere to the standard relayer API. The first version of the library provides a simple interface that any developer can use to integrate a relayer’s services in their application. The first version of the library provides the following functionalities:

Asking a relayer which token pairs they support (e.g. ZRX/WETH or DNT/MKR).

Asking a relayer for orders filtered by maker, taker, tokens, etc.

Asking a relayer for an individual order specified by order hash.

Asking a relayer for an orderbook for a supported token pair.

Asking a relayer for fee information.

Submitting signed orders to a relayer.

The library provides an asynchronous, promise-based interface, allowing Javascript developers to build performant, non-blocking applications using a familiar paradigm.

Why is it useful?

Using the functionality detailed above, developers can build a variety of applications including:

A decentralized application that accepts payment in any token and converts that token to ETH or a stablecoin like DAI behind the scenes.

Market makers that provide liquidity.

Trading bots that look for arbitrage opportunities across multiple relayers.

Tools that make it easy to visualize and analyze different markets.

This library serves as an open-source, common implementation of a standard relayer API client that the community can use and contribute to. It will accelerate the development of the ecosystem by reducing duplicated work and hiding some lower level implementation details so developers can focus on making great, robust applications for Web 3.0.

Use 0x Connect today

The first version of 0x Connect is ready to be used today. Install it through npm or yarn to add it to an existing project or use our tutorial and starter code to get started with a new project. Plug in the Radar Relay API url: https://api.radarrelay.com/0x/ to start making trades on the Ethereum mainnet today.

Join the 0x community / team

One of the defining characteristics of networks like 0x and Ethereum is the passionate community of developers behind them. By contributing to open source tools like 0x Connect, your efforts can multiply the efforts of others building decentralized applications. We have ambitious goals to transform how value in the world is exchanged. Our team is growing and we’re hiring!