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.
npm install logicnodes
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.
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.
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.