MCPcopy Index your code
hub / github.com/Anastasia-Labs/lucid-evolution

github.com/Anastasia-Labs/lucid-evolution @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4,565 symbols 8,226 edges 586 files 27 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README


Lucid Evolution

A highly scalable, production-ready transaction builder and off-chain framework for dApps and devs on Cardano.

Build Status NPM Downloads Discord NPM Version

There are a growing number of projects that are built on top of lucid-evolution! If you've built a library or a project on top of lucid-evolution, tell me about it on X or on Discord . I'll add it below and tweet it out.

Powered by Lucid Evolution

Cardano Foundation - IBC Cardano Foundation - IBC EMURGO Academy EMURGO Academy Midgard Protocol Midgard Protocol Liqwid Finance Liqwid Finance Indigo Protocol Indigo Protocol Splash Splash
Meld Meld Maestro Maestro Mynth Mynth Pondora Pondora WingRiders WingRiders Atrium Atrium
Genius Yield Genius Yield VESPR Wallet VESPR Wallet Fetch Fetch Strike Finance Strike Finance Summon Summon GenWealth GenWealth
BetttingADA BetttingADA Summon Cardexscan
--- ## 📦 [Install](https://anastasia-labs.github.io/lucid-evolution/install)
pnpm i @lucid-evolution/lucid
💡 Installing the lucid package automatically includes all other packages in the library. --- ## 🚀 Quick Start
import { Lucid, Koios, generateSeedPhrase } from "@lucid-evolution/lucid";

// Initialize Lucid with a provider
const lucid = await Lucid(
  new Koios("https://preprod.koios.rest/api/v1"),
  "Preprod",
);

const seedPhrase = generateSeedPhrase(); // BIP-39
lucid.selectWallet.fromSeed(seedPhrase); // Select a wallet for signing

// Build, sign and submit transaction
const tx = await lucid
  .newTx()
  .pay.ToAddress("addr_testa...", { lovelace: 5000000n }) // Pay 5 ADA to addr_testa...
  .pay.ToAddress("addr_testb...", { lovelace: 5000000n }) // Pay 5 ADA to addr_testb...
  .complete(); // Balance the transaction and initiate UTxO selection

const signedTx = await tx.sign.withWallet().complete();
const txHash = await signedTx.submit();

console.log("Transaction Submitted:", txHash);
--- ## 📚 Documentation For comprehensive documentation including API references, examples, and guides, visit our [official documentation site](https://anastasia-labs.github.io/lucid-evolution/). - 🔍 [Core Concepts](https://anastasia-labs.github.io/lucid-evolution/documentation/core-concepts/instantiate-evolution) - 🧠 [Deep Dives](https://anastasia-labs.github.io/lucid-evolution/documentation/deep-dives/pay-methods) - ⚙️ [Under the Hood](https://anastasia-labs.github.io/lucid-evolution/documentation/under-the-hood) ## 👥 Community and Support - [Discord Community](https://discord.gg/s89P9gpEff): Join for discussions, support, and updates - [GitHub Issues](https://github.com/Anastasia-Labs/lucid-evolution/issues): Report bugs or request features ## 🤝 Contributing We welcome contributions to Lucid Evolution! Please check our [CONTRIBUTING.md](./CONTRIBUTING.md) guide for more information. ### Getting Started
git clone https://github.com/Anastasia-Labs/lucid-evolution.git
cd lucid-evolution
pnpm install
pnpm build
📦 View Package Overview
Package Description
@lucid-evolution/lucid Core package for Lucid Evolution
@lucid-evolution/bip39 BIP-39 mnemonic code implementation
@lucid-evolution/core-types Shared type definitions
@lucid-evolution/core-utils Common utility functions
@lucid-evolution/crc8 CRC8 calculation utilities
@lucid-evolution/plutus Plutus integration tools
@lucid-evolution/provider Data provider interfaces
@lucid-evolution/sign_data Data signing utilities
@lucid-evolution/utils General-purpose utility functions
@lucid-evolution/wallet Wallet integration package
@lucid-evolution/typescript-config Shared TypeScript configurations
@lucid-evolution/eslint-config Shared ESLint configurations
### 🧪 Testing
# Run tests across all packages
pnpm test

# Run tests for a specific package
pnpm --filter @lucid-evolution/lucid test
🧪 Testing Details Lucid Evolution includes both unit tests and on-chain integration tests. For detailed testing instructions, including environment setup and API keys, please refer to our CONTRIBUTING guide. ### 📖 Local Documentation
pnpm dev
> Visit http://localhost:3000/lucid-evolution. --- ## 📜 License Lucid Evolution is licensed under the [MIT License](./LICENSE). --- Maintained with ❤️ by Anastasia Labs

Extension points exported contracts — how you extend this code

Provider (Interface)
(no doc) [10 implementers]
packages/core-types/src/types.ts
Provider (Interface)
(no doc) [5 implementers]
packages/experimental/src/old/Provider.ts
PlutusV1 (Interface)
* Blockfrost only supports Ogmios 5.6 * For more information, visit: * https://ogmios.dev/api/v5.6/
packages/provider/src/internal/blockfrost.ts
TxSigned (Interface)
(no doc)
packages/lucid/src/tx-submit/TxSubmit.ts
Window (Interface)
(no doc)
packages/core-types/src/global.ts
ByteArray (Interface)
* Schema transformations between TypeScript types and Plutus Data * * This module provides bidirectional transformatio
packages/experimental/src/TSchema.ts
MaestroConfig (Interface)
(no doc)
packages/provider/src/maestro.ts
TxSignBuilderConfig (Interface)
(no doc)
packages/lucid/src/tx-sign-builder/TxSignBuilder.ts

Core symbols most depended-on inside this repo

get
called by 275
packages/experimental/src/TransactionMetadatumLabels.ts
set
called by 119
packages/experimental/src/TransactionMetadatumLabels.ts
fromJson
called by 111
packages/plutus/src/data.ts
toJson
called by 111
packages/plutus/src/data.ts
add
called by 101
packages/experimental/src/TransactionMetadatumLabels.ts
fromText
called by 84
packages/core-utils/src/core-utils.ts
fromHex
called by 71
packages/core-utils/src/core-utils.ts
outRefKey
called by 65
packages/tx-graph/src/resolve.ts

Shape

Function 3,707
Class 636
Method 150
Interface 72

Languages

TypeScript100%
Rust1%

Modules by API surface

packages/experimental/src/CML/ProtocolParamUpdate.ts73 symbols
packages/lucid/src/script-context/ScriptContext.ts67 symbols
packages/tx-graph/src/render/semantic.ts53 symbols
packages/lucid/src/tx-builder/internal/CompleteTxBuilder.ts52 symbols
packages/experimental/src/CML/TransactionBody.ts50 symbols
packages/experimental/src/CML/Certificate.ts47 symbols
packages/experimental/src/CML/TransactionBuilder.ts43 symbols
packages/experimental/src/Data.ts38 symbols
packages/lucid/src/tx-builder/internal/RedeemerContext.ts35 symbols
packages/experimental/src/CML/TransactionWitnessSet.ts31 symbols
packages/tx-graph/src/graph.ts30 symbols
packages/experimental/src/CML/AuxiliaryData.ts29 symbols

For agents

$ claude mcp add lucid-evolution \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact