SettlevaTry the playground
CONDITIONAL PAYMENTS INFRASTRUCTURE

Your rules.
Your evidence.
Payments that follow through.

Build applications where money moves only when the right conditions are proven. Settleva gives developers a reusable policy, evidence-verification and USDC settlement layer.

Policy-bound payments Evidence-first verification Arc USDC settlement
01 / POLICYmilestone.acceptedmust equal true
DEFINED
02 / EVIDENCEAcceptance verifiedprovider · proof bound
VERIFIED
03 / SETTLEMENT25.00 USDCrelease authorized
A condition is not a payment. It controls one.
DESIGNED FOR APP DEVELOPERSPOLICY → EVIDENCE → SETTLEMENTBUILT FOR ARC

Stop rebuilding escrow logic every time your app needs a conditional payment.

Define the policy once. Connect credible evidence. Reuse the settlement flow.
A SMALLER SURFACE AREA FOR MONEY

Your application defines the rule.

Settleva separates what should happen from how the payment is secured, verified and completed.

01

Commit the policy

Define the claims that must be true before a payment may settle. The condition is canonicalized and hashed before funding.

POLICY HASH
02

Verify the evidence

An appropriate provider supplies evidence. Settleva checks the provider, condition binding, verified claims and replay status.

EVIDENCE + CONTEXT
03

Protect the funds

The Settleva contract holds USDC under a payment record and enforces expiry, authorization and one-time settlement.

ON-CHAIN ESCROW
04

Settle by the rule

Funds are released only with valid settlement authorization. If the payment expires under the contract rules, eligible refunds remain available.

RELEASE OR REFUND
ONE ENGINE · DIFFERENT POLICIES

What will you build with it?

Different products have different proof requirements. They can still use the same conditional settlement contract.

INTERACTIVE POLICY PLAYGROUND

Change the rule.
See what breaks.

Explore a guided example or switch to developer mode to edit the policy and evidence payload. Run it, inspect failures and reset to a working example—no wallet required.

SETTLEVA / POLICY LAB
SIMULATION ONLY
A
Payment policyThe condition Settleva will evaluate
policy.json
B
Evidence claimsWhat the demo evidence source reports
evidence.json

Demo event: Milestone accepted. Turn on developer mode to edit the policy or evidence.

C
Evaluation traceActual condition evaluator · local simulation
READY
Awaiting simulation

Run a scenario to evaluate the policy against its evidence.

Parse policyJSON input
WAIT
·
Canonicalize conditionStable payment condition hash input
WAIT
·
Evaluate claimsExact field + value comparison
WAIT
·
Authorize settlementRequires backend verification + contract rules
NOT RUN
This sandbox does not verify an external provider, sign an attestation, connect a wallet or transfer USDC.

Powered by the same Settleva condition canonicalizer and evaluator used in the repository. External evidence and on-chain settlement are intentionally not simulated as real.

FOR THE BUILDERS

Integrate the rule.
Keep your product.

Settleva is infrastructure, not another destination your users have to adopt. Add conditional payments to the app you already operate.

Commit a deterministic condition

Canonical policy data becomes a stable hash bound to the payment.

Keep proof handling server-side

Evidence verification and replay protection stay out of the browser.

Settle on Arc

The shared contract holds USDC and enforces the authorized payment transition.

Explore the repository
conditional-payment.ts
import { prepareCreatePayment } from "@settleva/sdk";
import type { PaymentCondition } from "@settleva/conditions";
import { parseUnits } from "viem";
import { settlevaAbi } from "./contracts";

// Assumes payer, payee, token, account, wallet and SETTLEVA_ADDRESS
// are configured by your application before this flow runs.
const condition: PaymentCondition = {
  version: "1.0",
  provider: "your-evidence-provider",
  providerVersion: "1",
  claims: [
    { field: "milestone.status", operator: "equals", value: "accepted" }
  ],
  expiresAt: Math.floor(Date.now() / 1000) + 86_400
};

const payment = prepareCreatePayment({
  payer, payee, token, amount: "25",
  expiry: condition.expiresAt, condition
});

await wallet.writeContract({
  account,
  address: SETTLEVA_ADDRESS,
  abi: settlevaAbi,
  functionName: "createPayment",
  args: [payment.paymentId, payee, token,
    parseUnits("25", 6), BigInt(condition.expiresAt),
    payment.conditionHash, payment.providerHash]
});
TypeScriptSDK API shown from current source
SECURITY IS PART OF THE FLOW

Evidence is not
just a boolean.

A successful API response alone is not a cryptographic proof. Settleva binds verified claims to the committed condition and payment before the contract accepts settlement authorization.

01
Condition binding

Evidence is checked against the condition committed at funding time.

02
Replay protection

Proof identifiers and verification sessions cannot authorize duplicate settlement.

03
Explicit trust boundary

The current release flow relies on a backend verification signer. It is not presented as trustless on-chain proof verification.

04
Expiry-aware escrow

Contract state controls release eligibility and refund timing.

BUILD CONDITIONAL PAYMENTS

Define the condition.
Let settlement follow.

Start with the playground, inspect the SDK and see how policies become payment commitments.