System overview

ExergyNet is the public interface layer for LNES-01, a Solana Mainnet-Beta program for autonomous compute settlement. It provides a machine-readable, economically bounded, verifiable mechanism for agents to route USDC in exchange for verified useful work.

Developers and agents interact with LNES-01 through the TypeScript SDK or the MCP server. All settlement activity is verifiable on Solana.

Program identity

Program ID
Fe8KhdiFWhKcPWH2N2Svqc3VSpK9EzN8nMh9pQ3cPCeD
Network
Solana Mainnet-Beta
Instruction proven
SettleExergy
Settlement asset
USDC

Always verify this Program ID before signing any transaction. Do not trust a program ID passed at runtime without cross-referencing this canonical source.

Installation

NPM
npm install lnes-agent-sdk-core
VERIFY
import { LNES_PROGRAM_ID } from "lnes-agent-sdk-core";
console.log(LNES_PROGRAM_ID.toBase58());
// → Fe8KhdiFWhKcPWH2N2Svqc3VSpK9EzN8nMh9pQ3cPCeD

Exposed methods

Method Purpose
estimateExergyGate() Calculates whether a compute job clears the minimum economic threshold. Returns a boolean and estimated cost breakdown.
openJob() Creates or opens a settlement job using the LNES-01 program interface. Returns a jobId and escrowPda.
settleExergy() Submits a settlement instruction to route value through the LNES-01 program. Requires all verified inputs and proof data.

Basic integration

import { LnesM2MClient } from "lnes-agent-sdk-core";

const client = new LnesM2MClient(connection, agentWallet);

// Check if the job is economically valid
const valid = await client.estimateExergyGate({ jobParams });

if (valid) {
  // Open a settlement job
  const { jobId, escrowPda } = await client.openJob({ jobParams });

  // After work is complete, settle
  await client.settleExergy({
    jobId,
    axiomHash,
    tollUsdcMicroUnits,
    escrowPda,
    usdcMint,
    agentUsdcAccount,
    escrowUsdcAccount,
    vaultAccounts,
  });
}

Required inputs

InputDescription
connectionSolana RPC connection to Mainnet-Beta
agentWalletKeypair or signer for the agent
jobIdUnique identifier for the settlement job
axiomHashHash of the compute proof or output
tollUsdcMicroUnitsSettlement amount in USDC micro-units
escrowPdaProgram-derived address for escrow
usdcMintUSDC mint address (must be verified)
agentUsdcAccountAgent's associated USDC token account
escrowUsdcAccountEscrow USDC token account
vault token accountsDestination vault accounts for routed USDC

Safety checks

Before sending capital through any LNES-01 instruction, verify the following:

  • 01Verify the Program ID matches the canonical value above
  • 02Verify the USDC mint address against the official USDC mint
  • 03Simulate the transaction before submitting
  • 04Verify account ownership for all PDAs
  • 05Verify the expected vault split matches protocol specification
  • 06Wait for transaction finality before treating the job as settled