SafeDeal
Docs Launch app
SOLANA On-chain escrow program

Trade without
trusting anyone.
The code does it.

SafeDeal locks funds in an escrow account on Solana until both parties have met their commitments. No middleman ever holds your money.

Create a deal See how it works
Non-custodial SOL · USDC · SPL Finality < 1 s
DEAL #A7F3 · example
Amount in escrow
1 250 USDC
PDA
9fQa…Xk2m
Buyer
7xKX…3pLm
Seller
Bq4r…8vNt
>
sig
Built with Anchor Deterministic PDA accounts Works with Phantom · Solflare · Backpack Open source
// HOW IT WORKS

Four steps. Zero trusted third parties.

Every step is a signed instruction you can verify on-chain. Nobody, not even SafeDeal, can move funds outside the contract's rules.

01

Create the deal

Buyer or seller sets the amount, token, deadline and terms, then shares a deal link with the other party.

02

Lock the funds

The buyer deposits SOL or USDC into a PDA controlled only by the program. The seller sees the locked funds in real time.

03

Deliver & confirm

The seller delivers the goods or service. The buyer confirms receipt with one signature from their wallet.

04

Automatic release

Funds go to the seller instantly. If there's a disagreement, a dispute freezes the escrow until arbitration.

// SECURITY

Built so nobody can cheat.

100% non-custodial

Funds live in a Program Derived Address. No private key controls it: only program instructions, signed by the right parties, can move them.

pub fn release(ctx: Context<Release>) {
require!(ctx.buyer.is_signer);
require!(deal.state == Funded);
transfer(vault → seller, deal.amount)?;
deal.state = Released;
}

Timelock & refund

If the seller doesn't deliver by the deadline, the buyer reclaims their funds without asking anyone.

Dispute arbitration

An arbiter chosen when the deal is created decides, and can only send funds to one of the two parties.

Fast and cheap

Solana network fees are fractions of a cent. SafeDeal fee: [X]% per deal.

Open source & audited

Code published at [GITHUB LINK]. Security audit: [AUDITOR NAME / COMING SOON].

// USE CASES

For any deal between strangers.

FREELANCE

Gigs & milestones

The client locks the budget, the freelancer works with peace of mind, payment goes out on delivery.

OTC

Over-the-counter trades

Swap tokens, NFTs or domains between two wallets without anyone having to send first.

COMMERCE

Peer-to-peer sales

Gear, collectibles, vehicles: the buyer pays, the seller ships, the contract keeps score.

API

Integrate SafeDeal

Add escrow to your marketplace with our TypeScript SDK and webhooks.

// FAQ

Frequently asked questions

No. Funds are held by a program-owned PDA with no private key. Only the instructions defined in the contract, signed by the right parties, can move them.

Your next deal deserves a safety net.

Connect your wallet and set up an escrow in under a minute.

Connect wallet Read the docs