> This is part 1 of 2 of the full documentation (pages 1–100 of 149).
> The content is paginated: fetch every part to see all of it.
> Next part: https://docs.lumia.org/llms-full.txt/1
> Page index: https://docs.lumia.org/llms.txt

# What is Lumia Chain

Lumia is a blockchain purpose-built for real-world assets. It brings multiple assets including credit, real estate, commodities, and funds on-chain, and carries them through issuance, distribution, and the whole of their lifecycle rather than stopping at the mint.

Lumia is a zkEVM, so it is bytecode-compatible with Ethereum smart contracts and its state is secured by zero-knowledge validity proofs rather than by its own independent validator set. That makes Lumia a general-purpose EVM chain any Solidity developer can deploy to, with the RWA tooling built in rather than bolted on afterwards.

Alongside Lumia mainnet, a public testnet called Lumia Beam exists for development and testing before you ship to mainnet. Current chain IDs, RPC endpoints, and explorer URLs for both networks are kept current at[ `/reference/networks`.](/reference/networks-and-endpoints)

### How it works

Lumia's execution model separates three concerns across three distinct roles: ordering transactions, proving they were executed correctly, and making the underlying data available.

**Sequencer.** A sequencer receives submitted transactions, orders them, and builds them into L2 blocks, the same job a block producer performs on any chain. What differs from a traditional proof-of-stake L1 is that Lumia does not rely on a validator set voting on blocks to reach consensus; block production is a single, defined role rather than a distributed voting process. Correctness of the resulting state is established separately, by proving, not by a quorum of validators agreeing on it. The trade-off is that ordering and liveness depend on that one role staying up, which is the centralization cost this architecture family accepts in exchange for fast, predictable ordering.

**zkProvers.** Once blocks are built, a prover generates a zero-knowledge validity proof: a cryptographic proof that the batch of transactions was executed correctly according to the EVM's rules, without needing to re-execute or trust that batch. That proof is verified by a smart contract on Ethereum L1. This is what makes an invalid state transition mathematically unproducible rather than merely socially discouraged: a prover cannot generate a valid proof for an incorrect execution.&#x20;

**Data availability.** For anyone to independently verify the chain's state, or for a user to reconstruct their balance if an operator disappeared, the underlying transaction data behind each batch has to actually be available somewhere, not just the proof that it was valid. Lumia's architecture describes Avail as the chain's data-availability layer, which makes it a validium: the data sits on a dedicated DA network rather than in Ethereum calldata.

Together, these three roles let Lumia have its execution correctness verified on Ethereum without requiring every application on the chain to run its own validator set. Correctness is what the proof establishes; data availability is handled separately, as below.

### Compliance: permissionless base layer, permissioned app layer

The property that most distinguishes Lumia from a generic blockchain is how it handles compliance for regulated, real-world assets. It's a deliberate split, not a single global policy.

The base chain itself is permissionless: anyone can read chain state, submit a transaction, deploy a contract, or run a node, the same as on any public EVM chain. Lumia does not gate the protocol layer by identity. Compliance instead lives at the application layer, enforced by the contracts an issuer chooses to deploy. An issuer building a regulated asset selects what gate applies: KYC on individual holders, KYB on institutional counterparties, transaction-level screening, or some combination. Only that asset's contracts enforce it. A DeFi contract with no compliance requirement at all can sit on the same base layer, unaffected. This means the compliance decision is made per application, not imposed once on the whole chain.&#x20;

### Security and audits

Two independent security firms have reviewed Lumia contracts: Hacken and Halborn. These are Solidity smart-contract reviews of the token, staking, governance and migration contracts. The chain protocol layer (sequencer, zkProvers, data availability, bridge) is a separate scope these reviews do not cover.

### The token

LUMIA is the network's native token. What it's used for, how it's distributed, and its role in the network are documented at [`/lumia/tokens/lumia`](/ecosystem/lumia/lumia-tokens/lumia).


# Build on Lumia

**Who this is for:** developers building on Lumia. By the end of this page you'll know where to start, and where every task guide in this section actually lives.

{% hint style="info" %}
New here? Go straight to [Quickstart: your first contract on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/quickstart-your-first-contract-on-lumia). It takes you from an empty folder to a verified, working contract on Beam testnet in one pass. Everything else in this section is a deeper or narrower version of one of its steps.
{% endhint %}

### What's in this section

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Quickstart</strong></td><td>Wallet to verified contract on Beam testnet in one pass. Start here.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/quickstart-your-first-contract-on-lumia">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/quickstart-your-first-contract-on-lumia</a></td></tr><tr><td><strong>Networks and RPC setup</strong></td><td>Chain IDs, endpoints and explorers for mainnet and Beam, and how to point a project at them.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/environment/networks-and-rpc-setup">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/environment/networks-and-rpc-setup</a></td></tr><tr><td><strong>Wallets and accounts</strong></td><td>Add Lumia to a wallet, and how accounts work on the chain.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/accounts-and-wallets-on-lumia">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/accounts-and-wallets-on-lumia</a></td></tr><tr><td><strong>Smart contracts</strong></td><td>Deploy and verify with Hardhat or Truffle, then interact, automate, and check EVM differences.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts</a></td></tr><tr><td><strong>Oracles and data feeds</strong></td><td>Read price and data feeds on Lumia.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-data-feeds-with-api3">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-data-feeds-with-api3</a></td></tr><tr><td><strong>Indexing</strong></td><td>Query contract events and data from a Lumia deployment.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-events-with-the-graph">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-events-with-the-graph</a></td></tr><tr><td><strong>Identity and KYC</strong></td><td>Integrate on-chain identity checks into a Lumia application.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/identity/integrate-on-chain-kyc-dev-guide">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/identity/integrate-on-chain-kyc-dev-guide</a></td></tr><tr><td><strong>Bridging</strong></td><td>Move assets to and from Lumia L2 from application code.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/bridge/bridge-assets-to-from-lumia-l2">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/bridge/bridge-assets-to-from-lumia-l2</a></td></tr><tr><td><strong>Account abstraction</strong></td><td>Connect wallets and sponsor transactions with account abstraction.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/account-abstraction/connect-wallets-with-particle-connect">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/account-abstraction/connect-wallets-with-particle-connect</a></td></tr></tbody></table>

### Before you start

{% hint style="warning" %}
**Running your own infrastructure instead of using a public RPC?** See [`/run-a-node`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node).
{% endhint %}


# CDK repositories

You want to know what source repositories Lumia's chain is actually built from, and which parts are Lumia-specific versus stock Polygon CDK.

**Who this is for:** developers or infrastructure engineers who need to read, audit, or build against the underlying stack rather than just use the public RPC. **Prerequisites:** [Lumia's chain framework and settlement](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement) (concept: read this first for what CDK and AggLayer are on Lumia). **Time:** reference lookup, not a task with a fixed duration.

### Architecture

Lumia Prism, the name [`/reference/contract-addresses`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses) uses for Lumia's mainnet, is built on **Polygon CDK** as a zkEVM validium-model L2, settling through Polygon's shared **AggLayer** (see [`/lumia/architecture/polygon`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement) and [`/lumia/architecture/polygon/agglayer`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum)). Polygon CDK's core repositories are public open-source infrastructure maintained by Polygon, not Lumia-specific.

### In the meantime

For the settlement-layer contract addresses that are confirmed (not source repos, but on-chain addresses), see [`/reference/contract-addresses`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses). For what CDK and AggLayer give Lumia conceptually, see [`/lumia/architecture/polygon`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement).


# Quickstart your first contract on Lumia

**Who this is for:** developers who already know Solidity and Hardhat, and want the shortest correct path from an empty folder to a verified contract on Lumia. If you've never used Hardhat before, this still works: every command is given in full.

**What you'll have at the end:** a deployed, verified Hardhat contract live on Lumia Beam testnet, plus a script that reads and updates it.

**Time:** under 10 minutes once your wallet has testnet funds.

**Prerequisites**

* Node.js 18+ and npm (or pnpm/yarn) installed.
* A wallet (MetaMask or similar) with a private key you control.
* Basic familiarity with the command line.

{% hint style="warning" %}
Testnet only. Never use a mainnet key for this walkthrough.
{% endhint %}

### What you'll do

1. Add Lumia Beam testnet to your wallet.
2. Get testnet funds.
3. Scaffold a Hardhat project.
4. Configure the network.
5. Write and deploy a contract.
6. Verify it on the explorer.
7. Interact with it.

{% stepper %}
{% step %}
**Add Lumia Beam testnet to your wallet**

Follow [Add Lumia to MetaMask](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-metamask) or [Add Lumia to FoxWallet](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-foxwallet). Both pull the network fields from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints), so you're always adding the current values rather than ones copied out of an old tutorial.

**Verify:** confirm the chain ID your wallet shows is **`2030232745`**: that's Beam, the live testnet.

{% endstep %}

{% step %}
**Get testnet funds**

Claim Beam testnet tokens from the faucet listed at [`/reference/faucet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/testnet-faucet), which carries the current URL, claim amount, and cooldown. Use the same address you added Beam to in step 1.

**Verify:** your wallet's Beam testnet balance increases once the claim lands. See [Block explorers](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/environment/block-explorers) if you want to confirm the incoming transaction on-chain first.
{% endstep %}

{% step %}
**Scaffold a Hardhat project**

```bash
mkdir lumia-quickstart && cd lumia-quickstart
npm init -y
npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox dotenv
npx hardhat init
# choose: "Create a JavaScript project"
```

This installs Hardhat 2.x with the standard toolbox (ethers v6, chai matchers, gas reporter).

**Verify:** the command finishes without error and `hardhat.config.js` exists in your project folder; you'll edit it directly in the next step.
{% endstep %}

{% step %}
**Configure the network**

Open [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) and copy the **Beam testnet RPC (HTTPS)** value into a `.env` file (never commit this file):

{% code title=".env" %}

```bash
LUMIA_BEAM_RPC_URL=<paste the Beam RPC URL from /reference/networks>
PRIVATE_KEY=<YOUR_TESTNET_ONLY_PRIVATE_KEY>
```

{% endcode %}

Edit `hardhat.config.js`:

{% code title="hardhat.config.js" %}

```js
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
  solidity: "0.8.24",
  networks: {
    lumiaBeam: {
      url: process.env.LUMIA_BEAM_RPC_URL, // from /reference/networks; do not hardcode this value
      chainId: 2030232745,
      accounts: [process.env.PRIVATE_KEY],
    },
  },
};
```

{% endcode %}

Deliberately no hardcoded RPC fallback here: if `LUMIA_BEAM_RPC_URL` is unset, Hardhat should fail loudly rather than silently pointing at a stale or guessed URL.
{% endstep %}

{% step %}
**Write and deploy a contract**

{% code title="contracts/Greeter.sol" %}

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

contract Greeter {
    string private greeting;
    address public owner;

    event GreetingChanged(string newGreeting, address changedBy);

    constructor(string memory _greeting) {
        greeting = _greeting;
        owner = msg.sender;
    }

    function greet() external view returns (string memory) {
        return greeting;
    }

    function setGreeting(string calldata _greeting) external {
        greeting = _greeting;
        emit GreetingChanged(_greeting, msg.sender);
    }
}
```

{% endcode %}

```bash
npx hardhat compile
```

{% code title="scripts/deploy.js" %}

```js
const hre = require("hardhat");

async function main() {
  const Greeter = await hre.ethers.getContractFactory("Greeter");
  const greeter = await Greeter.deploy("Hello, Lumia");
  await greeter.waitForDeployment();

  console.log("Greeter deployed to:", await greeter.getAddress());
}

main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});
```

{% endcode %}

```bash
npx hardhat run scripts/deploy.js --network lumiaBeam
```

Copy the printed contract address. You'll need it for the next two steps.

**Verify:** the terminal prints `Greeter deployed to: <address>` from the script's final `console.log` call.
{% endstep %}

{% step %}
**Verify it on the explorer**

{% hint style="warning" %}
See [Verify a contract with Hardhat](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/verify-a-contract-with-hardhat) for the current verifier plugin configuration for Beam.
{% endhint %}

```bash
npx hardhat verify --network lumiaBeam <DEPLOYED_CONTRACT_ADDRESS> "Hello, Lumia"
```

**Verify it worked:** open the Beam explorer (linked from [`/reference/explorers`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/block-explorers-reference)) and search for `<DEPLOYED_CONTRACT_ADDRESS>`. You should see a confirmed contract-creation transaction and, once this step succeeds, a verified "Contract" tab showing your source code.
{% endstep %}

{% step %}
**Interact with it**

{% code title="scripts/interact.js" %}

```js
// scripts/interact.js
const hre = require("hardhat");

async function main() {
  const address = "<DEPLOYED_CONTRACT_ADDRESS>";
  const greeter = await hre.ethers.getContractAt("Greeter", address);

  console.log("Current greeting:", await greeter.greet());

  const tx = await greeter.setGreeting("Hello from the quickstart");
  await tx.wait();

  console.log("Updated greeting:", await greeter.greet());
}

main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});
```

{% endcode %}

```bash
npx hardhat run scripts/interact.js --network lumiaBeam
```

**Verify:** the terminal prints `Current greeting: Hello, Lumia`, then, after the update transaction confirms, `Updated greeting: Hello from the quickstart`.
{% endstep %}
{% endstepper %}

### Troubleshooting

<details>

<summary><code>insufficient funds for gas</code></summary>

Your address hasn't received testnet tokens yet, or the faucet cooldown hasn't reset. Recheck \[\`/reference/faucet\`]\(<https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/testnet-faucet>).

</details>

<details>

<summary>Deploy hangs or times out</summary>

Your wallet or `.env` is still pointed at the retired `1952959480` network instead of Beam (`2030232745`). Recheck step 1.

</details>

<details>

<summary><code>nonce too low</code> / <code>replacement transaction underpriced</code></summary>

You have a stuck pending transaction from a previous attempt; reset the account's nonce in your wallet or wait for the pending transaction to clear.

</details>

<details>

<summary>Hardhat can't find <code>LUMIA_BEAM_RPC_URL</code></summary>

Confirm `.env` is in the project root and `require("dotenv").config()` runs before `module.exports` in `hardhat.config.js`.

</details>

### You're done

You've added Beam testnet to a wallet, funded it, and deployed, verified, and called a contract on Lumia. From here:

* Building something that represents a real-world asset? Read [`/tokenize/overview`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/tokenize/what-is-rwa-tokenization-on-lumia) first: the lifecycle model changes how you should structure contracts.
* Gating access with credentials? See [`/build/identity/on-chain-kyc-integration`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/identity/integrate-on-chain-kyc-dev-guide).
* Running your own infrastructure instead of relying on public RPC? See [`/run-a-node/rpc-node/overview`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/rpc-node-overview).


# Account abstraction

What this subsection covers: connecting wallets with Particle Connect.


# Connect wallets with Particle Connect

You want users to connect a smart-account wallet (social login, embedded wallet, or a standard EOA wallet) to your app on Lumia through Particle Connect.

**Who this is for:** developers adding wallet connection to a Lumia app. **Prerequisites:** [Account Abstraction & Intents](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/account-abstraction-and-intents) (concept: read this first for what a smart account is and why you'd want one; this page doesn't re-explain it); [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

### About this integration

Particle Connect is Particle Network's third-party wallet and account-abstraction SDK (see [`/reference/sdks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/sdks)). It is a distinct product from Lumia's own internal account-abstraction work.

### Steps

{% stepper %}
{% step %}
**Install Particle Network's Connect SDK**

For your framework. Consult Particle Network's own current published docs for the exact package name and version, since that's their product, not Lumia's.
{% endstep %}

{% step %}
**Register a project with Particle Network**

This gives you a project ID and client key. You create this account directly with Particle Network, outside Lumia's own systems.
{% endstep %}

{% step %}
**Initialize the SDK's provider/connect-kit component**

With your project credentials and Lumia's network config:

* **Chain ID**: use the confirmed mainnet or Beam testnet chain ID from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints); never substitute the retired chain ID `1952959480`.
* **RPC URL**: from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) for the network you're targeting.
  {% endstep %}

{% step %}
**Configure which wallet connectors you want available**

Social login, embedded/smart wallet, injected EOA wallets.
{% endstep %}

{% step %}
**Render the SDK's connect button/modal**

Read the connected address once a user completes the flow.
{% endstep %}
{% endstepper %}

### Verify it worked

After connecting, the SDK should return an address. Confirm that the relevant explorer (`explorer.lumia.org` or `beam-explorer.lumia.org`; see [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints)) shows activity matching what you expect, and that a test transaction sent from the connected account lands on the network you configured, not a different chain ID.

### Troubleshooting

<details>

<summary>Connect modal opens but the resulting address is on the wrong chain</summary>

Double-check the chain ID passed at initialization against [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints); a copy-pasted example from another chain's Particle Connect integration is the most common cause.

</details>

<details>

<summary>No connectors appear in the modal</summary>

The connector list is a project-level configuration in your Particle Network project dashboard, not something set purely client-side.

</details>


# Bridge

What this subsection covers: bridging assets to and from Lumia L2.


# Bridge assets to from Lumia L2

**Who this is for:** developers moving assets between Ethereum and Lumia, either through the bridge UI or by calling the bridge contract directly.

**Prerequisites:** a wallet with funds on the source chain. See [Accounts & Wallets on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/accounts-and-wallets-on-lumia).

**Time:** deposits are typically fast; withdrawals include a delay (see below).

### Steps: bridge UI

{% stepper %}
{% step %}
**Open the bridge URL**

Listed in [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints). Do not use a URL from an old tutorial or a different chain's docs.
{% endstep %}

{% step %}
**Connect the wallet holding the asset you want to move**
{% endstep %}

{% step %}
**Choose the direction**

**Deposit** (Ethereum → Lumia) or **withdraw** (Lumia → Ethereum).
{% endstep %}

{% step %}
**Select the asset and amount**

Then confirm the transaction in your wallet.
{% endstep %}

{% step %}
**Wait for the transaction to be picked up on the destination chain**

Deposits are usually visible quickly; withdrawals are not final until the challenge/finality window closes (see below).
{% endstep %}
{% endstepper %}

### Steps: contract-level bridge

If you're integrating the bridge directly rather than through the UI, you call the unified bridge contract's deposit/withdraw (claim) functions. Do not hardcode an address from another chain's AggLayer deployment, even though the bridge contract shape is shared across AggLayer member chains. See [How Lumia settles and bridges to Ethereum](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum) for why Lumia shares this bridge model with other chains.

### Verify it worked

Check the transaction on the source chain's explorer, then confirm the corresponding mint/release on the destination chain's explorer. Both are listed in [`/reference/explorers`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/block-explorers-reference). A deposit or withdrawal isn't complete until it's visible and confirmed on both sides.

### Withdrawal delay

Lumia settles through Polygon's shared AggLayer, and AggLayer withdrawals are not instant. There is a finality/challenge window before a withdrawal from Lumia can be claimed on Ethereum. Plan around a delay, not an instant transfer, when you design anything that depends on withdrawal timing.

### Troubleshooting

<details>

<summary>Deposit doesn't appear on Lumia</summary>

Confirm the source-chain transaction actually confirmed first; a deposit can't appear on Lumia before it's final on Ethereum.

</details>

<details>

<summary>Withdrawal stuck as "pending" / "not claimable yet"</summary>

This is expected during the challenge/finality window described above, not necessarily an error.

</details>

<details>

<summary>Wrong asset or wrong network selected in the bridge UI</summary>

Re-check both the source and destination network shown in the bridge UI against [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) before confirming.

</details>


# Environment

What this subsection covers: networks and RPC setup, block explorers, and getting testnet tokens from the faucet.


# Block explorers

**Who this is for:** developers checking whether a transaction landed, what a contract's current state is, or whether a contract is verified.

**Prerequisites:** none. You only need the address or transaction hash you're checking.

## Steps: check a transaction

{% stepper %}
{% step %}

#### 1. Go to the explorer for the network you used

From [`/reference/explorers`](file:///reference/Block-explorers-reference.md). Mainnet and Beam testnet each have their own explorer; a transaction on one will not show up on the other.
{% endstep %}

{% step %}

#### 2. Paste the transaction hash into the explorer's search bar

{% endstep %}

{% step %}

#### 3. Confirm the status and block number

Confirm the status shown is "Success" and note the block number for finality.
{% endstep %}
{% endstepper %}

## Steps: read or verify contract state

{% stepper %}
{% step %}

#### 1. Go to the same explorer and paste the contract's address

{% endstep %}

{% step %}

#### 2. Check the Contract tab

If the contract has been verified (see [Verify a contract with Hardhat](file:///5838283/smart-contracts/Verify-a-contract-with-Hardhat.md) or [Verify a contract with Truffle](file:///5838283/smart-contracts/Verify-a-contract-with-Truffle.md)), the **Contract** tab shows source code and a **Read Contract** panel for calling view functions directly from the browser, without writing any code.
{% endstep %}

{% step %}

#### 3. Note the limits for unverified contracts

Unverified contracts still show raw transaction history and bytecode, but not readable source or a call panel.
{% endstep %}
{% endstepper %}

## Verify it worked

The explorer shows your transaction as confirmed, or your contract's address page loads with the activity you expect. If you're checking a fresh deploy from the [Quickstart](file:///5838283/Quickstart-your-first-contract-on-Lumia.md), the contract-creation transaction should appear within a block or two.

## Troubleshooting

<details>

<summary>"Transaction not found"</summary>

You're likely searching the wrong network's explorer. Recheck which network you actually transacted on against [`/reference/explorers`](file:///reference/Block-explorers-reference.md).

</details>

<details>

<summary>Contract shows no source code / no Read Contract tab</summary>

It hasn't been verified yet. See [Verify a contract with Hardhat](file:///5838283/smart-contracts/Verify-a-contract-with-Hardhat.md) or [Verify a contract with Truffle](file:///5838283/smart-contracts/Verify-a-contract-with-Truffle.md).

</details>

<details>

<summary>You're looking at <code>testnet-explorer.lumia.org</code> and it won't load</summary>

That's the retired testnet's dead explorer, not Beam. See [`/reference/retired-testnet`](file:///reference/Retired-testnet-1952959480.md) and use the Beam explorer listed in [`/reference/explorers`](file:///reference/Block-explorers-reference.md) instead.

</details>


# Get testnet tokens faucet

**Who this is for:** developers who need funds on Beam testnet to pay gas for test transactions.

**Prerequisites:** a wallet already pointed at Beam testnet. See [Add Lumia to MetaMask](file:///5838283/wallets/Add-Lumia-to-MetaMask.md) or [Add Lumia to FoxWallet](file:///5838283/wallets/Add-Lumia-to-FoxWallet.md).

**Time:** under a minute to submit a claim; the tokens arrive shortly after.

{% stepper %}
{% step %}

#### 1. Confirm your wallet is on Beam testnet

Not the retired testnet. Check the chain ID against [`/reference/networks`](file:///reference/Networks-and-endpoints.md).
{% endstep %}

{% step %}

#### 2. Copy your wallet's address

{% endstep %}

{% step %}

#### 3. Go to the faucet URL

Listed at [`/reference/faucet`](file:///reference/Testnet-faucet.md), which also has the current claim amount and cooldown.
{% endstep %}

{% step %}

#### 4. Submit your address

Complete any verification the faucet asks for.
{% endstep %}

{% step %}

#### 5. Wait for the transaction to land

Then check your balance.
{% endstep %}
{% endstepper %}

## Verify it worked

Your wallet's Beam testnet balance increases by the claim amount listed at [`/reference/faucet`](file:///reference/Testnet-faucet.md). You can also confirm the incoming transaction on the Beam explorer.

## Troubleshooting

<details>

<summary>"Please wait before claiming again"</summary>

The faucet is on a per-address cooldown; check [`/reference/faucet`](file:///reference/Testnet-faucet.md) for the current cooldown period.

</details>

<details>

<summary>Funds don't show up in your wallet</summary>

Confirm your wallet is actually on Beam testnet (chain ID matches [`/reference/networks`](file:///reference/Networks-and-endpoints.md)), not the retired network. Funds sent to a Beam address won't appear while your wallet is pointed elsewhere.

</details>

<details>

<summary>Faucet URL looks unfamiliar or different from one you used before</summary>

Always use the URL currently listed at [`/reference/faucet`](file:///reference/Testnet-faucet.md) rather than one bookmarked from an older guide; faucet endpoints can change.

</details>


# Networks and RPC setup

**Who this is for:** developers configuring a project (wallet, script, Hardhat/Truffle config, indexer) to talk to Lumia.

**Prerequisites:** none.

### Choosing a network

**Beam testnet** is where you build and test. It costs nothing to use once you have testnet tokens, and mistakes there don't touch real funds. Almost all development should target Beam until you're intentionally deploying for production use. **Mainnet** is the live network with real value: use it only once you've finished testing on Beam.

### Steps

{% stepper %}
{% step %}
**Decide mainnet or Beam**

Per the guidance above.
{% endstep %}

{% step %}
**Copy the RPC URL into your project's config**

Open [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) and copy the RPC (HTTPS) URL for that network into your project's config as an environment variable, not a hardcoded literal, so you can swap networks without editing code.
{% endstep %}

{% step %}
**Copy the matching chain ID into the same config**

Wallet and SDK libraries frequently validate the RPC response's chain ID against what you configured; a mismatch here is one of the most common setup errors.
{% endstep %}

{% step %}
**Check for a WSS endpoint if your tooling needs one**

Check [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) first.
{% endstep %}
{% endstepper %}

### Verify it worked

Call the RPC's `eth_chainId` method (directly with curl, or through whatever library you're using) and confirm the returned chain ID matches the value in [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) for the network you intended.

```bash
curl -s -X POST -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' \
  "<RPC URL from /reference/networks>"
```

### Troubleshooting

<details>

<summary>Requests time out or connection refused</summary>

You're likely pointed at the retired network's RPC. Recheck against [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

</details>

<details>

<summary><code>eth_chainId</code> returns a value you didn't expect</summary>

Your config still has an old RPC URL cached from a previous project or tutorial; replace it with the current value from Reference rather than editing the hex by hand.

</details>

{% hint style="warning" %}
**Rate limiting on the public RPC.** If you're hitting limits, consider running your own node. See [`/run-a-node/rpc-node/overview`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/rpc-node/rpc-node-overview).
{% endhint %}


# Identity

What this subsection covers: integrating on-chain KYC, written as a developer guide.


# Integrate on chain KYC dev guide

You want your app to gate an action behind proof of a KYC credential, verified without your app ever seeing the underlying personal data.

**Who this is for:** developers adding a KYC-gated flow (an allowlist, a mint, a transfer) to a Lumia app. **Prerequisites:** [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints); [KYC (concept)](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/kyc-know-your-customer) if you haven't already read what KYC means in Lumia's compliance model.

### How it works

The verifier flow is a two-call REST handshake, documented in full at [`/reference/rest-apis/kyc-verifier-api`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/rest-apis). This page walks through using it; that page is the endpoint table.

1. Your backend calls `POST /sign-in` on the verifier, scoped to the network you're checking against.
2. The response includes a `qrCode` and a `sessionID`. Your frontend renders the QR code; the user scans it with their credential wallet.
3. Your backend polls `GET /status?sessionID=...` until it returns a terminal status (`success`/`approved`, or `failed`).
4. Only once status is successful does your app grant the gated action.

### Steps

{% stepper %}
{% step %}
**Pick the network you're scoping the check to**

Use its confirmed chain ID from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

{% hint style="warning" %}
Do not use `1952959480`: that's a retired network some older examples label "Lumia Testnet," and it is not Beam.
{% endhint %}
{% endstep %}

{% step %}
**Start a session**

```js
const res = await fetch("https://verifier-backend.privado.id/sign-in", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    chainID: "2030232745", // Beam, see /reference/networks; do not use 1952959480
    scope: [
      {
        circuitId: "<your circuit ID>", // from your verifier/circuit configuration
        id: 1,
        query: {
          allowedIssuers: ["*"], // restrict this for a production check
          context: "<your query context>",
          type: "<your credential type>",
          credentialSubject: {},
        },
      },
    ],
    skipClaimRevocationCheck: false,
  }),
});
const { qrCode, sessionID } = await res.json();
```

{% endstep %}

{% step %}
**Render the QR code**

Render `qrCode` for the user to scan with their credential wallet.
{% endstep %}

{% step %}
**Poll for status**

```js
async function pollStatus(sessionID) {
  const res = await fetch(`https://verifier-backend.privado.id/status?sessionID=${sessionID}`);
  const { status } = await res.json();
  return status; // "success" / "approved" / "failed" / a pending state; see /reference/rest-apis/kyc-verifier-api
}
```

{% endstep %}

{% step %}
**Grant the gated action**

On a successful status, grant the gated action in your app/contract logic.
{% endstep %}
{% endstepper %}

### Verify it worked

Run the flow end to end with a test credential wallet: confirm `/sign-in` returns a scannable QR and a `sessionID`, that scanning it changes `/status` from pending to `success`/`approved`, and that your app's gated action becomes available only after that.

### Troubleshooting

<details>

<summary><code>/status</code> never leaves pending</summary>

Confirm the `chainID` you sent matches the network your credential wallet is actually scoped to; a mismatch here is easy to introduce if you copy an old example using `1952959480`.

</details>

<details>

<summary><code>circuitId</code>/<code>query</code> fields rejected</summary>

Get the exact expected values from your own verifier/circuit configuration rather than guessing from another chain's Privado ID integration.

</details>

<details>

<summary>No error codes to branch on</summary>

See [`/reference/rest-apis/kyc-verifier-api`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/rest-apis) for the endpoint's response shape; handle non-200 responses generically if it doesn't cover what you're seeing.

</details>


# Indexers

What this subsection covers: indexing contract data with Goldsky, and contract events with The Graph.


# Index contract data with Goldsky

You want a managed indexing pipeline (subgraph-compatible or a direct data mirror) against Lumia contract data.

**Who this is for:** developers who want indexed contract data without running their own Graph Node. **Prerequisites:** a deployed, verified contract on Lumia; [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

{% hint style="warning" %}
Confirm chain support directly with Goldsky before building a pipeline against it.
{% endhint %}

### Steps (confirm network support before deploying)

{% stepper %}
{% step %}
**Install Goldsky's CLI and authenticate**

Consult Goldsky's own current published docs for the package name, version, and login command, since that's their product, not Lumia's. Authenticating requires a Goldsky account and API key.
{% endstep %}

{% step %}
**Confirm Lumia is a supported chain in Goldsky's platform**
{% endstep %}

{% step %}
**Deploy your subgraph manifest, if you have one**

If you already have a subgraph manifest (see [`/build/indexers/thegraph`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-events-with-the-graph)), Goldsky's subgraph-hosting deploy step may apply. Consult Goldsky's own docs for the exact deploy command and its arguments.
{% endstep %}

{% step %}
**Or configure a direct-mirror pipeline**

For a direct-mirror pipeline (raw contract events/decoded logs into a database or webhook) instead of a subgraph, consult Goldsky's own docs for the pipeline definition format and how to point it at a Lumia source.
{% endstep %}
{% endstepper %}

### Verify it worked

Check the pipeline/subgraph status in the Goldsky dashboard, then query it for an entity or row you know exists on-chain (cross-check against the explorer) and confirm it matches.

### Troubleshooting

<details>

<summary>Lumia not selectable as a source chain</summary>

This is expected until Lumia's chain registration with Goldsky is confirmed; ask Goldsky support directly.

</details>

<details>

<summary>Pipeline shows synced but data looks incomplete</summary>

Check the configured start block against when your contract was actually deployed.

</details>


# Index contract events with The Graph

You want to index contract events on Lumia so your app can query historical/aggregated data instead of scanning logs itself.

**Who this is for:** developers who need indexed, queryable contract data. **Prerequisites:** a deployed, verified contract on Lumia; [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

### Steps (confirm network support before deploying)

{% stepper %}
{% step %}
**Install the Graph CLI**

Consult The Graph's own current published docs for the package name and version; that's their product, not Lumia's.
{% endstep %}

{% step %}
**Scaffold a subgraph against your contract's ABI and address**

```bash
graph init --from-contract 0xYourContractAddress --abi ./YourContract.json
```

When prompted for the network, you need Lumia's network identifier as registered with The Graph.
{% endstep %}

{% step %}
**Define events and handlers**

Define the events you want indexed in `schema.graphql` and the corresponding handlers in the generated mapping file (AssemblyScript).
{% endstep %}

{% step %}
**Deploy**

Deploy to a self-hosted Graph Node pointed at Lumia's RPC (see [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints)), or to The Graph's hosted/network service if Lumia is a supported network there.
{% endstep %}
{% endstepper %}

### Verify it worked

Query the deployed subgraph's GraphQL endpoint for an entity you know exists on-chain (e.g. a specific event from a transaction you already confirmed on the explorer) and confirm the response matches.

```graphql
{
  yourEntities(first: 5, orderBy: blockNumber, orderDirection: desc) {
    id
    blockNumber
  }
}
```

### Troubleshooting

<details>

<summary><code>graph init</code> has no Lumia network option</summary>

This is expected until network registration is confirmed; fall back to a self-hosted Graph Node against Lumia's RPC.

</details>

<details>

<summary>Subgraph syncs but returns no entities</summary>

Check your handler's event signature against the contract's actual emitted event. A mismatched ABI is the most common cause.

</details>


# Oracles

What this subsection covers: reading price feeds with Supra, data feeds with API3, commodity price feeds, and Gateway Oracles.


# Read price feeds with Supra

You want to pull a price feed into a contract on Lumia, using Supra's pull-oracle model.

**Who this is for:** developers building a contract that needs an oracle-sourced value. **Prerequisites:** [Oracles & Attestation (concept)](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/oracles-and-attestation); [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints). **Time:** varies, depending on whether a Supra oracle-storage contract for the pair you need is already deployed on the network you're targeting.

Supra is named in Lumia's documentation as an integrated oracle provider.

### How the integration mechanism generally works

Supra's oracle is typically a pull model: your app fetches a signed price update off-chain (from Supra's data feed service), then submits it on-chain to a Supra verifier/storage contract as part of the same transaction that consumes it, rather than reading a value that's already sitting on-chain.

### Steps

{% stepper %}
{% step %}
**Confirm whether a Supra oracle-storage contract is already deployed**

On the Lumia network you're targeting.
{% endstep %}

{% step %}
**Fetch the signed price update**

Once confirmed, fetch the signed price update from Supra's off-chain feed endpoint for the pair you need.
{% endstep %}

{% step %}
**Submit the update alongside your consuming transaction**

Per Supra's verify-then-read pattern.
{% endstep %}
{% endstepper %}

### Verify it worked

Once you have a real contract address and a working fetch, the on-chain verify call should succeed and the price value it returns should match what you fetched off-chain for the same round.

### Troubleshooting

<details>

<summary>No contract address or feed endpoint to call</summary>

Confirm the contract address and feed endpoint with Supra or Lumia directly for the network you're targeting; do not substitute values from a different chain's Supra deployment.

</details>

<details>

<summary>Verify call reverts</summary>

A stale or already-consumed signed update is the most common cause in Supra's pull model generally; fetch a fresh update per transaction.

</details>


# Read data feeds with API3

You want to read a live price (or other off-chain data) feed from API3 into a contract on Lumia.

**Who this is for:** developers building a contract that needs an oracle-sourced value. **Prerequisites:** [Oracles & Attestation (concept)](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/oracles-and-attestation) for what an oracle is and how it differs from attestation (this page doesn't re-explain that); [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints). **Time:** varies, depending on whether a proxy for the feed you need is already deployed on the network you're targeting.

API3 is named in Lumia's documentation as an integrated oracle provider.

### How the integration mechanism generally works

API3's dAPIs are read directly from an on-chain proxy contract. There's no separate off-chain relayer call for the read path; your contract calls the proxy's read function and gets back a value and a timestamp.

### Steps

{% stepper %}
{% step %}
**Confirm whether a dAPI proxy is already deployed**

On the Lumia network you're targeting (mainnet or Beam). Do not substitute a proxy address from API3's docs for another chain. A proxy address is chain-specific.
{% endstep %}

{% step %}
**Call the proxy's read function**

Once you have a confirmed proxy address, add it to your project and call its read function to get the current value and timestamp.
{% endstep %}

{% step %}
**Check the timestamp**

Check the returned timestamp against your own freshness requirement before trusting the value. This is a standard oracle-consumption pattern, not Lumia-specific.
{% endstep %}
{% endstepper %}

### Verify it worked

Once you have a real proxy address, a read call should return a non-zero value and a recent timestamp; cross-check the value against a second source before relying on it in production.

### Troubleshooting

<details>

<summary>No proxy address to call</summary>

Confirm the proxy address with API3 or Lumia directly for the network you're targeting; do not substitute an address from a different chain's API3 deployment.

</details>

<details>

<summary>Stale timestamp</summary>

API3's dAPIs are pushed on data-provider triggers, not a fixed schedule; a stale read may mean the underlying value genuinely hasn't moved, not that something is broken.

</details>


# Smart contracts

**Who this is for:** developers writing and deploying Solidity contracts on Lumia. By the end of this page you'll know which tools are supported and where each task guide in this subsection lives.

**Prerequisites:** a wallet funded on Beam testnet. See [Accounts & Wallets on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/accounts-and-wallets-on-lumia) and [Get testnet tokens](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/environment/get-testnet-tokens-faucet).

### What's different from Ethereum

Lumia is an EVM-equivalent zkEVM L2: standard Solidity compiles and runs as-is, and standard Ethereum tooling points at Lumia the same way it would at any other EVM chain. You change the network configuration, not your contracts or your workflow. A small number of opcodes behave differently or are unsupported under the zkEVM's proving constraints; see [EVM differences on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/evm-differences-on-lumia) before you rely on anything unusual (precompiles, specific hash opcodes) in a contract you intend to deploy here.

### Supported tooling

Hardhat and Truffle both deploy and verify a contract on Lumia the same way: point their standard network config at Lumia's RPC and chain ID, then run the same commands you would on any other EVM chain.

{% tabs %}
{% tab title="Hardhat" %}
Scaffolded with `@nomicfoundation/hardhat-toolbox` (bundles ethers v6, chai matchers, gas reporter).

1. [Deploy a contract with Hardhat](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/deploy-a-contract-with-hardhat)
2. [Verify a contract with Hardhat](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/verify-a-contract-with-hardhat)
   {% endtab %}

{% tab title="Truffle" %}
Signs transactions through `@truffle/hdwallet-provider`.

1. [Deploy a contract with Truffle](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/deploy-a-contract-with-truffle)
2. [Verify a contract with Truffle](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/verify-a-contract-with-truffle)
   {% endtab %}
   {% endtabs %}

**Foundry**: standard `forge create`/`cast` pointed at Lumia's RPC works the same way it does for any other EVM chain.

### From local project to a verified contract

The diagram below shows the mechanism every deploy and verify guide in this section walks you through: a local project submits a transaction through an RPC endpoint to the network, and a separate later step publishes the source code on the explorer.

```mermaid
flowchart LR
    A[Local Hardhat or Truffle project] -->|network config: RPC URL and chain ID from reference/networks| B[Deploy command]
    B -->|submits deployment transaction| C[RPC endpoint]
    C -->|processed by| D[Lumia network: Beam testnet or mainnet]
    D -->|prints deployed address on success| E[Deployed contract address]
    E -->|verify command with constructor args| F[Explorer verification]
    F -->|source matched to bytecode| G[Explorer Contract tab]
```

### Task guides in this section

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Interact with a deployed contract</strong></td><td>Read and write a deployed contract from a script (ethers.js/web3.js) or directly from the block explorer.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/interact-with-a-deployed-contract">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/interact-with-a-deployed-contract</a></td></tr><tr><td><strong>Relayers &#x26; meta-transactions</strong></td><td>Gasless transaction patterns, via the account-abstraction paymaster path.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/relayers-and-meta-transactions">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/relayers-and-meta-transactions</a></td></tr><tr><td><strong>Web3 functions</strong></td><td>Off-chain automation triggers.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/web3-functions">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/web3-functions</a></td></tr><tr><td><strong>EVM differences on Lumia</strong></td><td>Read this before you deploy anything relying on non-standard opcodes or precompiles.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/evm-differences-on-lumia">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/evm-differences-on-lumia</a></td></tr></tbody></table>

If you haven't deployed anything on Lumia yet, [Quickstart: your first contract on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/quickstart-your-first-contract-on-lumia) walks the whole path (wallet, funds, deploy, verify, interact) in one guide.


# Deploy a contract with Hardhat

**Who this is for:** developers deploying a Solidity contract to Lumia with Hardhat. If you haven't set up a Hardhat project at all yet, follow [Quickstart: your first contract on Lumia](file:///5838283/Quickstart-your-first-contract-on-Lumia.md) instead. It covers this same ground end to end.

**Prerequisites:** a Hardhat project with your contract already written and compiling; a wallet funded on the network you're targeting. See [Get testnet tokens](file:///5838283/environment/Get-testnet-tokens-faucet.md) for Beam.

**Time:** a few minutes once your contract compiles.

{% stepper %}
{% step %}

#### 1. Add a network entry to `hardhat.config.js`

Pull the RPC URL and chain ID from [`/reference/networks`](file:///reference/Networks-and-endpoints.md) via an environment variable rather than a hardcoded literal:

{% code title="hardhat.config.js" %}

```js
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();

module.exports = {
  solidity: "0.8.24",
  networks: {
    lumiaBeam: {
      url: process.env.LUMIA_BEAM_RPC_URL, // from /reference/networks
      chainId: 2030232745,
      accounts: [process.env.PRIVATE_KEY],
    },
  },
};
```

{% endcode %}
{% endstep %}

{% step %}

#### 2. Set `LUMIA_BEAM_RPC_URL` and `PRIVATE_KEY` in a `.env` file

Never commit this file. Copy the RPC value from [`/reference/networks`](file:///reference/Networks-and-endpoints.md).
{% endstep %}

{% step %}

#### 3. Write a deploy script under `scripts/`

```js
const hre = require("hardhat");

async function main() {
  const Factory = await hre.ethers.getContractFactory("YourContract");
  const contract = await Factory.deploy(/* constructor args */);
  await contract.waitForDeployment();
  console.log("Deployed to:", await contract.getAddress());
}

main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});
```

{% endstep %}

{% step %}

#### 4. Run it

```bash
npx hardhat run scripts/deploy.js --network lumiaBeam
```

{% endstep %}
{% endstepper %}

## Verify it worked

The script prints a deployed address. Search that address on the Beam explorer (see [Block explorers](file:///5838283/environment/Block-explorers.md)) and confirm a confirmed contract-creation transaction.

## Troubleshooting

<details>

<summary><code>insufficient funds for intrinsic transaction cost</code></summary>

Your deployer address has no balance on the network you targeted. Fund it: see [Get testnet tokens](file:///5838283/environment/Get-testnet-tokens-faucet.md).

</details>

<details>

<summary><code>invalid chain id</code> or chain ID mismatch</summary>

The RPC URL in your `.env` doesn't match the `chainId` in `hardhat.config.js`. Recheck both against the same row of [`/reference/networks`](file:///reference/Networks-and-endpoints.md).

</details>

<details>

<summary>Deploy hangs indefinitely</summary>

You're likely pointed at a dead RPC, commonly the retired `1952959480` network rather than Beam. See [`/reference/retired-testnet`](file:///reference/Retired-testnet-1952959480.md).

</details>

<details>

<summary><code>nonce too low</code></summary>

A previous deploy attempt is still pending from the same address; wait for it to clear or reset the nonce.

</details>


# Deploy a contract with Truffle

**Who this is for:** developers deploying a Solidity contract to Lumia with Truffle.

**Prerequisites:** a Truffle project with your contract already written and compiling; a wallet funded on the network you're targeting. See [Get testnet tokens](file:///5838283/environment/Get-testnet-tokens-faucet.md) for Beam.

**Time:** a few minutes once your contract compiles.

{% stepper %}
{% step %}

#### 1. Install `@truffle/hdwallet-provider`

```bash
npm install --save-dev @truffle/hdwallet-provider dotenv
```

{% endstep %}

{% step %}

#### 2. Add a network entry to `truffle-config.js`

Pull the RPC URL and chain ID from [`/reference/networks`](file:///reference/Networks-and-endpoints.md) via an environment variable:

{% code title="truffle-config.js" %}

```js
require("dotenv").config();
const HDWalletProvider = require("@truffle/hdwallet-provider");

module.exports = {
  networks: {
    lumiaBeam: {
      provider: () =>
        new HDWalletProvider(process.env.PRIVATE_KEY, process.env.LUMIA_BEAM_RPC_URL), // RPC from /reference/networks
      network_id: 2030232745,
    },
  },
  compilers: {
    solc: {
      version: "0.8.24",
    },
  },
};
```

{% endcode %}
{% endstep %}

{% step %}

#### 3. Set `LUMIA_BEAM_RPC_URL` and `PRIVATE_KEY` in a `.env` file

Never commit this file. Copy the RPC value from [`/reference/networks`](file:///reference/Networks-and-endpoints.md).
{% endstep %}

{% step %}

#### 4. Write a migration under `migrations/`

```js
const YourContract = artifacts.require("YourContract");

module.exports = function (deployer) {
  deployer.deploy(YourContract /* , constructor args */);
};
```

{% endstep %}

{% step %}

#### 5. Run it

```bash
npx truffle migrate --network lumiaBeam
```

{% endstep %}
{% endstepper %}

## Verify it worked

The migration output prints the deployed contract address. Search that address on the Beam explorer (see [Block explorers](file:///5838283/environment/Block-explorers.md)) and confirm a confirmed contract-creation transaction.

## Troubleshooting

<details>

<summary><code>insufficient funds for gas * price + value</code></summary>

Your deployer address has no balance on the network you targeted. Fund it: see [Get testnet tokens](file:///5838283/environment/Get-testnet-tokens-faucet.md).

</details>

<details>

<summary><code>network_id</code> mismatch / "network id doesn't match"</summary>

The `network_id` in `truffle-config.js` doesn't match the chain the RPC URL actually points to. Recheck both against the same row of [`/reference/networks`](file:///reference/Networks-and-endpoints.md).

</details>

<details>

<summary>Migration hangs indefinitely</summary>

You're likely pointed at a dead RPC, commonly the retired `1952959480` network rather than Beam. See [`/reference/retired-testnet`](file:///reference/Retired-testnet-1952959480.md).

</details>

<details>

<summary><code>HDWalletProvider</code> errors on startup</summary>

Check `PRIVATE_KEY` is set and does not include a `0x` prefix if your provider version expects a bare hex string; check your installed `@truffle/hdwallet-provider` version's expected format.

</details>


# EVM differences on Lumia

You're porting a contract written for Ethereum (or another EVM chain) to Lumia and need to know where the zkEVM's behavior diverges from what you're used to.

**Who this is for:** developers deploying existing Solidity contracts on Lumia, especially anything using low-level opcodes, `SELFDESTRUCT`, or a hash/pairing precompile. **Prerequisites:** [Smart Contracts on Lumia](broken://pages/bd2011a6ce1159bafc4ce4edc5f80b3b699f6bc7). **Time:** 5 minutes to read; longer if you need to rewrite affected code.

## The short version

Lumia's zkEVM supports the EVM instruction set with a small number of modified opcodes and three unsupported ones, plus a reduced precompile set. The full, current table lives at [`/reference/evm-opcodes`](file:///reference/EVM-opcode-support.md). This page explains why it matters and doesn't repeat the table.

## What to check before you deploy

**Modified opcodes**: these still work, but don't behave the way they do on Ethereum L1:

* `SELFDESTRUCT` is removed and replaced by `SENDALL`. If your contract (or an inherited library) relies on `SELFDESTRUCT` to reclaim funds or as an upgrade/kill-switch mechanism, that code path needs rewriting, not just redeploying.
* `EXTCODEHASH` reads from the zkEVM state tree, not raw bytecode the way you may be assuming.
* `DIFFICULTY` always returns `0`. If any code branches on difficulty (rare, but seen in old randomness hacks), it will behave differently.
* `BLOCKHASH` returns all previous block hashes, not just the last 256. Do not assume the Ethereum L1 256-block window applies.
* `NUMBER` returns the number of processable transactions, not a conventional block number in the way some contracts assume. Check any logic that does arithmetic on `block.number`.

{% hint style="warning" %}
**Unsupported opcodes**: using these will fail, full stop. `SHA256`, `BLAKE`, `PAIRINGS` are not supported. A contract or an imported library (some ZK/aggregate-signature libraries call these) that touches any of the three will not deploy or will revert at call time.
{% endhint %}

{% hint style="warning" %}
**Precompiles**: only `ecRecover` and `identity` are supported; every other precompile address reverts. This affects anything relying on `modexp`, the `bn256`/`alt_bn128` pairing precompiles (common in some ZK-verifier and BLS-signature libraries), or `ripemd160`.
{% endhint %}

## Verify it worked

Compile and deploy on Beam testnet first (see [`/build/smart-contracts/deploy-with-hardhat`](broken://pages/f176929e0032d6e7897dd25c5f662a1adae28160)). If deployment or a specific call reverts with no clear reason, check whether the reverting code path touches one of the opcodes/precompiles above before assuming it's a logic bug.

## Troubleshooting

<details>

<summary>Deployment reverts with no revert reason</summary>

Search your contract and its imports for `selfdestruct`, `sha256(`, or a pairing-precompile call; these are the most common cause on a straight L1 port.

</details>

<details>

<summary>A library you didn't write yourself fails</summary>

Some audited libraries (older BLS/ZK-verification code) call `bn256Pairing`/`modexp` internally. Check the library's source, not just your own contract.

</details>


# Interact with a deployed contract

You already have a contract address on Lumia and want to call it, either from code or from the explorer UI.

**Who this is for:** developers with a contract already deployed on Lumia mainnet or Beam testnet (see [`/build/quickstart`](file:///5838283/Quickstart-your-first-contract-on-Lumia.md) or [`/build/smart-contracts/deploy-with-hardhat`](broken://pages/f176929e0032d6e7897dd25c5f662a1adae28160) if you don't have one yet). **Prerequisites:** a deployed contract address and its ABI; network values from [`/reference/networks`](file:///reference/Networks-and-endpoints.md). **Time:** 10-15 minutes.

## Steps

{% tabs %}
{% tab title="Option A: no code, via the block explorer" %}

1. Open the contract address on the relevant explorer: mainnet [`explorer.lumia.org`](https://explorer.lumia.org/) or Beam [`beam-explorer.lumia.org`](https://beam-explorer.lumia.org/) (see [`/reference/networks`](file:///reference/Networks-and-endpoints.md) for both).
2. If the contract is verified, the explorer's **Contract** tab exposes **Read Contract** and **Write Contract** sub-tabs generated from the ABI. Unverified contracts only expose raw calldata entry. Verify first with [`/build/smart-contracts/verify-with-hardhat`](broken://pages/1e93af03725a78c5c91c6a0808c099a17e27343d) or [`/build/smart-contracts/verify-with-truffle`](broken://pages/9ea94d5cc2e27d91093e485eab6c2189c9f3a45a) if you need the decoded UI.
3. **Read Contract**: expand a `view`/`pure` function, fill in arguments, click query. No wallet or gas needed.
4. **Write Contract**: connect a wallet (must be on the same network as the contract), expand the function, fill in arguments, submit. This costs gas in the native token.
   {% endtab %}

{% tab title="Option B: from a script, with ethers.js" %}

```bash
npm install ethers
```

{% code title="read.js" %}

```js
const { ethers } = require("ethers");

// Use the RPC value for the network your contract is on; see /reference/networks.
// Do not retype it from memory; the retired "Lumia Testnet" RPC (chain ID 1952959480) is dead.
const provider = new ethers.JsonRpcProvider("https://beam-rpc.lumia.org");

const abi = [ /* your contract's ABI */ ];
const address = "0xYourContractAddress";

async function main() {
  const contract = new ethers.Contract(address, abi, provider);
  const value = await contract.someViewFunction();
  console.log("Result:", value);
}

main();
```

{% endcode %}

To send a state-changing transaction, attach a signer instead of a bare provider:

{% code title="write.js" %}

```js
const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("https://beam-rpc.lumia.org");
const wallet = new ethers.Wallet(process.env.PRIVATE_KEY, provider); // testnet key only
const abi = [ /* your contract's ABI */ ];
const contract = new ethers.Contract("0xYourContractAddress", abi, wallet);

async function main() {
  const tx = await contract.someStateChangingFunction(/* args */);
  const receipt = await tx.wait();
  console.log("Confirmed in block:", receipt.blockNumber);
}

main();
```

{% endcode %}

The web3.js equivalent (`new Web3(rpcUrl)`, `new web3.eth.Contract(abi, address)`) follows the same shape: provider/RPC URL, ABI, address, then `.methods.fn().call()` for reads or `.send({ from })` for writes.
{% endtab %}
{% endtabs %}

## Verify it worked

* A read call returns a decoded value with no error.
* A write call's `tx.wait()` (or the explorer's pending-tx banner) resolves to a receipt; open the transaction hash on the explorer and confirm status is **Success**.

## Troubleshooting

<details>

<summary><code>call revert exception</code> on a read</summary>

Check you're calling the right function signature/ABI and that any required state (e.g. an allowlist) is satisfied; an unverified contract with a hand-written ABI is the most common cause of a mismatch.

</details>

<details>

<summary>Wallet shows the wrong chain / transaction never confirms</summary>

Your wallet is pointed at a different network. Re-check against [`/reference/networks`](file:///reference/Networks-and-endpoints.md); this is exactly the trap the retired chain ID `1952959480` sets for anyone following an old tutorial.

</details>

<details>

<summary><code>insufficient funds for gas</code></summary>

Fund the account from [`/reference/faucet`](file:///reference/Testnet-faucet.md) (Beam) or your own mainnet balance.

</details>


# Relayers and meta transactions

You want a user to transact without holding the native token for gas.

**Who this is for:** developers building a gasless or "sponsored transaction" flow. **Prerequisites:** [Account Abstraction & Intents](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/account-abstraction-and-intents) (concept: read this first for what a smart account and paymaster are); [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

### How gasless transactions work on Lumia

Lumia's account-abstraction stack (ERC-4337: smart account, factory, EntryPoint, paymaster; see [`/lumia/architecture/account-abstraction`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/account-abstraction-and-intents)) is the path that's been built and exercised as a demo on Beam testnet. A paymaster contract, **LumiaPaymaster**, is a Foundry-based reference implementation deployed per-integrator via a script, not a single shared instance you point at. See [`/reference/contract-addresses`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses) for the EntryPoint address and the deploy-your-own model, and [`/reference/sdks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/sdks) for its packaging status.

This means "meta-transaction" on Lumia today is, concretely: submit a UserOperation to the EntryPoint through a bundler, with your own deployed LumiaPaymaster sponsoring gas according to whatever policy you configure (per-account, global, or a gas allowance). It is not a classic ERC-2771 trusted-forwarder relay pattern layered on top of ordinary transactions.

### Steps (paymaster-sponsored path)

{% stepper %}
{% step %}
**Deploy your own LumiaPaymaster instance**

```bash
forge script script/DeployLumiaPaymaster.s.sol --rpc-url https://beam-rpc.lumia.org --broadcast
```

{% endstep %}

{% step %}
**Fund the paymaster contract**

Fund it with native token so it can pay for the gas it sponsors.
{% endstep %}

{% step %}
**Build the UserOperation**

Build the UserOperation for the call you want sponsored, referencing the EntryPoint address from [`/reference/contract-addresses`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses), and your paymaster's address in the `paymasterAndData` field.
{% endstep %}

{% step %}
**Submit it to a bundler**

Submit the UserOperation to a bundler pointed at Lumia Beam.
{% endstep %}
{% endstepper %}

### Verify it worked

Look up the resulting UserOperation hash (or its included transaction hash, once bundled) on the Beam explorer (`https://beam-explorer.lumia.org/`) and confirm the sender account paid zero native-token gas out of its own balance. The paymaster's balance should have decreased instead.

### Troubleshooting

<details>

<summary>UserOperation rejected by the bundler</summary>

Confirm the EntryPoint address matches the one in [`/reference/contract-addresses`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses) exactly; a stale or mistyped address is the most common cause.

</details>

<details>

<summary>Paymaster sponsorship silently not applied</summary>

Check the paymaster's own native-token balance; an empty paymaster can't sponsor gas.

</details>


# Verify a contract with Hardhat

**Who this is for:** developers who've deployed a contract with Hardhat and want its source code visible and callable on the explorer.

**Prerequisites:** a contract already deployed. See [Deploy a contract with Hardhat](broken://pages/f176929e0032d6e7897dd25c5f662a1adae28160).

**Time:** a couple of minutes.

{% stepper %}
{% step %}

#### 1. Confirm the verify plugin is installed

`@nomicfoundation/hardhat-toolbox` (which bundles `hardhat-verify`); if you scaffolded via [Quickstart](file:///5838283/Quickstart-your-first-contract-on-Lumia.md), it already is.
{% endstep %}

{% step %}

#### 2. Add the verifier config to `hardhat.config.js`

{% hint style="warning" %}
The exact verifier backend Lumia's explorer expects (a Blockscout-style verification endpoint versus an Etherscan-style API key flow) is {{TODO: confirm with protocol eng: not confirmed in material available 2026-09-09}}. Once confirmed, add the corresponding block to `hardhat.config.js`, for example:
{% endhint %}

{% code title="hardhat.config.js" %}

```js
module.exports = {
  // ...existing config
  etherscan: {
    apiKey: {
      lumiaBeam: process.env.LUMIA_EXPLORER_API_KEY, // {{TODO: confirm whether an API key is required at all}}
    },
    customChains: [
      {
        network: "lumiaBeam",
        chainId: 2030232745,
        urls: {
          apiURL: "{{TODO: confirm: explorer API URL for Beam}}",
          browserURL: "{{TODO: see /reference/explorers for the browser URL}}",
        },
      },
    ],
  },
};
```

{% endcode %}
{% endstep %}

{% step %}

#### 3. Run verification against your deployed address

```bash
npx hardhat verify --network lumiaBeam <DEPLOYED_CONTRACT_ADDRESS> <constructor arg 1> <constructor arg 2>
```

List constructor arguments in the same order your contract's constructor takes them; omit this if your contract has none.
{% endstep %}
{% endstepper %}

## Verify it worked

Open the contract's address on the Beam explorer (see [Block explorers](file:///5838283/environment/Block-explorers.md)). The **Contract** tab shows your source code and a **Read/Write Contract** panel once verification succeeds.

## Troubleshooting

<details>

<summary><code>hardhat verify</code> fails with an API/network error</summary>

The explorer API URL or key requirement isn't confirmed yet for Lumia. See the TODO above. Check whether Lumia's explorer (Blockscout-based, per [`/reference/explorers`](file:///reference/Block-explorers-reference.md)) needs a key at all before assuming your key is wrong.

</details>

<details>

<summary>"Already verified" but the explorer shows no source</summary>

This usually means a prior partial verification attempt; try again with the exact same compiler version and settings used to deploy.

</details>

<details>

<summary>Constructor argument mismatch error</summary>

The arguments passed to `hardhat verify` must exactly match, in order and type, what was passed to `deploy()`.

</details>


# Verify a contract with Truffle

**Who this is for:** developers who've deployed a contract with Truffle and want its source code visible and callable on the explorer.

**Prerequisites:** a contract already deployed. See [Deploy a contract with Truffle](broken://pages/8a741ad4416d5f627db68dd169bc2af5dfdfed5d).

**Time:** a couple of minutes.

{% stepper %}
{% step %}

#### 1. Install the verification plugin

```bash
npm install --save-dev truffle-plugin-verify
```

{% endstep %}

{% step %}

#### 2. Add it to `truffle-config.js`

{% code title="truffle-config.js" %}

```js
module.exports = {
  // ...existing config
  plugins: ["truffle-plugin-verify"],
  api_keys: {
    lumiaBeam: process.env.LUMIA_EXPLORER_API_KEY, // {{TODO: confirm whether an API key is required at all}}
  },
};
```

{% endcode %}
{% endstep %}

{% step %}

#### 3. Confirm the verifier backend

{% hint style="warning" %}
The exact verifier backend Lumia's explorer expects (a Blockscout-style flow versus an Etherscan-style API key flow) is {{TODO: confirm with protocol eng: not confirmed in material available 2026-09-09}}; the plugin config above may need Lumia-specific endpoint settings once that's resolved.
{% endhint %}
{% endstep %}

{% step %}

#### 4. Run verification against your deployed address

```bash
npx truffle run verify YourContract@<DEPLOYED_CONTRACT_ADDRESS> --network lumiaBeam
```

{% endstep %}
{% endstepper %}

## Verify it worked

Open the contract's address on the Beam explorer (see [Block explorers](file:///5838283/environment/Block-explorers.md)). The **Contract** tab shows your source code and a **Read/Write Contract** panel once verification succeeds.

## Troubleshooting

<details>

<summary><code>truffle run verify</code> fails with an API/network error</summary>

The explorer API endpoint or key requirement isn't confirmed yet for Lumia. See the TODO above.

</details>

<details>

<summary>"Already verified" but the explorer shows no source</summary>

Try again with the exact compiler version and optimizer settings used at deploy time; a mismatch here is the most common cause.

</details>

<details>

<summary>Constructor argument encoding errors</summary>

Confirm the contract name after `@` in the command matches the artifact name exactly, including case.

</details>


# Web3 functions

You want a smart contract function to run automatically on a schedule or in response to an on-chain/off-chain condition, without a server you have to keep running yourself.

**Who this is for:** developers who need automated, event-driven or scheduled contract calls (a "keeper" pattern) rather than a user manually triggering every transaction. **Prerequisites:** a deployed contract with the function you want automated; [Networks & Endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

If what you need is gas-sponsored execution triggered by a user, see [Relayers & meta-transactions](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/relayers-and-meta-transactions).


# Wallets

What this subsection covers: how accounts and wallets work on Lumia, and adding Lumia to MetaMask and FoxWallet.


# Accounts and wallets on Lumia

**Who this is for:** developers about to set up a wallet for Lumia, who want the model in their head before following a click-by-click guide.

**Prerequisites:** none. Read this before [Add Lumia to MetaMask](broken://pages/fd523d6c003855481e39c921d3b79174846df1cf) or [Add Lumia to FoxWallet](broken://pages/9d0a2c67eaeb488522d9650173b9eb3db3f8ae36).

## What you need to know

**The account model is standard EVM.** A Lumia address is an externally-owned account (EOA): the same key pair, the same address format, and the same signing scheme as Ethereum. Any EVM-compatible wallet can hold a Lumia account; nothing about the address itself is Lumia-specific. If you already have an Ethereum wallet, you already have a Lumia-compatible account. You just need to point that wallet at Lumia's network values.

**Supported wallets.** This section documents [MetaMask](broken://pages/fd523d6c003855481e39c921d3b79174846df1cf) and [FoxWallet](broken://pages/9d0a2c67eaeb488522d9650173b9eb3db3f8ae36) step by step. Any wallet that supports adding a custom EVM network (`wallet_addEthereumChain` or an equivalent manual-add flow) works the same way in principle. You're adding the same network fields regardless of which wallet's menus you're clicking through.

**Testnet vs. mainnet accounts are the same account, different network.** Your address doesn't change between Lumia mainnet and Beam testnet. Only which network your wallet is currently pointed at, and which funds are visible, changes. This is exactly why it matters to check which chain ID your wallet shows before you sign or send anything: the same private key controls a mainnet balance and a Beam testnet balance that have nothing to do with each other.

{% hint style="warning" %}
**Never reuse a mainnet key for testnet work, or vice versa.** Not because the chains are technically linked, but because keeping them separate means a testnet mistake (a leaked key in a public repo, a compromised dev machine) never touches real funds.
{% endhint %}

## Steps

{% stepper %}
{% step %}

#### 1. Decide which network you need first

Most development starts on Beam testnet. See [Networks & RPC setup](file:///5838283/environment/Networks-and-RPC-setup.md) if you're not sure which one applies to you.
{% endstep %}

{% step %}

#### 2. Pick a wallet from the supported list above

{% endstep %}

{% step %}

#### 3. Follow that wallet's setup guide

Add the network and confirm the chain ID it shows against [`/reference/networks`](file:///reference/Networks-and-endpoints.md).
{% endstep %}

{% step %}

#### 4. Fund the account

[Testnet tokens from the faucet](file:///5838283/environment/Get-testnet-tokens-faucet.md) for Beam, or your own funds for mainnet.
{% endstep %}
{% endstepper %}

## Verify it worked

Your wallet shows a nonzero balance on the network you intended, and the chain ID displayed matches the value in [`/reference/networks`](file:///reference/Networks-and-endpoints.md), not the retired `1952959480` network (see [`/reference/retired-testnet`](file:///reference/Retired-testnet-1952959480.md)).

## Troubleshooting

<details>

<summary>Balance shows zero after funding</summary>

Your wallet is still pointed at a different network than the one you funded. Re-check the active network name/chain ID.

</details>

<details>

<summary>Not sure which network to use</summary>

Default to Beam testnet for anything you're still building; move to mainnet only once you're intentionally deploying for real use.

</details>


# Add Lumia to FoxWallet

**Who this is for:** developers adding a Lumia network to FoxWallet for the first time.

**Prerequisites:** FoxWallet installed. Read [Accounts & Wallets on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/accounts-and-wallets-on-lumia) first if you haven't used an EVM wallet before.

**Time:** under 2 minutes.

{% stepper %}
{% step %}
**Open Reference on another device or tab**

Open [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints). You'll copy values from it in step 4. Decide first whether you want **mainnet** or **Beam testnet**; most development work uses Beam.
{% endstep %}

{% step %}
**Open the network selector**

In FoxWallet, open the network selector (usually the chain icon at the top of the wallet screen).
{% endstep %}

{% step %}
**Find Add Custom Network**

Look for **Add Custom Network** / **Manage Networks → Add Network**. Exact wording can vary between FoxWallet app versions.
{% endstep %}

{% step %}
**Fill in the fields**

Using the matching row from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints):

* **Network name**
* **RPC URL**
* **Chain ID**
* **Currency symbol** (do not guess a symbol yourself)
* **Block explorer URL**
  {% endstep %}

{% step %}
**Save and switch**

Save, then switch to the new network from the selector.
{% endstep %}
{% endstepper %}

### Verify it worked

FoxWallet's active-network indicator shows the network you added, and the chain ID in its network details matches [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) exactly.

### Troubleshooting

<details>

<summary>Can't find "Add Custom Network"</summary>

Check you're on a FoxWallet version that supports custom EVM networks; the menu path has moved between versions.

</details>

<details>

<summary>Network saves but shows a zero balance you expected to see</summary>

Confirm you funded the same address this wallet is showing, on the same network (mainnet vs. Beam are separate balances; see [Accounts & wallets on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/accounts-and-wallets-on-lumia)).

</details>

<details>

<summary>You landed on chain ID <code>1952959480</code></summary>

That's a retired network, not Beam. See [`/reference/retired-testnet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480) and re-add using the current Beam values instead.

</details>


# Add Lumia to MetaMask

**Who this is for:** developers adding a Lumia network to MetaMask for the first time.

**Prerequisites:** MetaMask installed. Read [Accounts & Wallets on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/accounts-and-wallets-on-lumia) first if you haven't used an EVM wallet before.

**Time:** under 2 minutes.

{% stepper %}
{% step %}
**Open Reference in another tab**

Open [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints). You'll copy values from it in step 4. Decide first whether you want **mainnet** or **Beam testnet**; most development work uses Beam.
{% endstep %}

{% step %}
**Open Add network**

In MetaMask, click the network selector at the top of the window, then **Add network**.
{% endstep %}

{% step %}
**Choose Add a network manually**
{% endstep %}

{% step %}
**Fill in the fields**

Using the matching row from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints):

* **Network name**: e.g. "Lumia Beam Testnet" or "Lumia Mainnet"
* **New RPC URL**: the RPC (HTTPS) value for the network you chose
* **Chain ID**: the chain ID value for that network
* **Currency symbol**: as listed on that page; do not guess a symbol yourself
* **Block explorer URL**: the Explorer value for that network
  {% endstep %}

{% step %}
**Save and confirm**

Click **Save**, then confirm MetaMask switches you to the network you just added.

{% hint style="info" %}
If Lumia's own site or app offers a one-click "Add to MetaMask" button (a `wallet_addEthereumChain` prompt), it fills in the same fields automatically. Compare what it shows you against [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) before approving, the same way you'd check a manual entry.
{% endhint %}
{% endstep %}
{% endstepper %}

### Verify it worked

MetaMask's network selector shows the network you added, and the chain ID under **Settings → Networks** for that entry matches [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) exactly.

### Troubleshooting

<details>

<summary>"Could not fetch chain ID" error while saving</summary>

The RPC URL was mistyped, or you copied it from an old tutorial rather than [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints). Retype it.

</details>

<details>

<summary>Chain ID mismatch warning</summary>

You've likely entered a chain ID that doesn't match the RPC endpoint's actual network. Re-copy both fields from the same row of [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

</details>

<details>

<summary>You landed on chain ID <code>1952959480</code></summary>

That's a retired network, not Beam. See [`/reference/retired-testnet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480) and re-add using the current Beam values instead.

</details>


# Ecosystem

**Who this is for:** developers, issuers, and users looking for third-party infrastructure that works with Lumia (an oracle, an indexer, a wallet, a bridge), or a project team wanting to get listed here.

Third-party infrastructure that works with Lumia, organized by category, with a link to the guide for each.

### Categories

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Oracle providers</strong></td><td>Price feeds and other off-chain data brought on-chain.</td><td><a href="/ecosystem/oracle-providers">Oracle providers</a></td></tr><tr><td><strong>Indexer providers</strong></td><td>Indexed, queryable views of Lumia chain data.</td><td><a href="/ecosystem/indexer-providers">Indexer providers</a></td></tr><tr><td><strong>Bridges</strong></td><td>Ways to move assets and messages to and from Lumia.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/bridges">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/bridges</a></td></tr></tbody></table>

If you have built something that belongs here, see [Submit your project](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/submit-your-project).

{% hint style="info" %}
Listing here is not an endorsement, a partnership announcement, an official support tier, or a statement of any commercial relationship. Confirm integration details directly with the provider.
{% endhint %}


# Bridges

**Who this is for:** developers and users who need to move assets or messages between Lumia and another chain, and want to know which mechanism applies.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Native Lumia bridge</strong></td><td>The default path for moving assets between Ethereum and Lumia.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/bridge/bridge-assets-to-from-lumia-l2">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/bridge/bridge-assets-to-from-lumia-l2</a></td></tr><tr><td><strong>Shared settlement layer</strong></td><td>Lumia is a member of Polygon's shared AggLayer settlement layer.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum</a></td></tr><tr><td><strong>Interchain messaging</strong></td><td>Hyperlane provides interchain messaging as part of Lumia's interoperability stack.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/interoperability/cross-chain-messaging-with-hyperlane">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/interoperability/cross-chain-messaging-with-hyperlane</a></td></tr></tbody></table>

### Which mechanism applies to which route

Each mechanism covers a different pair of endpoints.

```mermaid
flowchart LR
  E["Ethereum"] -- "deposit, native Lumia bridge" --> LU["Lumia"]
  LU -- "withdraw, native Lumia bridge" --> E
  LU -- "shared settlement layer" --> AG["Polygon CDK chains, via AggLayer"]
  LU -- "interchain messages" --> HY["Other chains, via Hyperlane"]
```

The diagram shows which mechanism covers which route, not how long a transfer takes on any of them.

### Native Lumia bridge

This is the default path for moving assets between Ethereum and Lumia. Walkthrough: [`/build/bridge/bridge-to-lumia`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/bridge/bridge-assets-to-from-lumia-l2) (developer version) or [`/use/bridge/bridge-guide`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/use-lumia/bridge/bridging-assets-user-guide) (plain-language version).

### Shared settlement layer

The shared settlement layer Lumia uses, which also connects it to the other CDK chains. Concept and role on Lumia: [`/lumia/architecture/polygon/agglayer`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum).

### Interchain messaging

Hyperlane is a general-purpose interchain-messaging protocol, used as part of Lumia's interoperability stack.

Details: [`/lumia/architecture/interoperability/hyperlane`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/interoperability/cross-chain-messaging-with-hyperlane).


# Indexer providers

**Who this is for:** developers who need queryable, indexed views of Lumia chain data (event logs, historical state) rather than querying the RPC directly for every lookup.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>The Graph</strong></td><td>Decentralized indexing protocol: index events with a subgraph, query with GraphQL.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-events-with-the-graph">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-events-with-the-graph</a></td></tr><tr><td><strong>Goldsky</strong></td><td>Indexing and data-pipeline platform for streaming and querying on-chain data.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-data-with-goldsky">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-data-with-goldsky</a></td></tr></tbody></table>

### The Graph

The Graph is a decentralized indexing protocol: you define a subgraph describing which on-chain events to index, then query the results with GraphQL instead of scanning blocks yourself.

Setup: [`/build/indexers/thegraph`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-events-with-the-graph).

### Goldsky

Goldsky is an indexing and data-pipeline platform for streaming and querying on-chain data.

Setup: [`/build/indexers/goldsky`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/indexers/index-contract-data-with-goldsky).


# Liquidity and DeFi

**Who this is for:** users and issuers looking for where liquidity lives on Lumia. This page covers Lumia's own liquidity products, which are distinct from any third-party DeFi protocol.

## Lumia's own liquidity products

Three products are documented under Use Lumia. Each page states what is confirmed and what is still open.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Lumia Stream overview</strong></td><td>What Lumia Stream is on Lumia, and what is still an open question.</td><td><a href="file:///5838283/use/liquidity/Lumia-Stream-overview.md">file:///5838283/use/liquidity/Lumia-Stream-overview.md</a></td></tr><tr><td><strong>Node-owned liquidity</strong></td><td>What is confirmed about it, and how it differs from running a Lumia node.</td><td><a href="file:///5838283/use/liquidity/Node-owned-liquidity.md">file:///5838283/use/liquidity/Node-owned-liquidity.md</a></td></tr><tr><td><strong>Liquidity restaking</strong></td><td>What is confirmed about it, and the general risk pattern restaking carries.</td><td><a href="file:///5838283/use/liquidity/Liquidity-restaking.md">file:///5838283/use/liquidity/Liquidity-restaking.md</a></td></tr></tbody></table>

## Third-party DeFi protocols

{% hint style="warning" %}
**No third-party DeFi protocol is named here.** This page describes the categories of liquidity and DeFi activity the chain supports, not a partner list. A named list belongs somewhere it can be kept current, which a docs page is not.
{% endhint %}


# Oracle providers

**Who this is for:** developers who need price or other off-chain data on-chain, and want to know which oracle networks work with Lumia before picking one.

Integration steps and supported feeds are on the linked build guide for each provider.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>API3</strong></td><td>First-party oracle network: data delivered directly by the data provider.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-data-feeds-with-api3">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-data-feeds-with-api3</a></td></tr><tr><td><strong>Supra</strong></td><td>Oracle network providing price and other data feeds.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-price-feeds-with-supra">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-price-feeds-with-supra</a></td></tr></tbody></table>

### API3

API3 is a first-party oracle network: data is delivered directly by the data provider itself rather than passed through a separate third-party node-operator layer.

Setup: [`/build/oracles/api3`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-data-feeds-with-api3).

### Supra

Supra is an oracle network providing price and other data feeds.

Setup: [`/build/oracles/supra`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/oracles/read-price-feeds-with-supra).

### Why attestation is covered separately

Asset-backing attestation (proof of reserve, custody attestation) is treated as a distinct trust question from price oracles on Lumia: [`/lumia/chain-security/oracles-and-attestation`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/oracles-and-attestation).


# RaaS and the Lumia chain stack

**Who this is for:** developers evaluating the chain stack Lumia is built on, or asking whether Lumia offers Rollup-as-a-Service (RaaS) to launch a separate chain.

### The chain stack

Lumia is built on the Polygon CDK and settles through AggLayer. What that stack looks like on Lumia itself is documented at [`/lumia/architecture/polygon/cdk`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/what-the-lumia-chain-is-built-with), with relevant repositories at [`/build/cdk-repos`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/cdk-repositories).

### Rollup-as-a-Service (RaaS)

{% hint style="warning" %}
**Lumia does not offer a Rollup-as-a-Service product today.** There is no productised way for a third party to launch its own chain using Lumia's CDK setup or infrastructure.
{% endhint %}


# Submit your project

**Who this is for:** developers and issuers who have built something on Lumia (an oracle integration, an indexer, a wallet connector, a bridge, or a DeFi protocol) and want it listed in the Ecosystem section.

### How to submit

Email `general@lumia.org` with what the project is, which category it belongs in (oracle, indexer, wallet, bridge, DeFi), and a link to its own documentation or repository. That is the same address as general enquiries; there is no separate submissions inbox.


# Supported wallets

**Who this is for:** anyone who needs to hold LUMIA, sign transactions, or connect an app to Lumia mainnet or Beam testnet, and wants to know which wallets are set up to work with it.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>MetaMask</strong></td><td>Add Lumia as a custom EVM network manually.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-metamask">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-metamask</a></td></tr><tr><td><strong>FoxWallet</strong></td><td>Add Lumia as a custom EVM network in this mobile multi-chain wallet.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-foxwallet">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-foxwallet</a></td></tr><tr><td><strong>Particle Connect</strong></td><td>Wallet and account-abstraction SDK for social-login and embedded wallets.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/account-abstraction/connect-wallets-with-particle-connect">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/account-abstraction/connect-wallets-with-particle-connect</a></td></tr></tbody></table>

### MetaMask

A browser-extension and mobile EVM wallet. Add Lumia as a custom network the same way you'd add any EVM chain: [`/build/wallets/metamask`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-metamask).

### FoxWallet

A mobile multi-chain wallet with EVM chain support. Setup: [`/build/wallets/foxwallet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/wallets/add-lumia-to-foxwallet).

### Particle Connect

An account-abstraction / wallet-connector SDK. It lets an app offer social-login and embedded-wallet options alongside standard EOA wallets, instead of requiring every user to already have a wallet extension installed. Integration: [`/build/account-abstraction/particle-connect`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/account-abstraction/connect-wallets-with-particle-connect).

### If you just need a wallet

If you just need a wallet to use Lumia rather than integrate with it, start at [`/use/wallets/getting-a-wallet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/use-lumia/wallets/getting-a-wallet) instead: the non-technical version of this page.


# Lumia

**Who this is for:** anyone who wants to understand how Lumia works before building on it, issuing an asset on it, or evaluating it as infrastructure: developers, issuers, and operators alike.

This section sits directly under the home page, ahead of Build, because it's the mental model everything else assumes. Deploying a contract, issuing a real-world asset, or running a node all lean on the same underlying answers: how the chain reaches finality, what secures it, what its tokens do, and how compliance is designed in rather than bolted on. This is where those answers live.

## What's in this section

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Architecture</strong></td><td>How a transaction gets from a user's wallet to Ethereum-anchored finality: the chain's base layer, its account abstraction and interoperability features, its data-availability model, and the Polygon CDK/AggLayer stack it's built on.</td><td><a href="broken://pages/cbf611bd069fce9f35fc5e79aba328acb333eff4">Broken link</a></td></tr><tr><td><strong>Chain Security</strong></td><td>What keeps the chain's state correct: sequencing, proof verification, oracle and attestation trust, and independent audits.</td><td><a href="broken://pages/1aea0651f142f55af9732d95e35b698d9bdcba36">Broken link</a></td></tr><tr><td><strong>Lumia Tokens</strong></td><td>The token in the Lumia ecosystem and what it is for.</td><td><a href="broken://pages/d48eac543f50be50c7c5f8029629cacc4896516d">Broken link</a></td></tr><tr><td><strong>Compliance</strong></td><td>The permissionless base layer / permissioned application layer split, and the KYC/KYB/KYT/KYV taxonomy issuers build against.</td><td><a href="broken://pages/431acc9dfcf459a0f87b4fdbab1444fefde2104b">Broken link</a></td></tr></tbody></table>


# Architecture

**Who this is for:** developers evaluating Lumia as a deployment target, and issuers who want to understand what's actually underneath the chain before they rely on it. **You should already know:** nothing. This page starts from first principles and ends at Lumia specifics.

### What is a blockchain

A blockchain is a way for mutually distrusting parties to agree on a single, ordered history of state changes without a central authority adjudicating that agreement. Every participant can independently verify that history is correct, and no single party can unilaterally rewrite it. That's the entire problem a blockchain solves: shared, tamper-evident state, agreed on by a group that doesn't have to trust each other individually.

Two things have to be true for that to work. First, someone or something has to decide the order transactions happen in: two conflicting transactions (spending the same funds twice, say) can't both be valid, so an order has to be picked. Second, everyone has to be able to check that the resulting state actually followed from applying those transactions correctly, without redoing all the work a central party did. How a system solves the first problem is what's usually called consensus. How it solves the second is what determines whether "trust the ledger" means "trust an institution" or "trust math."

### What is consensus, and why it matters

Consensus is the mechanism a set of participants uses to agree on that one ordering (which transactions happened, and in what sequence) even when some participants might be offline, slow, or actively lying. A classic blockchain (Bitcoin, pre-Merge Ethereum) solves this with a large, permissionless, economically-incentivized validator or miner set: anyone can join, and the system is designed so that no small coalition can control the outcome without controlling a majority of the network's staked or computed resources.

That design buys strong decentralization, but it's expensive: every participant in that consensus set has to process every transaction, which caps throughput. A large family of newer chains (rollups and validity chains, Layer 2s built on top of a base chain like Ethereum) takes a different approach to the same two problems. Instead of a large validator set re-executing everything, a much smaller set of parties (sometimes just one) proposes the ordering, and correctness is proven mathematically rather than re-checked by majority vote. The base chain underneath doesn't need to trust the L2's operator; it verifies a proof. This trades away validator-set decentralization at the L2 layer in exchange for inheriting the base chain's security for correctness, plus much higher throughput. Understanding which trade a given chain has made, and where it still depends on a smaller, less decentralized set of actors, is the actual question to ask about any L2's architecture.

### Lumia specifics

Lumia is running a **zkEVM**: an Ethereum Virtual Machine-compatible execution environment whose state transitions are proven correct using zero-knowledge cryptography rather than re-executed by a large validator set. See [`/reference/networks`](/run-a-node/network-parameters) for mainnet's chain ID and connection details.

Concretely, that means Lumia does not run a traditional consensus protocol with a large validator set voting on blocks. An invalid state transition cannot produce a valid proof, so correctness rests on the math, not on a vote. The trade-off is that liveness (the chain continuing to produce blocks at all) currently depends on the sequencer being up, which is the accepted centralization cost of this architecture family.

Getting a transaction from a user's wallet to final settlement, at a high level: a transaction is submitted, ordered and executed by the sequencer, and included in an L2 block; batches of blocks are committed and their correctness proven; that proof, along with the data needed to reconstruct the batch, is settled against Ethereum L1.

```mermaid
flowchart LR
  W["User wallet"] --> S["Sequencer<br/>orders and executes"]
  S --> B["L2 block"]
  B --> BA["Batch of blocks"]
  BA --> P["Prover<br/>generates validity proof"]
  P --> L1["Ethereum L1<br/>verifies the proof"]
  BA -. "batch data made available" .-> L1
  L1 --> F["Settled"]
```

Three things extend that base picture:

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Chain Features</strong></td><td>Account abstraction (how a user interacts with the chain without managing a raw private key and gas directly) and interoperability (how Lumia connects to other chains).</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/chain-features">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/chain-features</a></td></tr><tr><td><strong>Data Availability</strong></td><td>Where the transaction data behind a proof actually lives, and why that choice matters for security and cost.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability</a></td></tr><tr><td><strong>Lumia's chain framework and settlement</strong></td><td>What Lumia inherits from being built on Polygon's CDK, and what AggLayer membership specifically adds.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement</a></td></tr></tbody></table>


# Account abstraction and intents

**Who this is for:** developers deciding whether to build wallet flows on top of smart accounts instead of raw externally-owned accounts (EOAs). **You should already know:** [Architecture](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture).

### What account abstraction enables

Ordinarily, using a chain means holding a private key directly and paying gas in the chain's native token for every action. That's a real barrier for anyone who isn't already comfortable with a seed phrase and a funded wallet. Account abstraction, standardized as **ERC-4337**, replaces the raw externally-owned account with a **smart contract account**: a contract that defines its own rules for how a transaction gets authorized and paid for, instead of a single private key always being required.

Smart accounts also open up more flexible custody than a single private key: signature schemes and key-derivation approaches (including threshold/multi-party signing) can sit behind the same account interface, so "losing a seed phrase" doesn't have to mean losing the account.

### Why it matters on Lumia

For an RWA chain specifically, account abstraction matters because the users interacting with a tokenized asset are not necessarily crypto-native: institutional counterparties and retail holders both benefit from not needing to manage gas and raw keys as a prerequisite to any interaction. It's also what makes sponsored, permissioned flows possible: a paymaster can gate sponsorship by the same kind of allowlist an issuer already uses for compliance.

For the developer integration guide (wiring a smart-account SDK into an app), see [`/build/account-abstraction/particle-connect`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/account-abstraction/connect-wallets-with-particle-connect).


# Chain features

**Who this is for:** developers who want to know what Lumia offers beyond base zkEVM execution. **You should already know:** the basics on [Architecture](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture).

"Chain features" is a grouping, not a single mechanism: it covers the parts of Lumia that change how a user or contract interacts with the chain, rather than how the chain reaches finality. Two features live here: [**Account Abstraction & Intents**](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/account-abstraction-and-intents), which covers how a user can transact without directly managing a raw private key and gas, and [**Interoperability**](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/interoperability), which covers how Lumia connects to other chains for cross-chain messaging.


# Data availability

{% hint style="info" %}
**Who this is for:** developers and issuers who want to understand where the transaction data behind Lumia's state actually lives, and why that's a separate question from correctness. **You should already know:** [Architecture](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture).

### Why data availability is its own question

A validity proof (see [Architecture](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture)) tells you a state transition was computed correctly. It does not, by itself, tell you that the underlying transaction data is anywhere you can get at it. Those are two separate guarantees: correctness (proven cryptographically) and availability (whether the raw data needed to reconstruct or challenge state actually exists somewhere accessible). A chain can have a perfectly valid proof and still leave users unable to independently verify or reconstruct their own balances if the data behind that proof isn't published anywhere retrievable.

Where that data lives is a real architectural trade-off between cost and trust assumptions, not an implementation detail: fully on the base chain (a rollup), off-chain with a separate availability guarantee (a validium), or a choice between the two (volition). The validium and volition models are covered below, along with Avail, the data-availability network named for this role.

The two data-availability models covered here differ in where a batch's transaction data ends up:

```mermaid
flowchart LR
    TX[Batch transaction data] --> MODE{Data availability model}
    MODE -->|validium| OFF[Held off-chain by a separate DA mechanism]
    MODE -->|volition| CHOICE[Chosen per transaction: base chain or off-chain]
```

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Validium</strong></td><td>What a validium is, and how it differs from a rollup in where transaction data lives.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/validium">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/validium</a></td></tr><tr><td><strong>Volition (Enhanced Validium)</strong></td><td>The per-transaction choice model between rollup-style and validium-style data availability.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/volition-enhanced-validium">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/volition-enhanced-validium</a></td></tr><tr><td><strong>Where Lumia's transaction data lives</strong></td><td>What holds the transaction data behind Lumia's validity proofs.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/where-lumia-transaction-data-lives">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/where-lumia-transaction-data-lives</a></td></tr><tr><td><strong>Why Lumia's data-availability choice matters</strong></td><td>Why a dedicated DA network is a different cost and security trade than the alternatives.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/why-the-data-availability-choice-matters">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/why-the-data-availability-choice-matters</a></td></tr><tr><td><strong>How data-availability sampling scales</strong></td><td>The data-availability sampling mechanism that lets a DA layer scale independently of a chain's execution throughput.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/how-data-availability-sampling-scales">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/how-data-availability-sampling-scales</a></td></tr></tbody></table>
{% endhint %}


# How data availability sampling scales

**Who this is for:** developers who want the mechanism behind Avail's throughput, not just that it exists. **You should already know:** [Where Lumia's transaction data lives](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/where-lumia-transaction-data-lives).

### The scaling problem this solves

A naive data-availability guarantee ("every node downloads and stores everything") doesn't scale: throughput is capped by the weakest node's bandwidth and storage. Avail's scaling approach is built to let data volume grow without every participant needing to handle the full load.

### Data availability sampling

The core mechanism is **data availability sampling (DAS)**. Data submitted to Avail is erasure-coded, split and redundantly encoded so that the original data can be reconstructed from any sufficiently large subset of the pieces, not all of them, and committed to using polynomial commitments (KZG commitments). A light client then samples a small number of random pieces of that encoded data rather than downloading it in full. If enough independent samples come back successfully, the client can be statistically confident the full data is available, without ever holding all of it itself. As more light clients sample, the guarantee gets stronger, not weaker. That's the opposite of a model that gets more centralized as it scales.

This decouples data-availability throughput from any single node's capacity: because verification is sampling-based rather than full-download-based, Avail can support growing data volume by adding more light clients and validators sampling in parallel, rather than requiring every node to scale its own bandwidth and storage in lockstep with total throughput.

### Why it matters on Lumia

For a validium (see [Validium](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/validium)), the data-availability layer's own scalability directly caps how much transaction volume the validium can support without that layer becoming the bottleneck. A sampling-based DA layer is what lets a validium's data-availability guarantee scale roughly independently of its execution throughput, rather than the DA layer becoming the limiting factor as usage grows. This describes how Avail's mechanism works in general.


# Validium

**Who this is for:** developers and issuers assessing the security/cost trade-off underneath Lumia. **You should already know:** [Data Availability](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability).

### Definition

A **validium** is a chain that proves its state transitions correct with a validity proof (the same cryptographic guarantee a rollup uses), but keeps the underlying transaction data **off** the base chain, holding it instead with a separate data-availability mechanism (a committee of signers, or a dedicated DA network). A **rollup**, by contrast, posts that data directly onto the base chain (as calldata or in a dedicated data blob), so anyone can reconstruct the L2's full state from the base chain alone.

### Trade-offs vs. a rollup

The trade is cost against a specific, narrow trust assumption. Posting full transaction data to Ethereum is the single largest cost driver for a rollup at scale: a validium avoids that cost by keeping data elsewhere. What it gives up is the rollup's strongest guarantee: with a rollup, correctness *and* data are both fully backed by the base chain, so even if every off-chain party disappeared, the data to reconstruct state would still be recoverable from the base chain itself. A validium instead depends on its data-availability layer actually holding up its end: if that layer failed to make data available, state could become unrecoverable even though the validity proof itself was never wrong. This is why a validium's data-availability design (see [Where Lumia's transaction data lives](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/where-lumia-transaction-data-lives)) is worth understanding on its own, not waved away as an implementation detail.


# Why the data availability choice matters

**Who this is for:** developers and issuers weighing whether Lumia's data-availability choice is sound, not just how it works mechanically. **You should already know:** [Where Lumia's transaction data lives](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/where-lumia-transaction-data-lives) and [How data-availability sampling scales](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/how-data-availability-sampling-scales).

A dedicated data-availability network is, in general, a reasonable choice compared to the two realistic alternatives for a validium: posting data directly on the base chain, or trusting a small fixed committee to attest availability.

### Cost, compared to posting data on the base chain

The whole reason a validium exists instead of a pure rollup is that posting full transaction data to a base chain like Ethereum is expensive at scale (see [Validium](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/validium)). A dedicated DA network is built specifically to make that data cheap to publish and verify, since it isn't also carrying the cost of general-purpose execution the way a base chain is. That's the core economic case for using one at all rather than falling back to full on-chain posting.

### Security, compared to a fixed signer committee

The other realistic alternative for a validium is a data-availability committee (DAC): a small, fixed set of parties who sign attestations that data is available. That model's security is only as strong as that committee: if enough members collude or go offline, the guarantee fails, and the committee's size is typically small enough that this isn't a purely theoretical concern. A sampling-based network like Avail would spread that guarantee across many independent light clients performing random sampling instead of a small fixed set of signers. That's a meaningfully different, and broader, trust base than a handful of committee members. See [Where Lumia's transaction data lives](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/where-lumia-transaction-data-lives) for which mechanism Lumia runs.


# Where Lumia transaction data lives

**Who this is for:** developers and issuers who want to know what actually holds Lumia's off-chain transaction data. **You should already know:** [Validium](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/validium).

### What holds Lumia's data

Avail is named as the network's data-availability provider for its validium mode: the layer that holds the transaction data behind Lumia's validity proofs, rather than posting that data directly to Ethereum.

### How that network works

Avail is a modular data-availability network: a blockchain purpose-built to do one thing, which is guarantee that data submitted to it is genuinely retrievable, without also executing any application logic itself. It uses data-availability sampling and polynomial commitments so that a light client can check, cheaply, that a large amount of data is available without downloading all of it. That's a different, cheaper trust model than "download everything yourself" or "trust a small fixed committee of signers."


# Volition enhanced validium

**Who this is for:** developers and issuers comparing DA models, including why Lumia's current model differs from this one. **You should already know:** [Validium](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability/validium).

### Definition

**Volition** (sometimes called enhanced validium) is a data-availability model that lets a transaction choose, individually, whether its data is published on the base chain (rollup-style) or kept off-chain with a separate availability guarantee (validium-style). Instead of a chain committing entirely to one model, each transaction (or each application on the chain) picks the trade-off that fits it: an application handling high value per transaction might choose the stronger, costlier rollup guarantee, while a high-throughput, lower-value application chooses the cheaper validium path.

```mermaid
flowchart TD
  TX["A single transaction"] --> CH{"Where is its data published?"}
  CH -->|"rollup path"| ON["On the base chain<br/>stronger guarantee, higher cost"]
  CH -->|"validium path"| OFF["Off-chain, with a separate<br/>availability guarantee<br/>cheaper, different trust assumption"]
  ON --> PR["The same validity proof either way"]
  OFF --> PR
  NOTE{{"Lumia runs as a validium today.<br/>This diagram describes the volition model,<br/>not Lumia's current configuration."}}
```

### Per-transaction choice model and trade-offs

The mechanism is the same underlying validity proof either way: what changes is only where the data supporting a given transaction is published. This gives an application-level lever that a pure rollup or pure validium doesn't offer: cost and trust assumptions become a per-transaction decision instead of a chain-wide one. The cost is added complexity: a chain (and the tooling around it) has to support and clearly signal both data paths, and a developer has to actually understand which mode a given transaction is using to reason correctly about its guarantees.


# Interoperability

**Who this is for:** developers building anything that needs to move a message or an asset between Lumia and another chain. **You should already know:** [Architecture](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture).

### Why an L2 needs interoperability at all

No chain is an island. An asset issued on Lumia, a price feed sourced elsewhere, or a user arriving with funds on Ethereum or another L2 all require some way to move value or information across a chain boundary that neither chain natively understands. "Interoperability" is the umbrella term for the protocols that make that crossing safe: proving that something happened on chain A in a way chain B can verify, without just trusting a third party's word for it.

There are two distinct interoperability surfaces relevant to Lumia. One is general-purpose cross-chain messaging: passing arbitrary messages or assets between Lumia and chains outside the Polygon CDK ecosystem, covered below. The other is the native settlement and bridging Lumia gets automatically from being a member of Polygon's shared AggLayer alongside other CDK chains, covered under [Lumia's chain framework and settlement](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement).

### Cross-chain messaging

For general-purpose messaging outside the AggLayer, Lumia documents an integration with **Hyperlane**, a permissionless interchain-messaging protocol.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Cross-chain messaging with Hyperlane</strong></td><td>How Lumia's Hyperlane integration is documented today.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/interoperability/cross-chain-messaging-with-hyperlane">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/interoperability/cross-chain-messaging-with-hyperlane</a></td></tr></tbody></table>


# Cross chain messaging with Hyperlane

**Who this is for:** developers who need to pass messages or assets between Lumia and a chain outside the Polygon CDK/AggLayer ecosystem. **You should already know:** [Interoperability](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/interoperability).

### How Lumia reaches other chains

Lumia's documented route to chains outside the Polygon CDK/AggLayer ecosystem is Hyperlane, a permissionless interchain-messaging protocol: any chain can connect to it without needing prior approval from a central operator, and it lets a contract on one chain send a message that a contract on another chain can verify and act on. It's a general-purpose messaging layer, not specific to any one chain family, which is why it's the tool documented for this role. What Lumia gets inside that ecosystem instead is covered under [Lumia's chain framework and settlement](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement).


# Polygon CDK and AggLayer

What this subsection covers: what the Lumia chain is built with, the Lumia chain framework and settlement, and how Lumia settles and bridges to Ethereum.


# The Lumia chain framework and settlement

**Who this is for:** developers and issuers who want to know which parts of Lumia's stack are Lumia-specific and which come from shared infrastructure. **You should already know:** [Architecture](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture).

**Lumia runs on proven zkEVM infrastructure rather than a bespoke, one-off implementation.** Its sequencer, prover, and bridge software come from the Polygon Chain Development Kit (CDK), a framework for assembling a zkEVM chain out of standard, interoperable components (see [What Lumia's chain is built with](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/what-the-lumia-chain-is-built-with)). Building on the CDK is also what lets **Lumia settle through AggLayer**, the shared settlement and bridging hub on Ethereum L1 (see [How Lumia settles and bridges to Ethereum](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum)).

{% hint style="info" %}
It should not be confused with the separate **Lumia Passport** product, which lives under Use Lumia and is unrelated.
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>What Lumia's chain is built with</strong></td><td>The sequencer, prover and settlement services Lumia's chain runs, and the Polygon CDK framework they come from.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/what-the-lumia-chain-is-built-with">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/what-the-lumia-chain-is-built-with</a></td></tr><tr><td><strong>How Lumia settles and bridges to Ethereum</strong></td><td>What Lumia gets from being a member of Polygon's shared AggLayer settlement hub.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum</a></td></tr></tbody></table>


# How Lumia settles and bridges to Ethereum

**Who this is for:** developers and issuers who want to know what cross-chain settlement and bridging Lumia gets from Polygon, beyond its own chain. **You should already know:** [What Lumia's chain is built with](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/what-the-lumia-chain-is-built-with).

### The shared settlement hub

Lumia settles and bridges to Ethereum as a member of AggLayer, a shared settlement-and-bridge hub on Ethereum that a number of Polygon CDK chains register with. Rather than each CDK chain deploying and maintaining its own bridge and settlement contracts in isolation, member chains share one canonical bridge contract and one aggregated exit-root structure on Ethereum.

```mermaid
flowchart TD
  L["Lumia"] -->|"deposits and withdrawals"| BR["Canonical bridge contract"]
  C2["Other AggLayer member chains"] --> BR
  L -->|"exit data"| EX["Aggregated exit root"]
  C2 --> EX
  subgraph ETH["Shared hub on Ethereum, governed by Polygon"]
    BR
    EX
  end
  EX -. "chain-to-chain transfer: a capability,<br/>not a description of current volume" .-> C2
```

### What membership gives Lumia

**A standardized bridge to Ethereum, rather than a bespoke one.** Lumia deposits and withdraws through the same shared, unified bridge contract that other AggLayer member chains use, rather than a one-off Lumia-specific bridge. Wallets, explorers, and bridge aggregators that already integrate with that shared bridge model need little to no custom work to support Lumia. The bridge also inherits the scrutiny of code shared across many chains rather than a single, unreviewed deployment.

**A path to native cross-chain transfers with other member chains.** Every member chain's exit data feeds into one aggregated structure on Ethereum, which is what lets an asset leave one member chain and be claimed on another without a separate third-party bridge or a wrapped-asset intermediary.

**Shared infrastructure cost.** The hub's core contracts are deployed once and shared; a member chain isn't paying to deploy or maintain that shared core, only its own periodic settlement transactions against it.

### The honest caveat

{% hint style="warning" %}
The AggLayer hub itself (the shared contracts Lumia registers into) is governed by Polygon, not by Lumia. Lumia controls its own chain's keys and configuration, but the shared hub's upgrade path is a standing dependency on Polygon regardless of how independent Lumia's own operations become.
{% endhint %}


# What the Lumia chain is built with

**Who this is for:** developers and operators who want to know exactly what software Lumia's chain runs. **You should already know:** [Lumia's chain framework and settlement](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/the-lumia-chain-framework-and-settlement).

### The chain framework

Lumia assembles its execution, proving, and bridging stack from standard, interoperable components rather than writing that infrastructure from scratch. The framework it uses to do that is the Polygon Chain Development Kit (CDK). Lumia sets its own configuration on top of it (data-availability mode, proof system, hardware) while reusing proven core software and the same path to Ethereum settlement that every other CDK chain uses. That standardization is also what makes AggLayer membership possible (see [How Lumia settles and bridges to Ethereum](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/polygon-cdk-and-agglayer/how-lumia-settles-and-bridges-to-ethereum)): CDK chains share enough of a common shape that they can plug into a shared settlement hub.


# Chain security

**Who this is for:** developers and node operators who want to know what "security" means on Lumia beyond "it's a blockchain": what enforces correct transaction ordering, what enforces correct execution, what backs claims made about off-chain assets, and what has been independently reviewed.

Chain security on Lumia spans four distinct concerns. They fail independently: a valid proof doesn't make an oracle feed honest, and an audit engagement doesn't retroactively cover architecture built after it ran.

```mermaid
flowchart TD
  CS["Chain security on Lumia"] --> S["Sequencer<br/>ordering correctness and liveness"]
  CS --> Z["zkProvers<br/>execution correctness"]
  CS --> O["Oracles and attestation<br/>how external truth reaches the chain"]
  CS --> A["Audits<br/>independent review, scope-limited"]
```

These four fail independently. A valid proof does not make an oracle feed honest, and an audit does not cover architecture built after it ran.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Sequencer</strong></td><td>Orders and batches transactions before they are proven and settled. Ordering correctness and liveness live here.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/sequencer">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/sequencer</a></td></tr><tr><td><strong>zkProvers</strong></td><td>Generates the proofs that make a sequencer's batches verifiable, so a state transition can't be accepted without a valid proof behind it.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/zkprovers">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/zkprovers</a></td></tr><tr><td><strong>Oracles &#x26; Attestation</strong></td><td>How external price data and off-chain claims (reserves, custody) get represented on-chain, and why those are two different trust problems with different failure modes.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/oracles-and-attestation">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/oracles-and-attestation</a></td></tr><tr><td><strong>Audits</strong></td><td>The independent security engagements around Lumia, and the scope each one covered.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits</a></td></tr></tbody></table>


# Sequencer

**Who this is for:** developers who want to understand what determines transaction order and finality timing on Lumia before they build something order-sensitive (an AMM, an auction, a liquidation flow).

### What the sequencer does

The sequencer is the component that receives submitted transactions, orders them, and groups them into batches. On a validity-proof L2 like Lumia, the sequencer's output is what everything downstream operates on: [zkProvers](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/zkprovers) prove the batches it produces, and the resulting proofs are what eventually get settled back to Ethereum L1.

At any given time, transaction ordering on Lumia comes from a single sequencer. A single sequencer means fast, predictable ordering under normal operation, but it also means ordering liveness depends on that one component staying up; this design is common to CDK-based L2s generally, not unique to Lumia.

### Batching

Transactions are grouped into batches rather than proven one at a time: batching is what makes proof generation economical, since a proof's cost doesn't scale linearly with how many transactions it covers.

### Relation to zkProvers

The sequencer only orders and batches: it does not itself prove anything. Batch correctness is established by [zkProvers](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/zkprovers), which generate the proofs that let a batch be accepted as valid. A batch existing is not the same as a batch being proven; see the zkProvers page for what "proven" means on Lumia specifically.

The role split above, from a submitted transaction to L1 settlement:

```mermaid
flowchart LR
    U[User transaction] -->|submitted| S[Sequencer]
    S -->|orders and groups into a batch| B[Batch]
    B -->|proof generated| P[zkProvers]
    P -->|proof settled| L1[Ethereum L1]
```


# Audits

An index of every confirmed security engagement around Lumia, what each one covered, and what remains unaudited.

**Who this is for:** issuers, developers, and operators evaluating Lumia's security posture who need to know what each engagement covered before relying on it.

What matters about an audit is its scope and whether it reached a final report, not how many were run. Findings are stated in the reports themselves, so read the report rather than a summary of it.

**Two firms, four engagements: Halborn and Hacken.** All four are **Solidity smart-contract reviews**. Three cover the token, staking, governance and migration contracts. The fourth is a code-difference report on a third-party DEX fork rather than a Lumia component. The chain protocol layer (the sequencer, zkProvers, data-availability layer, and bridge) is a separate scope that these engagements do not cover.

### Index of engagements

| Engagement                                                        | Stage                                                                                                                        | Platform / scope                                                                                            | Detail                                                                                                              |
| ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| Halborn: LUMIA token staking, governance and conversion contracts | Final report (Jul 22, 2024 update)                                                                                           | Solidity; `lumia` repo governance/staking/conversion contracts. Not the chain protocol layer.               | [Halborn Audit](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/halborn-audit) |
| Hacken #1: Governance/staking/migration contracts                 | Final report (29 Jan 2025)                                                                                                   | Solidity; Lumia, BSC, Ethereum per report; veORN→veLumia migration contracts. Not the chain protocol layer. | [Hacken Audit](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/hacken-audit)   |
| Hacken #2: LUMIA token (ERC20) contract                           | **Preliminary report only** (no Final Report entry exists for this engagement)                                               | Solidity; Ethereum; single ERC-20 contract. Not the chain protocol layer.                                   | [Hacken Audit](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/hacken-audit)   |
| Hacken #3: Morphex DEX code-difference report                     | Final report (14 Feb 2025), but the report's own opening line states it **"should not be considered a security assessment"** | Solidity; a PancakeSwapV3 fork ("Morphex"), a DEX contract, not a Lumia chain component                     | [Hacken Audit](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/hacken-audit)   |

Read the stage column before citing an engagement. A preliminary report is not a final report, and the Morphex code-difference report states in its own opening line that it should not be treated as a security assessment.

### Where to read the reports

The three Hacken reports are published on hacken.io and are linked from [Hacken audit](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/hacken-audit). The Halborn report is client-held and is not published; see [Halborn audit](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/halborn-audit) for its scope.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Halborn Audit</strong></td><td>Halborn's 2024 assessment of the LUMIA token's staking, governance, and conversion contracts, and exactly what it covered.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/halborn-audit">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/halborn-audit</a></td></tr><tr><td><strong>Hacken Audit</strong></td><td>Three Hacken smart-contract engagements tied to Lumia: scope, report stage, and links to each published report.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/hacken-audit">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits/hacken-audit</a></td></tr></tbody></table>


# Hacken audit

The three Hacken smart-contract engagements tied to Lumia, what each one covered, and where to read the reports.

**Who this is for:** issuers, developers, and operators looking for the specifics of Hacken's security work tied to Lumia, beyond the fact that engagements exist.

**Auditor:** Hacken. Three Hacken reports for Lumia are published on hacken.io and are linked below. All three are **Solidity smart-contract engagements**. None of them reviewed Lumia's chain protocol layer (sequencer, zkProvers, data-availability layer, bridge). See [Audits](broken://pages/186ab696cbb42e5adbdd0f904a8891c25afe8b0e) for why that distinction matters before citing any of this.

This page does not restate finding counts or describe individual findings. Each report states its own, and the reports are linked. Read them there rather than through a summary.

## The three engagements

### 1. Governance, staking and migration contracts

| Field                          | Value                                                                                                                                                                 |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Report stage                   | **Final Report.** Changelog: 22 Jan 2025 Preliminary Report, 29 Jan 2025 Final Report.                                                                                |
| Platform (as stated in report) | Lumia, BSC, Ethereum                                                                                                                                                  |
| Language                       | Solidity                                                                                                                                                              |
| Repository                     | `github.com/orionprotocol/lumia`, branch `audit/veOrn-veLumia-migration`                                                                                              |
| Commit                         | `c8129b00df29916efe2a8a4606acbe7d84603d2d`                                                                                                                            |
| Scope                          | `VeOrnPausable.sol`, `VeLumiaMigrated.sol`, `Migrator.sol`, `veORNStorage.sol`, `Staking.sol`, `PausableLib.sol` (the veORN → veLumia staking-migration contract set) |
| Report                         | [SCA Lumia Governance Jan2025](https://hacken.io/audits/lumia/sca-lumia-governance-jan2025/)                                                                          |

### 2. LUMIA token (ERC20) contract

| Field                          | Value                                                                                                                                                                                                                                 |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Report stage                   | **Preliminary Report only.** Changelog states a single entry: "15/10/2024 - Preliminary Report." No Final Report entry exists anywhere in this document. A preliminary report is not a final report and is not presented as one here. |
| Platform (as stated in report) | Ethereum                                                                                                                                                                                                                              |
| Language                       | Solidity                                                                                                                                                                                                                              |
| Repository                     | `github.com/orionprotocol/lumia/blob/audit/contracts/Lumia.sol`                                                                                                                                                                       |
| Commit                         | `e2ae999704434f4d337d0dbf9f031371b29ba1b3`                                                                                                                                                                                            |
| Scope                          | `contracts/Lumia.sol` (the LUMIA ERC-20 token contract only)                                                                                                                                                                          |
| Report                         | SCA Lumia ERC20 Oct2024                                                                                                                                                                                                               |

### 3. Morphex DEX code-difference report

The report's own opening paragraph states: *"This Report aims to be solely a code comparison from PancakeSwapV3 to Morphex. As such, it should not be considered a security assessment: it is not proof or guarantee that the scope of this document is secure or behaves as expected."* Because the document itself disclaims being a security assessment, this page does not count it as an audit or use it as a trust signal, regardless of how any index page classifies it.

| Field                          | Value                                                                                                                                                                               |
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Document type                  | Smart Contract Code Difference Evaluation Report (Hacken's own title); **not** a security assessment, per the report's own opening disclaimer above.                                |
| Report stage                   | Final Report, dated 14/02/2025.                                                                                                                                                     |
| Platform (as stated in report) | Lumia                                                                                                                                                                               |
| Repository                     | `github.com/morphex-exchange/MorphexV3_v1`                                                                                                                                          |
| Commit                         | `9deec19`                                                                                                                                                                           |
| Scope                          | A fork of PancakeSwapV3 (renamed "Morphex"), compared against the upstream PancakeSwapV3 codebase for naming/version differences (a DEX contract fork, not a Lumia chain component) |

## A note on the Orion name

The contracts audited in engagements 1 and 2 live in the orionprotocol GitHub organisation, and several assessed filenames carry the Orion name. That is the pre-rebrand organisation. The engagements are filed under Lumia on hacken.io.

## What this page does not say

This page does not state that any Hacken engagement "passed," found "no critical issues," or confirms the security of the Lumia chain itself. None of the three engagements reviewed the sequencer, zkProvers, data-availability layer, or bridge; see [Audits](broken://pages/186ab696cbb42e5adbdd0f904a8891c25afe8b0e). It does not present the Morphex diff report as a security assessment or as an audit, because the report explicitly says it is neither. It states no finding counts and describes no individual finding, in either direction. The reports are linked above and speak for themselves.


# Halborn audit

Halborn's 2024 assessment of the LUMIA token's staking, governance, and conversion contracts, and exactly what it did and did not cover.

**Who this is for:** issuers, developers, and operators who need to know exactly what Halborn did and did not review before citing this engagement as evidence of anything.

**Scope, stated plainly, first:** this audit covered a specific set of **governance, staking, and token-conversion smart contracts**, not the Lumia chain's protocol layer. Halborn did not review the sequencer, the zkProvers, the data-availability layer, or the bridge. See [Audits](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits).

This page does not restate finding counts or describe individual findings.

### Engagement

| Field               | Value                                                                                                  |
| ------------------- | ------------------------------------------------------------------------------------------------------ |
| Auditor             | Halborn                                                                                                |
| Report title        | "Lumia - Orion" Smart Contract Security Assessment                                                     |
| Engaged by          | Orion. Per the report, the Orion team held the client relationship for this contract set.              |
| Date of engagement  | March 28, 2024 to May 6, 2024                                                                          |
| Report last updated | July 22, 2024                                                                                          |
| Repository assessed | `lumia`                                                                                                |
| Assessed commit ID  | `1eced82`                                                                                              |
| Public report link  | Not published. The report is client-held rather than published to Halborn's public reports repository. |

### What was in scope

Per the report's Scope section, the assessed files were:

```
contracts/governance/base/StakingReward.sol
contracts/governance/base/Staking.sol
contracts/governance/base/StakingRewardProxy.sol
contracts/governance/base/TWBalance.sol
contracts/governance/OrionProxy.sol
contracts/governance/veORN.sol
contracts/governance/OrionFarmV2.sol
contracts/governance/interfaces/ITWBalance.sol
contracts/governance/interfaces/IStaking.sol
contracts/governance/interfaces/IERC20Minimal.sol
contracts/governance/interfaces/IStakingReward.sol
contracts/governance/interfaces/IOrionVoting.sol
contracts/governance/interfaces/IConverter.sol
contracts/governance/interfaces/IveORN.sol
contracts/governance/interfaces/IOrionFarmV2.sol
contracts/governance/OrionVoting.sol
contracts/governance/libraries/TransferHelper.sol
contracts/governance/libraries/Math.sol
contracts/Converter.sol
contracts/Lumia.sol
```

plus a named diff range (`orionprotocol/cfd/compare/53180bfb...fabd02a1`). Explicitly **out of scope**: third-party dependencies, economic attacks, and any new features or implementations added after the remediation commit IDs.

The report's own introduction frames what this contract set does: "The Lumia smart contracts add staking and governance features to the ORN token ecosystem. ORN can also be burned and converted to LUMIA 1:1." That is a token and governance layer, not the chain's execution or consensus layer, which is why this report cannot stand in for a chain-protocol audit.

This is the contract set that converted the former ORN token to LUMIA. The engagement predates the rebrand, which is why the report title, the client name, and several assessed filenames carry the Orion name.

### Scope of what this page establishes

The engagement is real and its scope is exactly the contract set listed above. What it does not establish is anything broader: not that Lumia's contracts in general are secure, not that the chain passed an audit, and not any outcome for the chain's protocol layer. Halborn did not review the sequencer, the zkProvers, the data-availability layer, or the bridge, so this report is silent on them (see [Audits](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/audits)).


# Oracles and attestation

**Who this is for:** developers and asset issuers who need on-chain data or claims to be trusted: whether that's a price feed for a DeFi integration or a claim that a tokenized asset is actually backed by what it says it's backed by.

These get grouped under Chain Security because both are ways external truth gets represented on-chain, and both can fail in ways that look identical from inside a smart contract (a number that turns out to be wrong) while having completely different causes and completely different fixes.

## Two different trust problems

* **Price oracles** answer "what is the current market price of X?": a continuously-updating, objectively-checkable number sourced from markets.
* **Attestation** answers "does this claim about an off-chain fact hold?": for example, "does a custodian actually hold the reserves backing this token?" This is not a market price; it's a claim about the real world that has to be verified by someone (an auditor, a custodian, an oracle network acting as an attester) and then represented on-chain.

Conflating the two is a real failure mode for RWA-style applications: a price feed being live and accurate says nothing about whether the underlying asset is solvent, and a solvency attestation being current says nothing about the asset's market price.&#x20;

```mermaid
graph TD
Q1["Market price?"] --> OR["Price oracle"]
Q2["Claim true?"] --> AT["Attestation"]
OR --> CON["A number on-chain"]
AT --> CON
CON --> F["Same failure:<br/>a wrong number"]
```

## Where the rest of this lives

This section covers the concepts only. For hands-on integration:

* Oracle provider integration guides (API3, Supra, commodity feeds, and others) are in [Build → Oracles](file:///build/oracles/Read-data-feeds-with-API3.md).
* The provider index, listing which oracle networks are available on Lumia, is at [`/ecosystem/oracles`](file:///ecosystem/Oracle-providers.md).
* Where attestation fits into an asset's life cycle as an issuer task is covered in [Tokenize → Attest](file:///tokenize/lifecycle/Stage-2-Attest.md).

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Attestation models</strong></td><td>The three common ways an off-chain claim about an asset gets verified and represented on-chain, and who typically performs each.</td><td><a href="broken://pages/b9d4943fa23cb968fdc4838541caf6297bc9e84e">Broken link</a></td></tr><tr><td><strong>Price feeds vs. reserve attestation</strong></td><td>Why a live price feed and a current reserve attestation answer different questions, and why one being current says nothing about the other.</td><td><a href="broken://pages/ec913a4cbcb881e42dbdf16065619ccb78ac85f8">Broken link</a></td></tr></tbody></table>


# Attestation models

**Who this is for:** issuers deciding how to back a claim about a tokenized asset on-chain, and developers evaluating what an existing attestation actually proves before relying on it.

Attestation is the general practice of getting an off-chain fact verified and represented on-chain so a smart contract (or a user) can act on it without re-verifying the fact themselves. Not every attestation model verifies the same thing or carries the same trust assumptions. Three patterns are common across the RWA and stablecoin space generally, and none of these are Lumia-specific inventions:

### Reserve attestation

A third party (typically an auditor or attestation firm) periodically confirms that a stated pool of reserves (cash, treasuries, another on-chain asset) actually exists and is at least equal to outstanding token supply. This is a point-in-time snapshot, not continuous monitoring: a reserve attestation dated last month says nothing about today unless it's refreshed on a predictable cadence. Reserve attestation is the model most commonly associated with fiat-backed stablecoins and similarly-structured RWA tokens.

### Price-feed attestation

A different kind of claim: not "does the backing exist" but "what is this asset currently worth." This is what a price oracle does. See [Price feeds vs. reserve attestation](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/oracles-and-attestation/price-feeds-vs-reserve-attestation) for the direct comparison. Price-feed attestation is continuous and market-derived rather than periodic and audit-derived.

### Custodial attestation

A custodian (a bank, a trust company, a qualified custodian for the relevant asset class) attests directly that it holds a specific asset on behalf of the issuer, often tied to serial numbers, account statements, or similar identifying detail rather than an aggregate reserve figure. This is common for attesting to a specific physical or securities asset rather than a fungible pool.

### Who performs attestation

In all three models, the attester is a party external to both the issuer and the chain (an auditor, a custodian, or an oracle network), because the entire point of attestation is that the issuer isn't the one vouching for its own claim.


# Price feeds vs reserve attestation

**Who this is for:** issuers and developers who need to be precise about what a given on-chain number actually proves, before a user or an integrating contract assumes it proves something else.

## The distinction

A **price feed** answers: *what is this asset worth right now, based on market activity?* It is continuous, sourced from trading venues or other market data, and updated frequently by an oracle network. See [Build → Oracles](file:///build/oracles/Read-data-feeds-with-API3.md) for the providers and integration steps.

A **reserve attestation** answers a completely different question: *does the backing this token claims to have actually exist?* It is periodic, sourced from an auditor or custodian rather than a market, and says nothing about the asset's current trading price. See [Attestation models](broken://pages/b9d4943fa23cb968fdc4838541caf6297bc9e84e) for how reserve attestation is typically performed.

## Why the difference matters

These can diverge from each other in ways that matter to anyone relying on either number:

* A price feed can be live and accurate while a reserve attestation is stale or the reserve itself is impaired: the market price of a token doesn't automatically detect an insolvent backing.
* A reserve attestation can be current and clean while there's no reliable price feed for the token at all, if it's thinly traded or not yet listed anywhere a price oracle sources from.

A contract or integration that only checks a price feed is not thereby checking solvency, and a contract that only checks a reserve attestation is not thereby getting a live market price. Neither substitutes for the other; an issuer relying on both should treat them as two independent signals, not one combined health check.

## Where this fits in the asset lifecycle

For issuers, reserve/backing attestation is part of the **Attest** stage of taking an asset through Lumia's tokenization lifecycle. See [Tokenize → Attest](file:///tokenize/lifecycle/Stage-2-Attest.md) for the task-level view of when and how attestation happens relative to issuance and distribution.


# zkProvers

**Who this is for:** developers who want to know what actually makes a Lumia transaction "final" and trust-minimized, rather than just "included in a block."

### What a prover does

A [sequencer](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/chain-security/sequencer) can order and batch transactions, but ordering alone doesn't establish that a batch's resulting state is correct: a malicious or buggy sequencer could produce an invalid batch. The prover is what closes that gap: it generates a cryptographic proof over a batch, and only a batch with a valid proof behind it can be accepted as settled. This is the standard model for a validity-proof (zk) rollup or validium generally, not something unique to Lumia's implementation of it.

```mermaid
flowchart LR
  SEQ["Sequencer<br/>produces a batch"] --> BATCH["Batch"]
  BATCH --> PROVER["Prover<br/>generates a proof"]
  PROVER --> VER["L1 verifier contract"]
  VER -->|"valid proof"| ACC["Accepted as settled"]
  VER -->|"no valid proof"| REJ["Not accepted"]
```

### Two proof models

There are at least two different things a proof can attest to, and they imply very different trust assumptions:

* **Execution proofs**: the proof attests that re-executing the batch produces the claimed state transition. This is the strongest guarantee: Ethereum L1 verifies the batch's actual execution.
* **Pessimistic proofs**: a lighter proof that attests to a narrower claim (for example, that a chain cannot withdraw more from a shared bridge than was deposited into it), without L1 re-verifying full execution.

### What this means for developers

Regardless of which specific proof model is active, the guarantee a valid proof gives you is narrower than "the entire history of the chain is correct" unless it's an execution proof. Under a pessimistic-proof model, the proof's scope may be limited to specific properties (like bridge solvency) rather than full-state correctness.


# Compliance

**Who this is for:** issuers and developers who need to understand how compliance fits into Lumia's architecture before deciding what to build. These are concept pages: for jurisdiction- or license-specific claims, none are made here; see the note below.

Lumia separates two layers:

* **A permissionless base layer.** The chain itself (sequencing, execution, the DA layer) applies no identity or permission gate. Anyone can transact, deploy a contract, or run a node, the same as any general-purpose EVM chain.
* **A permissioned application layer, chosen per app.** Compliance is enforced by the contract or application an issuer deploys, not by the protocol. An issuer picks the gate their asset needs; the chain does not impose one global regime on every contract.

See [Permissionless base, permissioned app layer](broken://pages/dd092175644a89b7d8a7857dac68f3b073fec647) for the full architectural explanation, and [Compliance model overview](broken://pages/210a2df6ee5b1813f7f44c7caa0b21b75de5e908) for how the four named checks (KYC, KYB, KYT, KYV) fit into that model.

{% hint style="info" %}
**What this section does not claim:** none of these pages state that Lumia is licensed, registered, or compliant with any specific regulator, jurisdiction, or asset class. That is a legal determination, not a documentation one. For the issuer-facing compliance summary, see [`/tokenize/legal/compliance-overview`](file:///tokenize/legal/Compliance-overview-for-issuers.md); for the institutional summary, see [`/institutions/compliance-posture`](file:///institutions/Compliance-posture.md). Both link back here rather than duplicating this content.
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Compliance model overview</strong></td><td>The KYC/KYB/KYT/KYV taxonomy explained together, and how each check fits Lumia's permissionless-base/permissioned-app architecture.</td><td><a href="broken://pages/210a2df6ee5b1813f7f44c7caa0b21b75de5e908">Broken link</a></td></tr><tr><td><strong>KYC (Know Your Customer)</strong></td><td>What KYC verifies and where it applies on Lumia (a concept page, not an implementation guide).</td><td><a href="broken://pages/3f0c1814aaf218aab7cae0c1ceaf99d9e47049cb">Broken link</a></td></tr><tr><td><strong>KYB (Know Your Business)</strong></td><td>What KYB verifies and when an issuer or institutional counterparty typically goes through it.</td><td><a href="broken://pages/1c404b728a0e4b865a04eb664c5ecb418bd2f6c8">Broken link</a></td></tr><tr><td><strong>KYT (Know Your Transaction)</strong></td><td>What KYT verifies (transaction-level risk screening) and where it fits an asset's servicing lifecycle.</td><td><a href="broken://pages/91b028eb877a57221a1a7e7a4d53b61d78c9eac6">Broken link</a></td></tr><tr><td><strong>KYV (Know Your Validator)</strong></td><td>What KYV verifies: the standing of infrastructure counterparties like validators and node operators.</td><td><a href="broken://pages/ed79b1986f67305518ca253741857cc99af948a1">Broken link</a></td></tr><tr><td><strong>Permissionless base, permissioned app layer</strong></td><td>The architectural pattern that lets open DeFi and gated RWA applications run on the same Lumia chain.</td><td><a href="broken://pages/dd092175644a89b7d8a7857dac68f3b073fec647">Broken link</a></td></tr></tbody></table>


# KYB Know Your Business

**Who this is for:** issuers onboarding an institutional counterparty, or evaluating what checks their own entity may be asked to complete. This is a concept page: no on-chain KYB integration guide is published yet.

### What it verifies

KYB confirms the identity, legal standing, and beneficial ownership of a business or institutional entity: the corporate equivalent of [KYC](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/kyc-know-your-customer) for individuals. It typically covers registration documents, ownership structure, and sanctions/watchlist screening of the entity and its principals.

### Where it applies

KYB is typically required during institutional issuer onboarding, verifying the entity that is issuing an asset, and for institutional investors participating in a distribution that carries an entity-level rather than individual-level eligibility check. Like KYC, it is enforced at the application layer per Lumia's [compliance model](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/compliance-model-overview), not by the base chain itself. **Lumia provides no KYB process and recommends no KYB vendor.** The onboarding process and the documentation required are set entirely by the issuer or counterparty, using whichever provider they choose. That follows directly from the compliance model: the chain is permissionless, and entity checks live in the application the issuer builds.


# Compliance model overview

**Who this is for:** issuers and developers who want the whole compliance vocabulary in one place before reading each check's own page. For the architecture behind these checks, see [Permissionless base, permissioned app layer](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/permissionless-base-permissioned-app-layer). For summarized versions aimed at other audiences, see [`/tokenize/legal/compliance-overview`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/tokenize/legal/compliance-overview-for-issuers) (issuer lens) and [`/institutions/compliance-posture`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/institutions/compliance-posture) (institutional lens). Both link back to this page rather than repeating the definitions below.

### Where compliance lives

Compliance on Lumia is enforced at the **application layer** (inside the contract or app an issuer deploys), not at the protocol layer. The base chain does not check identity before including a transaction in a block. This is a deliberate choice: it lets fully permissionless DeFi-style contracts and tightly gated RWA contracts run side by side on the same chain, each choosing its own rules. The mechanics of that split are covered in full at [Permissionless base, permissioned app layer](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/permissionless-base-permissioned-app-layer).

### The four checks

These four terms are a general RWA-industry vocabulary (used elsewhere in the space, not a Lumia-specific trademark) applied here to describe what an issuer's application layer can check for.

| Check                                                                                                                             | What it verifies                                                 | Typically applies to                                 |
| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------- |
| [KYC](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/kyc-know-your-customer): Know Your Customer       | Identity of an individual                                        | Retail/individual token holders                      |
| [KYB](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/kyb-know-your-business): Know Your Business       | Identity and standing of a corporate entity                      | Institutional investors, the issuer entity itself    |
| [KYT](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/kyt-know-your-transaction): Know Your Transaction | Transaction-level risk (sanctions, suspicious-pattern screening) | Individual transfers, checked at the app layer       |
| [KYV](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/kyv-know-your-validator): Know Your Validator     | Standing of infrastructure counterparties                        | Validators, node operators, ecosystem infrastructure |

Each has its own page with a fuller definition and where it applies.

The table above maps to a single routing question: what is actually being checked.

```mermaid
flowchart TD
    Q{What is being checked} -->|an individual's identity| KYC[KYC: retail or individual holders]
    Q -->|a corporate entity's identity and standing| KYB[KYB: institutional investors, issuer entity]
    Q -->|a specific transaction's risk| KYT[KYT: individual transfers, app-layer screening]
    Q -->|an infrastructure counterparty's standing| KYV[KYV: validators, node operators]
```

This does not show where in an issuer's contract each check is called, or the off-chain verification process behind it; see [Permissionless base, permissioned app layer](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/permissionless-base-permissioned-app-layer) for that.

### Scope

This is a technical and architectural model: where a check runs and what it verifies. **Lumia makes no jurisdictional, licensing, or regulatory claim.** Whether a given asset or application is compliant in a given jurisdiction is a legal question for the issuer and its counsel.


# KYC Know Your Customer

**Who this is for:** issuers and developers deciding whether and where to gate an application by individual identity. This is a concept page. For the integration steps, see [`/build/identity/on-chain-kyc-integration`](file:///build/identity/Integrate-on-chain-KYC-dev-guide.md) (developer lens) or [`/tokenize/kyc/on-chain-kyc-for-issuers`](file:///tokenize/kyc/On-chain-KYC-for-issuers.md) (issuer lens).

## What it verifies

KYC confirms the real-world identity of an individual: typically that a person is who they claim to be, and in some flows that they meet an eligibility bar (age, jurisdiction, accreditation status). It is a check on a person, distinct from [KYB](broken://pages/1c404b728a0e4b865a04eb664c5ecb418bd2f6c8), which checks a business entity.

## Where it applies on Lumia

Per Lumia's [compliance model](broken://pages/210a2df6ee5b1813f7f44c7caa0b21b75de5e908), KYC is enforced at the application layer, not the protocol layer. A contract (typically a token's `transfer()` function or a gated entry point) checks an on-chain attestation or credential produced by a KYC process, rather than the chain itself checking identity before including a transaction. Retail or individual token holders are the typical subject of a KYC check; institutional entities are usually checked under [KYB](broken://pages/1c404b728a0e4b865a04eb664c5ecb418bd2f6c8) instead.


# KYT Know Your Transaction

**Who this is for:** issuers and operators who need ongoing transaction-level monitoring after an asset is already issued and distributed, not just at onboarding.

## What it verifies

KYT screens individual transactions rather than the identity of the parties involved: for patterns consistent with sanctions evasion, money laundering, or other suspicious activity. Where [KYC](broken://pages/3f0c1814aaf218aab7cae0c1ceaf99d9e47049cb) and [KYB](broken://pages/1c404b728a0e4b865a04eb664c5ecb418bd2f6c8) are point-in-time checks on a person or entity, KYT is a recurring check applied to activity over time.

## Where it applies

KYT is most relevant during the ongoing life of an asset rather than at issuance: Lumia's RWA lifecycle names this the **Service** stage, at [`/tokenize/lifecycle/service`](file:///tokenize/lifecycle/Stage-4-Service.md), where transfers, distributions, and other servicing events continue after an asset is live. As with the other checks, KYT is enforced at the application layer, by monitoring logic the issuer or a screening provider builds, not by the base chain. Lumia integrates no transaction-monitoring provider and recommends none. Choosing a screening provider, and deciding what to screen for, is the issuer's call and the issuer's responsibility.


# KYV Know Your Validator

**Who this is for:** node and validator operators, and anyone evaluating the infrastructure counterparties an RWA application relies on.

## What it verifies

KYV checks the identity and standing of infrastructure-level counterparties (validators, node operators, custodians, and similar ecosystem participants) rather than end users or transactions. It answers "who is running this piece of infrastructure, and are they trustworthy," which matters for RWA applications that depend on those counterparties behaving correctly (a validator attesting, a custodian holding an underlying asset).

## Where it applies

KYV is a named compliance primitive in the same taxonomy as [KYC](broken://pages/3f0c1814aaf218aab7cae0c1ceaf99d9e47049cb), [KYB](broken://pages/1c404b728a0e4b865a04eb664c5ecb418bd2f6c8), and [KYT](broken://pages/91b028eb877a57221a1a7e7a4d53b61d78c9eac6), but it targets infrastructure operators rather than token holders. For readers running node infrastructure on Lumia, see [Run a Node](file:///run-a-node/Run-a-node.md) for the generic operator docs (RPC node, zkNode, DA light client). This page does not restate that setup content. There is no KYV process a Lumia node operator must complete. KYV appears here as part of the compliance taxonomy an issuer may need to reason about, not as a requirement Lumia imposes on operators. Running a node on Lumia carries no identity or vetting step.


# Permissionless base permissioned app layer

**Who this is for:** protocol-minded engineers and issuers deciding where to put a permission check in their own contract. For the four named checks that get built on top of this pattern, see [Compliance model overview](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/compliance-model-overview).

### The core split

Lumia's chain layer (sequencing, the zkEVM, state transitions, the data-availability layer) does not gate who can transact. Any address can send a transaction, deploy a contract, or hold a token, the same as on Ethereum or any general-purpose EVM chain. There is no protocol-level allowlist of wallets.

Compliance instead lives at the **application layer**, enforced by the contracts an issuer deploys. This is a deliberate architectural choice: it means Lumia can host fully permissionless, DeFi-style contracts and tightly gated RWA contracts side by side on the same base layer, each choosing its own rules, rather than the whole chain adopting one compliance regime for every application.

```mermaid
flowchart TD
    OFF[Off-chain issuer process: KYC/KYB/KYT decision] -->|reflected on-chain by| APP[Application layer, per-app choice: e.g. transfer requires isVerified]
    APP -->|built on top of| PROTO[Protocol layer, permissionless: zkEVM execution, sequencer, DA, bridge]
```

### Why the base layer doesn't enforce this itself

A chain that enforced identity checks at the protocol level would need to verify identity before including a transaction in a block: effectively an allowlisted sequencer. That trades away permissionless access and composability for every application on the chain, including ones that don't need compliance at all. Lumia's application-layer approach avoids that trade-off by leaving the choice to each contract instead.

### How an app opts in

The general pattern is a permission check inside the contract itself (typically a `transfer()` override or a modifier gating a sensitive function) that calls out to an identity or eligibility registry before allowing the action:

```solidity
// Illustrative pattern, not a copy-paste production contract.
// See ../../build/identity/on-chain-kyc-integration.md for the actual verifier integration steps.
modifier onlyVerified(address account) {
    require(kycRegistry.isVerified(account), "not verified");
    _;
}

function transfer(address to, uint256 amount)
    public
    onlyVerified(msg.sender)
    onlyVerified(to)
    returns (bool)
{
    // standard ERC-20 transfer logic
}
```

This is the same general pattern most permissioned-security-token standards use (compare to ERC-1400's transfer restrictions or ERC-3643's identity registry): the token contract checks an identity/eligibility registry at the moment of transfer, rather than the chain checking identity before the transaction is even included.

### What's enforced where

| Layer                            | Enforces                               | Example                                                               |
| -------------------------------- | -------------------------------------- | --------------------------------------------------------------------- |
| Protocol (base chain)            | Nothing identity-related; open access  | Anyone can submit a valid transaction                                 |
| Application (contract)           | Whatever the issuer builds             | `transfer()` requires a verified-credential check                     |
| Off-chain (issuer's own process) | The actual KYC/KYB/KYT decision-making | A compliance team or vendor approves an applicant, reflected on-chain |

{% hint style="info" %}
This page describes an architecture, not a legal status. It does not state that any application built this way is thereby compliant with a specific regulator or jurisdiction. That determination belongs to the issuer and their counsel.
{% endhint %}


# Lumia tokens

**Who this is for:** users, holders, and issuers who want to know what tokens exist in the Lumia ecosystem and what each one does, before going to a task guide.

Lumia's docs name one token.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>LUMIA</strong></td><td>The chain's native token. Used for gas on the Lumia network, with staking and governance utility described on its own page.</td><td><a href="broken://pages/e11460155fc956d7bc7a14cfa75f8fe5e4721f81">Broken link</a></td></tr></tbody></table>

The token has its own concept page rather than being described here, so this page stays a short index rather than a second copy of it. Task guides (swapping, migrating, claiming rewards) live under [Use Lumia](file:///use/Use-Lumia.md) and are linked from the token's own page, not repeated here.


# LUMIA

**Who this is for:** anyone holding, staking, or paying gas with LUMIA who wants to understand what the token does before acting on it. This is a concept page: for the step-by-step swap, migration, and rewards guides, see [Use Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/use-lumia) (linked at each section below).

LUMIA is the native token of the Lumia chain (see [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) for the confirmed chain ID): the asset the network runs on day to day, in the same role ETH plays on Ethereum.

### What LUMIA is used for

* **Gas.** Every transaction on Lumia (a transfer, a contract deployment, a contract call) is paid for in LUMIA, the same as ETH is the gas token on Ethereum mainnet.
* **Staking.** LUMIA is Lumia's staking asset. Specific mechanics (validator staking, delegation, lock-up periods, reward rates) are published where they are kept current, because a docs page is a poor place to keep a rate current.
* **Governance.** LUMIA is positioned as the network's governance token. Whether an on-chain governance process is live today, and what it covers, is not yet confirmed. See [Staking and governance](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/use-lumia/staking-and-governance).

### Related products

LUMIA is also referenced in Lumia Power and EcoDrops, a separate holder-facing rewards mechanism documented on its own page rather than folded into this one.


# Portal

Lumia Portal is a no-code platform for issuers to onboard, structure, and tokenize assets—from real estate and credit to collectibles and beyond. With built-in compliance, data rooms, and investor management tools, Lumia Portal connects traditional asset workflows to onchain liquidity.

For questions about Portal, reach Lumia support on Telegram at [`@lumia_helpdesk_bot`](https://t.me/lumia_helpdesk_bot) or by email at [`general@lumia.org`](mailto:general@lumia.org).


# Pulse

Pulse is Lumia's unified platform that brings every reward-related activity in the Lumia ecosystem into one place.

**Who this is for:** anyone in the Lumia ecosystem who earns or wants to earn rewards.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>HyperNodes</strong></td><td>Lumia's commercial node product.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/pulse/hypernodes">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/pulse/hypernodes</a></td></tr><tr><td><strong>Staking &#x26; Governance</strong></td><td>LUMIAp and Governance voting.</td><td><a href="/pulse/staking-and-governance">Staking and governance</a></td></tr><tr><td><strong>RWA Drops</strong></td><td>Coming soon</td><td></td></tr></tbody></table>

HyperNodes is kept explicitly separate from the generic, self-run node infrastructure documented in the Run a node section.


# HyperNodes

The HyperNodes rewards pool amounts to **73,439,930 LUMIA** scheduled for distribution over a **20-year period**.&#x20;

***

### HyperNodes Rewards Pool Emission Schedule <a href="#hypernodes-rewards-pool-emission-schedule" id="hypernodes-rewards-pool-emission-schedule"></a>

The rewards for nodes are halved every 360 days, continuing for a span of 20 years. Rewards are allocated to node holders who own a Node.

| Year      | Halving Day |   End Day | Daily Distribution |    LUMIA per Year |
| --------- | ----------: | --------: | -----------------: | ----------------: |
| 1         |           0 |       360 |        85,000.0000 |     30,600,000.00 |
| 2         |         360 |       720 |        42,500.0000 |     15,300,000.00 |
| 3         |         720 |     1,080 |        21,250.0000 |      7,650,000.00 |
| 4         |       1,080 |     1,440 |        10,625.0000 |      3,825,000.00 |
| 5         |       1,440 |     1,800 |         5,312.5000 |      1,912,500.00 |
| 6         |       1,800 |     2,160 |         2,656.2500 |        956,250.00 |
| 7         |       2,160 |     2,520 |         1,328.1250 |        478,125.00 |
| 8         |       2,520 |     2,880 |           664.0625 |        239,062.50 |
| 9         |       2,880 |     3,240 |           332.0313 |        119,531.25 |
| 10        |       3,240 |     3,600 |           166.0156 |         59,765.63 |
| 11        |       3,600 |     3,960 |            83.0078 |         29,882.81 |
| 12        |       3,960 |     4,320 |            41.5039 |         14,941.41 |
| 13        |       4,320 |     4,680 |            20.7520 |          7,470.70 |
| 14        |       4,680 |     5,040 |            10.3760 |          3,735.35 |
| 15        |       5,040 |     5,400 |             5.1880 |          1,867.68 |
| 16        |       5,400 |     5,760 |             2.5940 |            933.84 |
| 17        |       5,760 |     6,120 |             1.2970 |            466.92 |
| 18        |       6,120 |     6,480 |             0.6485 |            233.46 |
| 19        |       6,480 |     6,840 |             0.3242 |            116.73 |
| 20        |       6,840 |     7,200 |             0.1621 |             58.36 |
| **Total** |             | **7,200** |                    | **61,199,941.64** |

### Power Rewards Pool Emission Schedule <a href="#power-rewards-pool-emission-schedule" id="power-rewards-pool-emission-schedule"></a>

The rewards for nodes are halved every 360 days, continuing for a span of 20 years.\
The power pool is designed to distribute rewards based on the user's contributions in three categories: Referrals, Nodes Held, and Delegations. This ensures that users who contribute more significantly to the network receive a larger share of the rewards.

Indeed, the Power Rewards system is designed to encourage active contributions to the Lumia ecosystem. By holding more nodes, making referrals, and delegating resources, users can increase their "power" and therefore earn a larger share of the daily power pool. This pool constitutes one-sixth of the total HyperNodes Pool, which in turn represents 50% of the new token supply of Lumia.

| Year      | Halving Day |   End Day | Daily Distribution |    LUMIA per Year |
| --------- | ----------: | --------: | -----------------: | ----------------: |
| 1         |           0 |       360 |        17,000.0000 |      6,120,000.00 |
| 2         |         360 |       720 |         8,500.0000 |      3,060,000.00 |
| 3         |         720 |     1,080 |         4,250.0000 |      1,530,000.00 |
| 4         |       1,080 |     1,440 |         2,125.0000 |        765,000.00 |
| 5         |       1,440 |     1,800 |         1,062.5000 |        382,500.00 |
| 6         |       1,800 |     2,160 |           531.2500 |        191,250.00 |
| 7         |       2,160 |     2,520 |           265.6250 |         95,625.00 |
| 8         |       2,520 |     2,880 |           132.8125 |         47,812.50 |
| 9         |       2,880 |     3,240 |            66.4063 |         23,906.25 |
| 10        |       3,240 |     3,600 |            33.2031 |         11,953.13 |
| 11        |       3,600 |     3,960 |            16.6016 |          5,976.56 |
| 12        |       3,960 |     4,320 |             8.3008 |          2,988.28 |
| 13        |       4,320 |     4,680 |             4.1504 |          1,494.14 |
| 14        |       4,680 |     5,040 |             2.0752 |            747.07 |
| 15        |       5,040 |     5,400 |             1.0376 |            373.54 |
| 16        |       5,400 |     5,760 |             0.5188 |            186.77 |
| 17        |       5,760 |     6,120 |             0.2594 |             93.38 |
| 18        |       6,120 |     6,480 |             0.1297 |             46.69 |
| 19        |       6,480 |     6,840 |             0.0648 |             23.35 |
| 20        |       6,840 |     7,200 |             0.0324 |             11.67 |
| **Total** |             | **7,200** |                    | **12,239,988.33** |

## Questions about your specific holdings

This page does not state amounts, dates, or eligibility details. For anything specific to your account, use support:

* Telegram: @lumia\_helpdesk\_bot
* Technical support: `service@lumia.org`
* `General enquiries: general@lumia.org`


# Staking and governance

Lumia Power (LUMIAp) is the token that represents locked-up governance tokens and grants voting power within the Lumia Ecosystem. A more traditional term is vote-escrowed derivative.

By locking LUMIA for a fixed duration of time, users receive LUMIAp, which grants governance weight and access to exclusive incentives.

To dive deeper into the financial side, read [Lumia Power](https://medium.com/%40Lumia.org/what-is-lumiap-5300509bb054) on Medium.

### How it Works

* **Lock Mechanism**: You commit an amount of LUMIA to be locked, choosing a lock duration.&#x20;
* **LUMIAp Issuance**: In return, the system emits you LUMIAp, which grants governance participation and access to ecosystem incentives—but no ongoing LUMIA interest emissions like in traditional staking/restaking. The emitted amount depends on lock duration and amount - rewarding longer and larger commitments.
* **Utility**: LUMIAp grants governance rights and eligibility for ecosystem rewards, without accumulating users interest in LUMIA/LUMIAp like in a traditional staked/restaked system.

### How to Obtain Lumia Power?

1. **Acquire $LUMIA**\
   Purchase LUMIA tokens on exchanges such as Binance, Bybit, Bitget, Bitmart, or others.
2. **Lock Your LUMIA**\
   Lock your LUMIA from the [Lumia Power page](https://power.lumia.org/staking). The longer lock period you choose, the more LUMIAp you'll receive.&#x20;
3. **Receive LUMIAp**\
   Based on the locked amount and duration, you'll be allocated LUMIAp. Check your wallet to see it.

### In the meantime

Do not send LUMIA to a contract or a site claiming to offer staking or governance rewards on Lumia's behalf. None is confirmed as official. If you are unsure whether something claiming to be a Lumia staking or governance product is legitimate, check with support before interacting with it:

* Telegram: [@lumia\_helpdesk\_bot](https://t.me/lumia_helpdesk_bot)
* Technical support: `service@lumia.org`


# Reference

**Who this is for:** anyone who needs a value to copy (an RPC URL, a chain ID, a contract address, a method name) and wants the one place it's guaranteed to be current. This section is lookup-only: no task steps, no concept explanations, no marketing language. Every other page in this tree links to a table here instead of restating a value.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Networks &#x26; Endpoints</strong></td><td>Chain IDs, RPC/WSS, explorers, bridge, and DA layer for mainnet and Beam testnet</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints</a></td></tr><tr><td><strong>Contract Addresses</strong></td><td>AggLayer/settlement, account-abstraction, and RWA framework contract addresses</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses</a></td></tr><tr><td><strong>JSON-RPC API</strong></td><td>Supported JSON-RPC methods and Lumia-specific <code>zkevm_*</code> extensions</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/json-rpc-api">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/json-rpc-api</a></td></tr><tr><td><strong>KYC Verifier API</strong></td><td>On-chain KYC verifier REST endpoints</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/rest-apis">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/rest-apis</a></td></tr><tr><td><strong>SDKs</strong></td><td>What SDKs and reference implementations actually exist today</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/sdks">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/sdks</a></td></tr><tr><td><strong>EVM Opcode Support</strong></td><td>Modified/unsupported opcodes, precompile support</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/evm-opcode-support">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/evm-opcode-support</a></td></tr><tr><td><strong>Gas &#x26; Fees</strong></td><td>Fee calculation formula, fee token</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/gas-and-fees">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/gas-and-fees</a></td></tr><tr><td><strong>Block Explorers</strong></td><td>Mainnet and Beam testnet explorer URLs</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/block-explorers-reference">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/block-explorers-reference</a></td></tr><tr><td><strong>CLI &#x26; Tools</strong></td><td>Lumia-specific CLI, supported plugin versions</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/cli-and-tools">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/cli-and-tools</a></td></tr><tr><td><strong>Error Codes</strong></td><td>Error/response-code table</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/error-codes">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/error-codes</a></td></tr><tr><td><strong>Testnet Faucet</strong></td><td>Faucet URL, claim amount, cooldown</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/testnet-faucet">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/testnet-faucet</a></td></tr><tr><td><strong>Retired Testnet (1952959480)</strong></td><td>Deprecation notice for the old "Lumia Testnet"</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480</a></td></tr></tbody></table>


# EVM opcode support

**Who this is for:** developers writing or auditing contracts that touch opcode-level behavior. For the task-level explanation of why these differ, see [`/build/smart-contracts/evm-differences`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/smart-contracts/evm-differences-on-lumia), which transcludes this page.

### Modified opcodes

| Opcode         | Behavior on Lumia zkEVM                                            |
| -------------- | ------------------------------------------------------------------ |
| `SELFDESTRUCT` | "removed by SENDALL"                                               |
| `EXTCODEHASH`  | "returns hash contract bytecode from zkEVM state tree"             |
| `DIFFICULTY`   | "returns 0"                                                        |
| `BLOCKHASH`    | "returns all previous block hashes (not just the last 256 blocks)" |
| `NUMBER`       | "number of processable transactions"                               |

### Unsupported opcodes

Quoted: "Lumia zkEVM supports all opcodes but SHA256, BLAKE and PAIRINGS."

| Opcode     | Status      |
| ---------- | ----------- |
| `SHA256`   | Unsupported |
| `BLAKE`    | Unsupported |
| `PAIRINGS` | Unsupported |

### Precompile support

Quoted: "ecRecover and identity are presently supported. Others return a revert."

| Precompile  | Status    |
| ----------- | --------- |
| `ecRecover` | Supported |
| `identity`  | Supported |
| All others  | Revert    |

### Source / last verified

Quoted from `docs.lumia.org/build/faqs`.


# Gas and fees

**Who this is for:** developers estimating transaction cost. This is the canonical fee table: for the node-operator view of fee collection see [`/run-a-node/zknode/gas-fees`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/zknode/gas-fees-node-operator-view), which transcludes this page.

### Fee calculation

| Field    | Value                                                                                                                                                             |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Formula  | `L2{gas_fee} = L1{gas_fee} * Factor` (from docs.lumia.org)                                                                                                        |
| Behavior | docs.lumia.org states L2 gas prices "linearly follow" L1 prices, and that transaction cost can be reduced by timing transactions during lower L1 network activity |

### Source / last verified

checked at `docs.lumia.org/build/zknode/gas-fees`.


# REST APIs

**Who this is for:** developers integrating on-chain KYC verification. This is the endpoint table only: for the integration walkthrough see [`/build/identity/on-chain-kyc-integration`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/identity/integrate-on-chain-kyc-dev-guide), which transcludes this page.

### Endpoints

Quoted from docs.lumia.org:

| Method | Path                                                               | Purpose                                                              |
| ------ | ------------------------------------------------------------------ | -------------------------------------------------------------------- |
| `POST` | `https://verifier-backend.privado.id/sign-in`                      | Starts a verification session; returns a QR code for wallet scanning |
| `GET`  | `https://verifier-backend.privado.id/status?sessionID={sessionID}` | Polls the status of a verification session                           |

### Request shape: `POST /sign-in`

| Field                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chainID`                  | Network the verification is scoped to. docs.lumia.org's own example uses `"1952959480"`, the **retired** "Lumia Testnet" (see [`/reference/retired-testnet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480)), alongside `"994873017"` (mainnet). Use the confirmed values from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints): mainnet `994873017`, Beam testnet `2030232745`. Do not copy the `1952959480` example as-is. |
| `scope`                    | Array of query objects, each with `circuitId`, `id`, and `query`                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `query`                    | Includes `allowedIssuers`, `context`, `type`, `credentialSubject`                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `skipClaimRevocationCheck` | Boolean; `false` recommended                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

### Response shape

**`POST /sign-in` response:**

| Field       | Description                               |
| ----------- | ----------------------------------------- |
| `qrCode`    | QR code data for wallet scanning          |
| `sessionID` | Session identifier used to poll `/status` |

**`GET /status` response:**

| Field    | Description                                                 |
| -------- | ----------------------------------------------------------- |
| `status` | One of: `success`, `approved`, `failed`, or a pending state |


# KYC verifier API

**Who this is for:** developers integrating on-chain KYC verification. This is the endpoint table only: for the integration walkthrough see [`/build/identity/on-chain-kyc-integration`](file:///build/identity/Integrate-on-chain-KYC-dev-guide.md), which transcludes this page.

## Endpoints

Quoted from docs.lumia.org, fetched 2026-09-09:

| Method | Path                                                               | Purpose                                                              |
| ------ | ------------------------------------------------------------------ | -------------------------------------------------------------------- |
| `POST` | `https://verifier-backend.privado.id/sign-in`                      | Starts a verification session; returns a QR code for wallet scanning |
| `GET`  | `https://verifier-backend.privado.id/status?sessionID={sessionID}` | Polls the status of a verification session                           |

## Request shape: `POST /sign-in`

| Field                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chainID`                  | Network the verification is scoped to. docs.lumia.org's own example uses `"1952959480"`, the **retired** "Lumia Testnet" (see [`/reference/retired-testnet`](file:///5838283/Retired-testnet-1952959480.md)), alongside `"994873017"` (mainnet). Use the confirmed values from [`/reference/networks`](file:///5838283/Networks-and-endpoints.md): mainnet `994873017`, Beam testnet `2030232745`. Do not copy the `1952959480` example as-is. |
| `scope`                    | Array of query objects, each with `circuitId`, `id`, and `query`                                                                                                                                                                                                                                                                                                                                                                               |
| `query`                    | Includes `allowedIssuers`, `context`, `type`, `credentialSubject`                                                                                                                                                                                                                                                                                                                                                                              |
| `skipClaimRevocationCheck` | Boolean; `false` recommended                                                                                                                                                                                                                                                                                                                                                                                                                   |

## Response shape

**`POST /sign-in` response:**

| Field       | Description                               |
| ----------- | ----------------------------------------- |
| `qrCode`    | QR code data for wallet scanning          |
| `sessionID` | Session identifier used to poll `/status` |

**`GET /status` response:**

| Field    | Description                                                                                                      |
| -------- | ---------------------------------------------------------------------------------------------------------------- |
| `status` | One of: `success`, `approved`, `failed`, or a pending state (exact enumeration of pending states `[UNVERIFIED]`) |

## Error codes

`[UNVERIFIED]`: docs.lumia.org does not document explicit error codes or an error response structure for this API as of 2026-09-09. {{TODO: confirm with the identity/KYC integration owner: error code table, if one exists}}

## Source / last verified

WebFetch of `docs.lumia.org/build/on-chain-kyc`, 2026-09-09.


# JSON RPC API

**Who this is for:** developers calling Lumia RPC endpoints directly. This is the method table only: for setup and choosing an endpoint see [`/run-a-node/rpc-node/json-rpc-endpoints`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/rpc-node/json-rpc-endpoints), which transcludes this page.

### Standard Ethereum JSON-RPC

Lumia nodes run `cdk-erigon` and expose the standard Ethereum JSON-RPC namespaces. Both public endpoints run **cdk-erigon v2.65.0-RC2**.

Compatibility is therefore cdk-erigon's, not go-ethereum's, and the two differ at the edges. `eth_getProof` is **not** available on either endpoint, and neither is the long-deprecated `eth_getCompilers`.

`eth_feeHistory` and `eth_maxPriorityFeePerGas` are available on both.

Lumia's own public endpoints were probed directly. Both behave identically:

| Namespace  | On the public endpoints                                                       | Probe                                                                                                                                       |
| ---------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `trace_*`  | **Available**                                                                 | `trace_block` returned trace data on both chains                                                                                            |
| `txpool_*` | **Available**                                                                 | `txpool_status` returned `baseFee`, `pending`, `queued` on both                                                                             |
| `debug_*`  | **Partially available.** The tracing calls work; the raw-data getters do not. | `debug_traceCall` and `debug_traceBlockByNumber` returned results; `debug_getRawHeader` and `debug_getRawTransaction` returned error -32601 |
| `admin_*`  | **Not available**                                                             | `admin_nodeInfo` returned error -32601 on both                                                                                              |

If you are running your own node, this is the shape worth copying: tracing exposed, administration closed.

### Lumia-specific extensions (`zkevm_*`)

Quoted from docs.lumia.org:

| Method                                | Description                                                                                                                |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `zkevm_consolidatedBlockNumber`       | "Returns the latest block number that is connected to the latest batch verified."                                          |
| `zkevm_isBlockVirtualized`            | "Returns true if the provided block number is already connected to a batch that was already virtualized, otherwise false." |
| `zkevm_isBlockConsolidated`           | "Returns true if the provided block number is already connected to a batch that was already verified, otherwise false."    |
| `zkevm_batchNumber`                   | "Returns the latest batch number."                                                                                         |
| `zkevm_virtualBatchNumber`            | "Returns the latest virtual batch number."                                                                                 |
| `zkevm_verifiedBatchNumber`           | "Returns the latest verified batch number."                                                                                |
| `zkevm_batchNumberByBlockNumber`      | "Returns the batch number of the batch connected to the block."                                                            |
| `zkevm_getBatchByNumber`              | "Gets a batch for a given number"                                                                                          |
| `zkevm_getFullBlockByNumber`          | "Gets a block with extra information for a given number"                                                                   |
| `zkevm_getFullBlockByHash`            | "Gets a block with extra information for a given hash"                                                                     |
| `zkevm_getNativeBlockHashesInRange`   | "Returns the list of native block hashes."                                                                                 |
| `zkevm_getTransactionByL2Hash`        | "Returns the information about a transaction requested by transaction l2 hash."                                            |
| `zkevm_getTransactionReceiptByL2Hash` | "Returns the receipt information of a transaction by its l2 hash."                                                         |
| `zkevm_getExitRootsByGER`             | "Gets the exit roots accordingly to the provided Global Exit Root"                                                         |
| `zkevm_getLatestGlobalExitRoot`       | "Returns the latest global exit root used in a batch."                                                                     |
| `zkevm_estimateCounters`              | "Estimates the transaction ZK Counters"                                                                                    |
| `zkevm_estimateFee`                   | "Estimates the transaction Fee following the effective gas price rules"                                                    |
| `zkevm_estimateGasPrice`              | "Estimates the transaction Gas Price following the effective gas price rules"                                              |

### Deprecated / unsupported

docs.lumia.org itself lists none of the above as deprecated.

### Source / last verified

Standard/`zkevm_*` method text: checked at `docs.lumia.org/build/run-an-rpc/json-rpc-endpoints`.


# Block explorers reference

**Who this is for:** anyone verifying a transaction or reading contract state.

| Network                                | Explorer URL                                                                | Engine                                                                                                                  |
| -------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Mainnet                                | `https://explorer.lumia.org/`                                               | Blockscout (Lumia's documentation states both explorers are powered by Blockscout)                                      |
| Beam testnet                           | `https://beam-explorer.lumia.org/`                                          | Blockscout (same source)                                                                                                |
| Retired "Lumia Testnet" (`1952959480`) | `https://testnet-explorer.lumia.org` is **dead**: the host does not respond | See [`/reference/retired-testnet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480) |

### Source / last verified

Both live explorers were checked directly and returned a Blockscout `/api/v2/stats` response (see [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints)). The retired explorer host does not respond.


# CLI and tools

**Who this is for:** developers looking for a Lumia-specific CLI or a supported plugin version before deploying.

| Item                       | Status                                                                                                                                                                              |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Foundry (`forge` / `cast`) | Not a Lumia-specific tool: standard Foundry, used the same way as on any EVM chain.                                                                                                 |
| Underlying CDK repos       | Not a CLI, but the closest existing "tooling index": see [`/build/cdk-repos`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/cdk-repositories), which owns that list |


# Contract addresses

**Who this is for:** developers and issuers who need a contract address to integrate against, verify on an explorer, or audit.

Every address here is a confirmed value. Addresses are never guessed at or carried over from another chain's deployment.

### Settlement

Lumia Prism (mainnet, chain ID `994873017`, see [Networks and endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints)) settles through Polygon's shared AggLayer as **rollupID `7`**.

The AggLayer contracts on Ethereum mainnet are Polygon's, not Lumia's. Read them from Polygon's own documentation rather than from a copy here, so you are always working from the canonical source.

The identity of the operator running Prism's trusted sequencer and aggregator infrastructure, and any associated key-custody detail, is not published here.

### Account abstraction

No account-abstraction contract addresses are published for Lumia yet. See [Account abstraction and intents](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/account-abstraction-and-intents) for the concept-level explanation.

### RWA framework

No deployed RWA or tokenization framework contract is published yet.

### Verifying an address yourself

Any address you are given can be checked directly on the explorer for the network it claims to be on:

* Mainnet: [`https://explorer.lumia.org`](https://explorer.lumia.org)
* Beam testnet: [`https://beam-explorer.lumia.org`](https://beam-explorer.lumia.org)


# Error codes

**Who this is for:** developers debugging a failed call.

| Source                             | Codes documented                                                                                                                                                                                                     |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Standard JSON-RPC (`eth_*`) errors | Standard Ethereum JSON-RPC error codes likely apply, but this is an assumption, not a confirmed Lumia value. See [`/reference/json-rpc-api`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/json-rpc-api). |
| KYC Verifier API                   | No explicit error codes; only a `status` enum (`success`, `approved`, `failed`, pending states). See [`/reference/rest-apis/kyc-verifier-api`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/rest-apis).  |


# Networks and endpoints

**Who this is for:** anyone who needs to copy a network value into a wallet, config file, or script, and anyone who needs to know what permission mode that environment runs under before they connect. This page is the single source of truth: every other page should link here rather than restate a value.

### A note on names

Lumia's live production network is called **Lumia Prism**. Where you see "mainnet" here it means Prism; the two names refer to the same network, chain ID `994873017`. The testnet is called **Beam**.

### A note on two different "Lumia Testnet" names

docs.lumia.org's `/build/identity/on-chain-kyc-integration` page states chain ID `1952959480` and labels it, verbatim, **"Lumia Testnet."** It does not call this network "Beam". That network is retired: its RPC (`https://testnet-rpc.lumia.org`) and explorer (`https://testnet-explorer.lumia.org`) both refuse the connection live. Full deprecation notice and migration steps: [`/reference/retired-testnet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480).

The live, current testnet is **Beam**, chain ID `2030232745`. chainid.network's registry lists three separate Lumia entries: mainnet (`994873017`), the retired "Lumia Testnet" (`1952959480`, dead RPC/explorer as above), and Beam (`2030232745`, live `beam-rpc.lumia.org` / `beam-explorer.lumia.org`). This three-way listing resolves which chain ID belongs to which network. All Beam values below are for the network this doc site actually points builders at (faucet, MetaMask guides, bridge). Pick your environment below.

{% tabs %}
{% tab title="Lumia Prism (mainnet)" %}
**Chain ID**

```
994873017
```

**RPC (HTTPS)**

```
https://mainnet-rpc.lumia.org
```

**RPC (WSS)**

```
wss://mainnet-rpc.lumia.org/ws
```

**Explorer**

```
https://explorer.lumia.org
```

**Native currency symbol**

```
LUMIA
```

**Native currency decimals**

```
18
```

**Bridge**

```
https://bridge.lumia.org
```

(native zkEVM bridge)

```
https://hyper.lumia.org
```

(Hyperlane instant bridge)

**DA layer**

Avail DA, per docs.lumia.org's Data Availability section (validium model).

**Permission model**

Lumia's chain layer is permissionless: any address can transact. Compliance checks, where an application chooses to enforce them, live at the application layer, not the network layer. This does not vary by environment. See [Permissionless base, permissioned app layer](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/permissionless-base-permissioned-app-layer).
{% endtab %}

{% tab title="Lumia Beam testnet" %}
**Chain ID**

```
2030232745
```

**RPC (HTTPS)**

```
https://beam-rpc.lumia.org
```

**RPC (WSS)**

```
wss://beam-rpc.lumia.org/ws
```

**Explorer**

```
https://beam-explorer.lumia.org
```

**Faucet**

```
https://beam-faucet.lumia.org/
```

**Native currency symbol**

```
LUMIA
```

**Native currency decimals**

```
18
```

**Bridge**

Same bridge endpoints as mainnet route testnet traffic per docs.lumia.org framing.

**Permission model**

Lumia's chain layer is permissionless: any address can transact. Compliance checks, where an application chooses to enforce them, live at the application layer, not the network layer. This does not vary by environment. See [Permissionless base, permissioned app layer](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/compliance/permissionless-base-permissioned-app-layer).
{% endtab %}

{% tab title="Retired testnet (do not use)" %}
{% hint style="danger" %}
Chain ID `1952959480` is a **retired network**. Its RPC and explorer are dead. **It is not Beam.** Do not use `1952959480` for anything, and do not treat it as an alternate name for Beam.
{% endhint %}

Referenced by docs.lumia.org's `/build/identity/on-chain-kyc-integration` page under this exact name. Do not use it. It is dead infrastructure, not an alternate name for Beam.

**Chain ID**

```
1952959480
```

Labeled "Lumia Testnet" verbatim on `docs.lumia.org/build/on-chain-kyc`

**RPC (HTTPS)**

```
https://testnet-rpc.lumia.org
```

Is **dead**, connection refused live

**Explorer**

```
https://testnet-explorer.lumia.org
```

Is **dead**, connection refused live

**Status**

Deprecated/retired.

Full deprecation notice and migration steps: [`/reference/retired-testnet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480).
{% endtab %}
{% endtabs %}

Need a value that isn't here? It hasn't been verified yet. Do not guess it from an old tutorial. Otherwise, put these values to use in the [Quickstart: your first contract on Lumia](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/quickstart-your-first-contract-on-lumia).


# Retired testnet 1952959480

**Who this is for:** developers or operators who find chain ID `1952959480` in an old tutorial, config file, or the current `/build/identity/on-chain-kyc-integration` page, and need to know it is not the live testnet.

{% hint style="danger" %}
Chain ID `1952959480` is a **retired network**. Its RPC (`https://testnet-rpc.lumia.org`) and its explorer (`https://testnet-explorer.lumia.org`) are both dead, connection-refused. **It is not Beam.** Beam (chain ID `2030232745`) is the live Lumia testnet. Do not use `1952959480` for anything, and do not treat it as an alternate name for Beam.
{% endhint %}

### The plain statement

`1952959480` is **not** Lumia Beam. It is a separate, older network that docs.lumia.org's own `/build/identity/on-chain-kyc-integration` page still labels, verbatim, **"Lumia Testnet."** That name collides with today's Beam testnet, and that collision is the source of most of the confusion around it. Older docs and tutorials that call `1952959480` "the testnet" or imply it is Beam are wrong; never relabel it as Beam.

| Field       | Value                                                                                   |
| ----------- | --------------------------------------------------------------------------------------- |
| Chain ID    | `1952959480`                                                                            |
| Labeled as  | "Lumia Testnet" verbatim on `docs.lumia.org/build/on-chain-kyc`                         |
| RPC (HTTPS) | `https://testnet-rpc.lumia.org` is **dead**: no HTTP response, connection failure.      |
| Explorer    | `https://testnet-explorer.lumia.org` is **dead**: no HTTP response, connection failure. |

### What to use instead

Use **Beam**, the live Lumia testnet:

| Field    | Value                              |
| -------- | ---------------------------------- |
| Chain ID | `2030232745` (hex `0x7902e4a9`)    |
| RPC      | `https://beam-rpc.lumia.org`       |
| Explorer | `https://beam-explorer.lumia.org/` |
| Faucet   | `https://beam-faucet.lumia.org/`   |

Full table with citations: [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints). Faucet detail: [`/reference/faucet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/testnet-faucet).

### Where this ID still shows up

* `docs.lumia.org/build/identity/on-chain-kyc-integration` uses `1952959480` in its KYC verifier request example. The corrected version of that guide lives at [`/build/identity/on-chain-kyc-integration`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/identity/integrate-on-chain-kyc-dev-guide) in this tree and should use `994873017` (mainnet) or `2030232745` (Beam) instead. See [`/reference/rest-apis/kyc-verifier-api`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/rest-apis).


# SDKs

**Who this is for:** developers looking for an installable package. Lumia does not currently publish a general-purpose "Lumia SDK." What exists is a set of reference smart-contract implementations and the underlying Polygon CDK repos Lumia is built on: listed below, nothing implied beyond it.

### What exists today

| Item                         | Status                                                                            | Notes                                                                                                                                                                                                                             |
| ---------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Tokenization SDK             | Does not exist.                                                                   | Named in Lumia's public materials as a future item, not a shipped product.                                                                                                                                                        |
| LumiaPaymaster               | Foundry-based reference implementation, not a published npm/package SDK.          | ERC-4337 paymaster reference contract; deployed per-integrator via a Foundry script, no single canonical instance. See [Contract Addresses](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/contract-addresses).         |
| LumiaAccountFactory          | Same as above: reference contract, deploy-via-script model, not a package.        | Account-abstraction smart-account factory.                                                                                                                                                                                        |
| Particle Connect integration | Third-party wallet/AA SDK integration guide exists                                | See [`/build/account-abstraction/particle-connect`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/account-abstraction/connect-wallets-with-particle-connect): that page owns the integration steps, not this one. |
| Underlying Polygon CDK repos | Exist and are public, but are Polygon/CDK infrastructure repos, not a "Lumia SDK" | Full list and links: [`/build/cdk-repos`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/build-on-lumia/cdk-repositories), which owns that content, not duplicated here.                                                          |

No dedicated Lumia client library (JS/TS/Python/Go) is published on docs.lumia.org. If one exists, it belongs on this page.


# Testnet faucet

**Who this is for:** developers who need Beam testnet tokens (chain ID `2030232745`; see [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints)) to pay for gas on testnet transactions.

| Field        | Value                                                                                                                                                                                               |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Targets      | Beam testnet, chain ID `2030232745`, not the retired `1952959480` network (see [`/reference/retired-testnet`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/retired-testnet-1952959480)) |
| Faucet URL   | `https://beam-faucet.lumia.org/`, verified live                                                                                                                                                     |
| Claim amount | "1 LUMIA Testnet token" (quoted from docs.lumia.org)                                                                                                                                                |
| Cooldown     | "limited to feeding 1 LUMIA token per 3 hours" (quoted from docs.lumia.org)                                                                                                                         |

### Source / last verified

Faucet URL verified live. Claim amount and cooldown quoted from `docs.lumia.org/build/build-environment/testnet-tokens`.


# Run a node

**Who this is for:** operators who want to run their own Lumia infrastructure (a full RPC node, a validium node, or a DA light client) instead of relying on a public endpoint. By the end of this section you'll know which node type fits your use case, what hardware it needs, and where to go for setup and troubleshooting.

**Read this first.** This is the distinction that matters most on this page:

**Run a Node** (this section) is generic, self-run operator documentation. Nothing here has a price, a subscription, or a holder programme attached: you run the software on your own infrastructure and Lumia does not manage it for you. **Pulse > HyperNodes** is a different thing entirely: Lumia's *commercial* node product. If you're looking for that, go to [`/pulse/hypernodes`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/pulse/hypernodes).

### Lumia's node model, briefly

Lumia Prism runs on a Polygon CDK validium stack. There is no validator set and no consensus vote: one sequencer produces blocks, and correctness is enforced cryptographically: ZK proofs, not social agreement. Every node type documented in this section is a **read replica or verifier**, not a block producer. That means you can run any number of them without coordinating with anyone, but none of them make you part of block production. Components that do produce blocks or settle proofs (the sequencer, the aggregator) require privileged, key-gated access that Lumia does not currently offer to self-run operators.

### Node types

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>RPC node</strong></td><td>A full execution node that syncs Lumia state and serves standard JSON-RPC reads and transaction submission. What most operators want: a dapp backend, an indexer, or your own low-latency endpoint instead of a public one.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/rpc-node/rpc-node-overview">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/rpc-node/rpc-node-overview</a></td></tr><tr><td><strong>Validium node</strong></td><td>The validity-proving side of Lumia's architecture, and its relationship to the sequencer and to zkProvers. Read this before assuming it's a lighter version of the RPC node. It isn't.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/zknode/zknode-overview">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/zknode/zknode-overview</a></td></tr><tr><td><strong>DA light client</strong></td><td>Verifies that batch data was actually made available without running a full node.</td><td><a href="https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/da-light-client/da-light-client-overview">https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/da-light-client/da-light-client-overview</a></td></tr></tbody></table>

{% hint style="warning" %}
Before deploying any of these, check [hardware requirements](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/hardware-requirements): minimums differ a lot between node types, and one of them needs considerably more than a typical VPS.
{% endhint %}

### A note on ports vs. public endpoints

Running your own node exposes JSON-RPC on your own host: local ports you control and choose whether to publish. That is not the same thing as Lumia operating a public RPC/WSS endpoint for the network at large; the official public endpoint set lives in [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints), and Lumia's public WSS endpoint is not yet confirmed there. Don't treat "my node has a WSS port open" as equivalent to "Lumia publishes a WSS endpoint." They're independent facts.


# Hardware requirements

**Who this is for:** operators sizing a host before deploying a Lumia RPC node.

**Every figure below is a working estimate, not a published spec. Confirm before you provision anything at scale.**

### RPC node

| Resource | Minimum                                         | Recommended                               | Notes                                                                                                                                |
| -------- | ----------------------------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| CPU      | 4 cores, x86\_64                                | 8+ cores                                  | Single-thread performance matters more than core count for sync speed                                                                |
| RAM      | 32 GiB                                          | 64 GiB                                    | Stated as a hard minimum for the execution client, not a soft recommendation                                                         |
| Disk     | 1 TB NVMe SSD                                   | 2×1 TB NVMe                               | Local NVMe only: no network-attached or spinning storage; current chain state is far smaller than 1 TB, but the figure covers growth |
| Network  | 1 Gbps, public IPv4 if serving external clients | 1 Gbps+, meaningful monthly egress budget | Egress scales directly with RPC traffic served                                                                                       |

This is the node type most operators actually want. See [RPC node overview](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/rpc-node/rpc-node-overview).

### Before you provision

* Confirm free disk headroom before starting a snapshot bootstrap: running out of space mid-extract is a common cause of a corrupted data directory. See [Node troubleshooting](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/node-troubleshooting).


# Network parameters

**Who this is for:** operators who need block time, finality, or endpoint values while running a node. Chain ID, RPC, and endpoint values live in [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).

**You should already know:** which network you're running against, mainnet or Beam testnet. Confirm from [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints) before configuring anything; do not copy a chain ID or RPC URL from an old tutorial.

### What to look up, and where

* **Chain ID, RPC, explorer, faucet:** [`/reference/networks`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints).
* **Gas and fee parameters:** [`/reference/gas-and-fees`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/gas-and-fees).

### A note on finality, for this architecture specifically

Lumia Prism's state validity is enforced by ZK proofs, not by an optimistic challenge window. There is no dispute-period concept to configure or wait out the way there would be on an optimistic rollup. What node operators actually see is the cadence at which the network's proof-settlement process finalizes L2 to L1 withdrawals on L1. That cadence is not published as a committed SLA; do not build automation that assumes a specific settlement window without confirming it independently.

Block time is **3.02 seconds on mainnet** and **about 10 seconds on Beam testnet**.

These are observed cadences, not a protocol guarantee. Measure again before building automation that depends on a tighter figure.


# Node troubleshooting

**Who this is for:** operators whose Lumia node isn't syncing, isn't reachable, or is behaving unexpectedly after deployment. By the end you should be able to match your symptom to a cause and a fix, or know where to escalate if you can't.

**You should already know:** the deployment steps in [Run a local validium node](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/zknode/run-a-local-validium-node).

**Treat exact paths, ports, and version numbers below as illustrative, and confirm against your own deployment's actual configuration.**

### Sync issues

<details>

<summary>Data-directory corruption errors during or after a snapshot extract</summary>

Cause: ran out of disk mid-extract.

{% hint style="warning" %}
Deleting the data directory discards everything the node has already synced, and there is no undo. Check the path you are about to remove, and confirm that any keys or config stored under it are backed up first.
{% endhint %}

Fix: free space, delete the data directory, and re-extract from a fresh download. Don't try to resume a corrupted extract.

</details>

<details>

<summary>Sync stalls with repeated L1 errors in the logs</summary>

Cause: your L1 RPC endpoint is rate-limited (common with free-tier providers). Fix: switch to a paid/premium L1 provider; if the plan is still tight during initial catch-up, consider raising your client's L1 query delay / lowering its L1 block-range setting.

</details>

<details>

<summary>A burst of L1 429 (rate-limit) errors specifically during initial catch-up, dropping off afterward</summary>

Cause: expected. The execution client scans L1 in parallel during catch-up and retries throttled calls, which itself counts against the quota. Fix: not a fault by itself; confirm sync still completes. If the volume is a problem for your provider relationship, see the L1 RPC fix above.

</details>

<details>

<summary>Local block number appears frozen even though the node is clearly still working (CPU/disk active, logs advancing)</summary>

Cause: some execution clients only advance the reported head once specific internal sync stages complete. The number can lag behind real progress. Fix: check the logs for stage-progress messages rather than trusting `eth_blockNumber` alone during catch-up.

</details>

<details>

<summary>Node was offline for an extended period and is now very far behind</summary>

Cause: a long offline gap can trigger an expensive internal state rebuild on resume. Fix: let it run, or re-bootstrap from a current snapshot instead of waiting out a rebuild from an old state.

</details>

<details>

<summary>Wrong chain ID returned by <code>eth_chainId</code></summary>

Cause: wrong network configuration, or a stale environment file left over from a previous setup.

{% hint style="warning" %}
Wiping the data directory destroys the node's synced state permanently. Confirm the configuration is genuinely wrong for the network you intend to run before you do it, so you don't throw away a good sync over a typo, and back up anything stored under that directory.
{% endhint %}

Fix: re-check your network configuration against [/reference/networks](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/reference/networks-and-endpoints), wipe the data directory, and redeploy clean.

</details>

### Connectivity issues

<details>

<summary>RPC/WS ports reachable from the public internet even though your host firewall denies inbound</summary>

Cause: container runtimes commonly insert their own network rules ahead of a host firewall like UFW, so a container port publish bypasses it. Fix: bind published ports to localhost explicitly and put a reverse proxy in front for anything you actually intend to expose. See [JSON-RPC endpoints](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/run-a-node/rpc-node/json-rpc-endpoints).

</details>

<details>

<summary>WebSocket connections reset immediately</summary>

Cause: the client's WS listener can default to binding only the container/process loopback address, which a port mapping can't reach. Fix: explicitly bind the WS listener to a reachable interface in your node's config.

</details>

<details>

<summary>Metrics endpoint returns 404 at the path you expected</summary>

Cause: some execution clients serve Prometheus metrics on a non-default path rather than the conventional `/metrics`. Fix: check your specific client's documented metrics path rather than assuming the generic default.

</details>

### Where to get help

If none of the above matches your symptom, don't guess at a fix that touches your data directory or keys. Reach out via [`/support/contact`](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/support-and-community/contact-and-support-channels).


# DA light client

What this subsection covers: a DA light client overview, and DA light client setup.


# DA light client overview

**Who this is for:** operators considering running a lighter-weight verifier than a full RPC node. By the end you'll know what a DA light client checks.

**You should already know:** [Data Availability](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability): the concept page for Lumia's DA design.

### What a DA light client verifies

A data-availability light client checks that the data behind a batch was actually published and retrievable, without downloading and re-executing the full chain history the way an RPC node does. It's a much lighter footprint than a full node, at the cost of not being able to serve general JSON-RPC reads itself.

### DA layer and setup

Lumia's published architecture describes Avail as the chain's DA layer. See [Data Availability](https://app.gitbook.com/s/chmhPiVNAafGw48c4oU2/ecosystem/lumia/architecture/data-availability) for that framing.


# RPC node

What this subsection covers: an RPC node overview, and the JSON-RPC endpoints it serves.




---

[Next Page](https://docs.lumia.org/llms-full.txt/1)

