Home/xUDT Script

xUDT Script

Extensible User-Defined-Token implementation on CKB, similar to ERC-20 on Ethereum.

xUDT ScriptCKB

Extensible UDT(xUDT) is the User-Defined-Token(fungible token) Script implementation on CKB. You can think of it as the ERC-20 smart contract on Ethereum.

Key Features

Fungible Tokens

Implements fungible token functionality similar to ERC-20

Extensible Design

Allows for custom extensions and additional functionality

User-Defined

Users can define their own token parameters and rules

CKB Native

Built specifically for CKB's Cell model architecture

Comparison with ERC-20

ERC-20 (Ethereum)

  • • Account-based model
  • • Global state management
  • • Gas fees for operations
  • • Smart contract based

xUDT (CKB)

  • • UTXO-based model
  • • Local state in Cells
  • • Flexible fee structure
  • • Type Script based

Role in RGB++

xUDT Scripts can be used in RGB++ to create Bitcoin-backed fungible tokens. The tokens exist as CKB Cells but are controlled by Bitcoin UTXOs through isomorphic binding, combining Bitcoin's security with CKB's programmable token functionality.

Use Cases

Stablecoins

Create Bitcoin-backed stablecoins with programmable features

Utility Tokens

Build utility tokens for dApps with Bitcoin security

Governance Tokens

Implement DAO governance tokens with Bitcoin ownership

External Resources