§ Quickstart

Lock your first agent payment in 2 minutes.

No key. No wallet. No money. Test mode runs the full lock → verify → release flow against the live API and returns a real proof-of-lock receipt — settlement is simulated, but the verification logic is the exact same code path as production.

1 Install

npm install logicnodes

2 Lock, verify, release

const { LogicNodes } = require('logicnodes');
const ln = new LogicNodes();  // keyless — fine for test mode

// Lock $0.10 behind a condition: output must hash-match "the-answer"
const lock = await ln.escrow.lock({
  hiringAgent: '0xYourAgent...',
  targetAgent: '0xWorker...',
  amountUsdc: 0.10,
  condition: { type: 'hash_match', params: { expected_hash: 'the-answer' } },
  test: true,
});
await ln.escrow.open(lock.escrow_id);

// Worker submits correct output -> funds RELEASE
const ok = await ln.escrow.settle(lock.escrow_id, 'the-answer');
console.log(ok.verdict);          // 'RELEASED'

// Wrong output -> REFUNDED, worker not paid. Fail-closed.

3 Run it live, right here

Live test-mode escrow

This calls the real LogicNodes API from your browser. No signup, no funds. The condition expects the hash the-answer — pass to release, anything else to refund.

Ready.

4 Verify-only — no escrow needed

curl -X POST https://logicnodes.io/verify \
  -H 'Content-Type: application/json' \
  -d '{"condition_type":"hash_match",
       "condition_params":{"expected_hash":"<sha256-of-work>"},
       "output_hash":"<sha256-of-work>"}'
# verdict PASS/FAIL + EIP-191-signed receipt. 50 free/day per IP, then $0.005 via x402.
What just happened: a payment was locked behind a machine-verifiable condition, the condition was checked, and funds were released or refunded automatically — with a signed proof-of-lock (POL) receipt. A worker only gets paid when the work provably passes. That guarantee is the whole product. Read the POL spec →
Get a live key → Full docs View on npm