Introducing the dYdX Chain Open-source Code

Introduction

We’re excited to announce the dYdX Chain Github repositories are now fully public! Our introduction of the dYdX Chain (v4) was the first step toward making dYdX fully decentralized and transparent—making the code public is the next step. All core repositories, including the validator software, indexer, web front end, and supporting libraries are now public on GitHub.

The dYdX Chain code is still being tested (try out the Testnet!) and we aim to release the production ready code later this year. Once complete, we encourage the community to use these repositories as a starting point to grow the dYdX ecosystem.

Find the repos and details here:

List of public repos

  • v4-chain - Validator and indexer code, protobuf definitions, scripts to generate Python and Javascript libraries using Telescope
  • v4-abacus - Shared client business logic used across both web and mobile
  • v4-web - The web front end for the dYdX Chain
  • v4-clients - Python and Javascript SDK clients
  • v4-localization - Translations for all copy across the web and mobile apps
  • v4-documentation - dYdX Chain documentation
  • v4-testnets - Coordination repos for previous testnets
  • v4-infrastructure - Terraform for indexer deployments, metrics ingestor, indexer dashboards and monitors

Licensing

The repos are currently available to the public under a Business Source License (BSL) as the code is not yet production ready. After Testnet, when the first production version of the software is released, the licenses will transition to an open source license (GNU Affero GPL).

Experience DeFi's Pro Trading Platform

Get Started

dYdX

January 24, 2025
Last Update:
September 12, 2023

Disclaimer

Crypto-assets can be highly volatile and trading crypto-assets involves risk of loss, particularly when using leverage. Investment into crypto-assets may not be regulated and may not be adequate for retail investors. Do your own research and due diligence before engaging in any activity involving crypto-assets.

dYdX is a decentralised, disintermediated and permissionless protocol, and is not available in the U.S. or to U.S. persons as well as in other restricted jurisdictions. The dYdX Foundation does not operate or participate in the operation of any component of the dYdX Chain’s infrastructure.
The dYdX Foundation’s purpose is to support the current implementation and any future implementations of the dYdX protocol and to foster community-driven growth in the dYdX ecosystem.

The dYdX Chain software is open-source software to be used or implemented by any party in accordance with the applicable license. At no time should the dYdX Chain and/or its software or related components be deemed to be a product or service provided or made available in any way by the dYdX Foundation. Interactions with the dYdX Chain software or any implementation thereof are permissionless and disintermediated, subject to the terms of the applicable licenses and code. Users who interact with the dYdX Chain software (or any implementations thereof) will not be interacting with the dYdX Foundation in any way whatsoever. The dYdX Foundation does not make any representations, warranties or covenants in connection with the dYdX Chain software (or any implementations and/or components thereof), including (without limitation) with regard to their technical properties or performance, as well as their actual or potential usefulness or suitability for any particular purpose, and users agree to rely on the dYdX Chain software (or any implementations and/or components thereof) “AS IS, WHERE IS”.

Nothing in this post should be used or considered as legal, financial, tax, or any other advice, nor as an instruction or invitation to act by anyone.  Users should conduct their own research and due diligence before making any decisions. The dYdX Foundation may alter or update any information in this post in the future at its sole discretion and assumes no obligation to publicly disclose any such change. This post is solely based on the information available to the dYdX Foundation at the time it was published and should only be read and taken into consideration at the time it was published and on the basis of the circumstances that surrounded it. The dYdX Foundation makes no guarantees of future performance and is under no obligation to undertake any of the activities contemplated herein.

About dYdX

At dYdX, we’re reimagining what DeFi and perpetual trading can be. Combining the freedom of decentralization with deep liquidity, advanced order types, a high-performance API, and instant market listings, dYdX empowers you to trade boldly and confidently.

Get Started

Get Involved

dYdX is a decentralised, disintermediated and permissionless protocol, and is not available in the U.S. or to U.S. persons as well as for Restricted Persons as set out in the dYdX Software Terms of Use, accessible: https://dydx.exchange/v4-terms. dYdX International Ltd (including its affiliates, "DI") does not develop, control or participate in the operation of any component of the dYdX Protocol (including the MegaVault).

The information provided in this website is for general informational purposes only and DI reserves the right to update, modify, or amend any contents herein, at its sole discretion and without prior notice.  Nothing herein should be used or considered as legal, financial, tax, or any other advice, nor as an instruction or invitation to act in any way by anyone.

Engaging in any activity involving crypto-assets (including trading crypto assets and depositing into the MegaVault) is risky due to high volatility. Returns are not guaranteed and may fluctuate over time depending on multiple factors, and you may lose your entire investment, particularly when using leverage. Investment into crypto-assets may not be regulated and may not be suitable for retail investors. You should perform your own research and due diligence before engaging in any activity involving crypto-assets.

In no event will DI be liable for any loss or damage, including without limitation, indirect or consequential loss or damage, arising from or in connection with the use of this website. By continuing to access this website, you agree to the above and accept the possibility of changes in the information provided.

Leaving site