DecentralChainDecentralChain
  • Technologysubmenu
    Why DecentralChainWhat sets this chain apartHow the chain worksPublic blocks, public validatorsBlockchain featuresWhat is on, what is being voted onFinalityThe rollback bound, and what is unverifiedRIDEContracts that cannot run foreverFor machinesUnsigned transactions and RIDE in processSolana bridgePhantom and Solflare, mainnet onlyNetwork statusHeight, sync and peers, read live
  • Ecosystemsubmenu
    DCC public saleOpens 26 SeptemberDecentralCoinSupply, allocation and tokenomicsDecentral.ExchangeexternalDecentralPropDecentralScansoonCubensis ConnectDecentralAmericasoon
  • Developerssubmenu
    QuickstartRead, compile and composeREST APIEvery endpoint, no key, no accountSDK packages19 on npm, 5 in the workspaceSigningAuthorising without custodyMCP & AgentsThe chain, and the tools we have builtDecentralChain NodeRun a validator, and what LPoS pays
  • Communitysubmenu
    ChannelsTelegram, X and the reposDCC AirdropAllocated, not yet arrangedGovernanceWho can actually decide anythingBrand kitThe mark, and how to use it
  • Documentation
XGitHub
Start buildingarrow
DecentralChainDecentralChain

An open Layer-1 with Leased Proof of Stake.

Native token: DecentralCoin (DCC)

Fixed supply 100,000,000 DCC
Minted at genesis, never inflated

  • X
  • GitHub
  • Telegram

Build

  • Quickstart
  • REST API
  • SDK packages
  • Signing
  • MCP & Agents
  • Documentation

Ecosystem

  • DCC public sale
  • DecentralCoin
  • Decentral.Exchange
  • DecentralProp
  • DecentralSwap
  • Cubensis Connect

Network

  • Blockchain features
  • Finality
  • RIDE
  • Solana bridge
  • Run a node
  • Network status

Project

  • Community
  • DCC Airdrop
  • Governance
  • Brand kit
  • GitHub
mainnetHeight—Node—read from your browser
© 2026 DecentralChainOperated by DecentralExchange · Cédula Jurídica 3-102-956858
Jacó, Garabito, Costa Rica
TermsPrivacySecurityLicensingdecentralchain.io

RIDE

Contracts that
cannot surprise you

RIDE is the smart contract language of DecentralChain. It is deliberately not Turing-complete: no unbounded loops, no recursion, and a complexity budget checked before a script is ever accepted. A contract that would run forever cannot be deployed, so it cannot be deployed and then discovered.
Mainnet ceilingRIDE V5CompilerRuns in the browserFeeKnown before you sign

On this page

  • What RIDE is
  • Which version mainnet runs
  • The three things you can attach a script to
  • Compiling it
  • Something running today

What RIDE is

An expression language for deciding whether a transaction is allowed and, in a dApp, for changing account state. Every script has a complexity cost the node computes at deployment, and scripts over the budget are rejected outright rather than at run time.

What that buys you is the absence of a whole class of failure. There is no gas to estimate and no out-of-gas halfway through a state change, because the cost of a script is a property known before it ever runs.

Which version mainnet runs

Careful
Mainnet tops out at RIDE V5. Write against V5 or below. V6 is feature 17, which the nodes running mainnet do not implement at all, so it is not waiting on a vote but on a release.
V3Feature 11 · Ride4DApps

dApps: callable functions with their own state.

V4Feature 15 · BlockV5

Verifiable randomness, protobuf, failed transactions recorded.

V5Feature 16 · SynchronousCalls

dApp-to-dApp invocation inside one transaction.

V6Feature 17 · RideV6

Not on mainnet. The running nodes do not know this feature.

You can confirm this yourself rather than taking it from a page: features 15 and 16 read ACTIVATED on the features table, and 17 is not in it.

The three things you can attach a script to

  • An account. Feature 4, Smart Accounts. The script vets every transaction the account signs: multisig, time locks, spending rules.
  • An asset. Feature 9, Smart Assets. The script vets every transfer of that asset: whitelists, freezes, transfer restrictions.
  • A dApp. Feature 11. Callable functions that hold their own state and accept payments, invoked by an InvokeScript transaction.

Compiling it

The compiler is published to npm and compiled from Scala through Scala.js, so it runs in a browser with no server involved. That is unusual and worth using: you can compile and check a contract client-side without sending source anywhere.

npm
npm i @decentralchain/ride-lang @decentralchain/ride-repl

On the JVM the same language is io.decentralchain:lang_3 on Maven Central, with lang-testkit_3 beside it for tests.

Something running today

DecentralSwap is a constant-product AMM built from two RIDE contracts, both deployed on mainnet. If you want to see what a non-trivial RIDE system looks like in production rather than in an example, that is the one to read.

Next

DecentralSwap

The two contract addresses, what each does, and how to read them yourself.

Next

RIDE in the manual

Syntax, data types, functions, script types, structures and FOLD, section by section.