§ 00 — PRODUCT OVERVIEW

The escrow + proof primitive for autonomous systems.

Lock → Verify → Release. One API call. Zero trust required between parties.

Step 01
Lock

Payer deposits USDC into a LogicNodes escrow contract. Funds are immutably held until the defined condition resolves.

Step 02
Verify

An evaluator oracle runs the condition — hash comparison, API check, schema validation — and records a signed Proof of Logic receipt.

Step 03
Release

On PASS the payee receives funds instantly. On FAIL the payer receives a 100% refund. No arbitration. No intermediary discretion.

One endpoint to create a verifiable escrow

Call POST /escrow/create with a condition, an amount, and two parties. LogicNodes handles contract deployment, oracle assignment, and settlement — you handle the logic that matters.

Request — POST /escrow/create
POST https://api.logicnodes.io/escrow/create Content-Type: application/json X-API-Key: ln_live_<your-key> { "condition_type": "api_response_match", "condition_value": "{'status':'delivered'}", "amount_usdc": 50.00, "payer": "0xPayer...", "payee": "0xPayee...", "timeout_blocks": 200 }
Response — 201 Created
{ "escrow_id": "esc_01J...", "status": "PENDING", "condition_type": "api_response_match", "amount_usdc": 50.00, "fee_usdc": 0.50, "contract_addr": "0xBase...", "block_created": 18442001, "timeout_block": 18442201 }

Eight verifiable condition primitives

Every condition is evaluated by a signed oracle node. The evaluator's decision plus a cryptographic proof is stored on-chain as a Proof of Logic receipt.

Condition Type Description Common Use Case
hash_match Verifies that a given artifact's SHA-256 hash matches a pre-committed expected value. Contract bytecode verification, file delivery confirmation, build artifact integrity.
api_response_match Issues an HTTP request to a specified endpoint and checks that the JSON response matches an expected structure or value. AI agent task completion, delivery status APIs, webhook confirmation.
schema_validate Validates a delivered payload against a declared JSON Schema or Avro schema definition. Data pipeline quality gates, ML training set delivery, structured content hand-offs.
sig_valid Verifies an ECDSA or Ed25519 signature from an expected signing key over a specified message. Identity attestation, signed document delivery, cross-chain message verification.
gas_below Reads on-chain gas price from Base and releases only when it falls at or below a threshold (in Gwei). Gas-sensitive batch settlements, cost-capped automation, time-indifferent bulk transfers.
peg_held Checks an oracle price feed and passes only if the target asset remains within ±N% of its peg over the escrow window. Stablecoin peg assurance, FX-triggered payments, DeFi protocol guarantees.
block_after Releases funds after a specified block number has been confirmed on Base mainnet. Time-locked vesting, delayed settlement, scheduled autonomous payments.
multi Combines N conditions with AND / OR logic. Requires M-of-N sub-conditions to pass before resolving. Multi-sig governance, complex SLA verification, composite delivery conditions.

Every settlement generates a tamper-proof receipt

A Proof of Logic (POL) receipt is an immutable, signed record of what was evaluated, what the result was, and which oracle node made the determination. It lives on-chain and is forever auditable.

POL receipts serve as the audit trail for autonomous systems. Any party — payer, payee, or third-party auditor — can independently verify the evaluation outcome using only the receipt and the evaluator's public key.

Receipts are stored in the LogicNodes index and optionally pinned to IPFS. The pol_hash is emitted as a contract event on Base.

Fully auditable
POL Receipt — PASS example
LOGICNODES PROOF OF LOGIC · v1
escrow_id: esc_01JKVB2MT... condition: api_response_match evaluated: https://api.myservice.io/status expected: {"status":"delivered"} actual: {"status":"delivered","ts":1711...} result: PASS evaluator: 0xOracle7f2A... signature: 0x3d8a4f...1c2b pol_hash: bafyreicj...xqm timestamp: 2024-03-22T14:31:07Z block: 18442189

Compatible with every modern payment stack

LogicNodes speaks x402, Circle, Stripe, and Coinbase Commerce natively. Machine-to-machine payments flow without human checkout — just an HTTP header.

x402 Protocol

HTTP 402 Payment Required header standard. Drop-in for any API server. Zero UI needed.

Circle USDC

Native USDC settlement on Base mainnet. Programmatic issuance via Circle's API.

Stripe

Fiat on-ramp integration. Auto-converts to USDC for escrow deposit. Stripe webhooks trigger settlement.

Coinbase Commerce

One-click crypto checkout. Deposit receipt verified, escrow activated — all server-side.

x402 response header — auto-payment flow
# Server returns 402 when payment is required HTTP/1.1 402 Payment Required X-LogicNodes-Escrow: esc_01JKVB2MT... X-LogicNodes-Amount: 5.00 USDC X-LogicNodes-Condition:api_response_match X-Payment-Required: https://pay.logicnodes.io/esc_01JKVB2MT # Client agent settles and retries with proof header X-LogicNodes-Proof: pol:bafyreicj...xqm X-LogicNodes-Sig: 0x3d8a4f...1c2b

Ready to build?

One free escrow, no credit card required. Full API access from day one.