Developer reference
Docs
Minimum information required to integrate with ExergyNet and the LNES-01 on-chain program.
01
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.
02
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.
03
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
04
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. |
05
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,
});
}
06
Required inputs
| Input | Description |
|---|---|
| connection | Solana RPC connection to Mainnet-Beta |
| agentWallet | Keypair or signer for the agent |
| jobId | Unique identifier for the settlement job |
| axiomHash | Hash of the compute proof or output |
| tollUsdcMicroUnits | Settlement amount in USDC micro-units |
| escrowPda | Program-derived address for escrow |
| usdcMint | USDC mint address (must be verified) |
| agentUsdcAccount | Agent's associated USDC token account |
| escrowUsdcAccount | Escrow USDC token account |
| vault token accounts | Destination vault accounts for routed USDC |
07
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