Book a free call

How to Build a P2P Exchange Like LocalCryptos

LocalCryptos proved a P2P exchange can run without holding user funds. Here is how to build a non-custodial exchange on the same model.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How to Build a P2P Exchange Like LocalCryptos
On this page

Short answer

A LocalCryptos-style exchange is a non-custodial peer-to-peer marketplace where buyers and sellers trade directly and the crypto is locked in multisig or smart-contract escrow. The platform matches traders, provides chat and settles disputes, but it never holds user funds. Building one means starting with the escrow, the ad board, encrypted chat and a dispute flow.

What was LocalCryptos, and how did it work?

LocalCryptos was a peer-to-peer crypto exchange that let people buy and sell crypto directly with each other, without the platform ever holding their coins. It began in 2017 as LocalEthereum, a market for ether, and rebranded as LocalCryptos in 2019 when it added bitcoin, litecoin, dash and bitcoin cash.

The model was simple. Sellers posted ads with a price and a payment method, such as a bank transfer or a mobile payment. A buyer picked an ad, the seller's crypto was locked in escrow, the buyer paid by the agreed method, and the escrow released the crypto. The platform matched people and settled disputes, but it never took custody of the coins.

LocalCryptos stopped taking new trades in November 2022, after five years in operation. The non-custodial model it used did not disappear with it: it lives on in venues that still trade without holding user funds. This article explains how to build an exchange on that model. For the basics of the category, see what a P2P crypto exchange is.

How is a non-custodial P2P exchange different?

A non-custodial P2P exchange differs from a custodial one in one place: who holds the crypto while a trade is open. In a custodial exchange the platform holds it in its own wallet. In a non-custodial exchange the crypto stays locked in a multisig address or a smart contract that the platform alone cannot open.

FeatureCustodial P2PNon-custodial P2P
Who holds crypto during a tradePlatform walletMultisig or smart-contract escrow
Platform can take funds aloneYesNo, needs 2 of 3 keys
If the platform closesUsers wait for withdrawalUsers keep access to escrow
Identity checksUsually full KYCOften none or light
Dispute handlingPlatform decidesArbitrator key in multisig

The trade-off is speed and convenience against control. Custodial venues settle faster and support more payment methods, because the platform can move funds instantly. Non-custodial venues are slower to build and harder to use, but a user never has to trust the platform with their coins.

How does non-custodial escrow work?

Non-custodial escrow works by locking the seller's crypto in an address that needs more than one key to spend from. LocalCryptos used special bitcoin addresses and an ethereum smart contract for the same job: the escrow could only release the coins when two of the three parties agreed.

The three key holders are the buyer, the seller and an arbitrator. In a normal trade, the seller and the buyer both sign, and the coins move to the buyer. If the trade is disputed, the arbitrator reviews the payment evidence and signs with the party that should win. No single party, including the platform, can move the coins alone.

The fiat leg is outside the escrow. The buyer pays by bank transfer, cash or a payment app, and the seller confirms receipt before releasing the coins. That is the weak point: the escrow protects the crypto, not the money. A seller who releases against a reversible payment can lose both, which is why payment methods that cannot be reversed are preferred.

Which parts must you build first?

The parts you must build first are the ad board, the escrow, the chat and the dispute flow. Everything else, such as reputation, price alerts and mobile apps, can wait until people are actually trading.

  • Ad board. Sellers post price, limits, payment methods and location; buyers browse and filter.
  • Escrow. Multisig addresses for bitcoin-style chains and a smart contract for ethereum-style chains, with a clear release and dispute path.
  • Encrypted chat. Buyer and seller need a private channel to agree payment details without exposing them.
  • Dispute flow. An arbitrator role, a way to submit payment evidence, and a time limit so a disputed trade cannot sit open forever.
  • Wallet connection. Users connect their own wallets, so the platform never asks for private keys.

Build the escrow before the ad board looks good. The escrow is the product: if it is wrong, no amount of design will make the exchange safe. A build guide for the custodial model is covered in how to build a P2P crypto exchange, which shares the ad board and dispute parts.

How do you build it, step by step?

You build a LocalCryptos-style exchange by starting with one chain and one payment method, then adding more once the escrow and dispute flow work in practice.

  1. Pick one chain and one coin. Start with bitcoin or ethereum and one escrow design, so the team learns one system before adding a second.
  2. Build the escrow contract. Use multisig addresses or a smart contract with buyer, seller and arbitrator keys, plus a timeout that returns the coins if a trade is abandoned.
  3. Build the ad board and order flow. Cover posting, browsing, opening a trade, and a clear state for every trade from open to released or disputed.
  4. Add encrypted chat. Tie messages to the trade, with payment details visible only to the two parties and the arbitrator.
  5. Add reputation and limits. Show trade history, completion rate and response time on each profile, plus limits for new accounts.
  6. Add the dispute flow. Build evidence upload, arbitrator review, a decision deadline, and a signed release that follows the decision.

Launch with a small group of known traders and watch the first disputes closely. The dispute flow is where the design is tested, and it is better to find its gaps with ten trades than with a thousand. Running costs are covered in P2P crypto exchange development cost.

Example (hypothetical): a first month of non-custodial trading

Example (hypothetical): a new exchange opens for bitcoin trades in one country, with bank transfer as the only payment method. In the first month, 40 sellers post ads and 120 trades open.

Of the 120 trades, 110 complete normally: the buyer pays, the seller releases, and the escrow returns the fee. The average trade is 0.05 bitcoin, so about 5.5 bitcoin moves through escrow in the month. Five trades are disputed, and the arbitrator decides four for the buyer and one for the seller. Five trades expire because the buyer never pays, and the escrow returns the coins to the sellers after the timeout.

The platform earns a fee of 0.5% on completed trades. On 5.5 bitcoin of completed volume, that is 0.0275 bitcoin for the month, which covers the server costs but not a salary. The team learns that volume, not features, is the constraint, and spends the second month on seller recruitment instead of new features.

What does it cost to run, not just build?

Running a non-custodial exchange costs less in custody and more in support than a custodial one. There is no hot wallet to guard and no withdrawal queue to manage, but every dispute needs a human arbitrator, and every new chain needs its own escrow work.

The main running costs are arbitration time, chain fees for escrow transactions, hosting and security, and compliance advice. Arbitration is the largest: a venue with a 5% dispute rate sees about 10 disputed trades for every 200 trades, and each one can take an hour of review.

Revenue comes from trade fees, usually a small share of completed volume, and sometimes from featured ads. Fees must stay low enough to keep sellers on the platform, which is why most non-custodial venues start with thin margins and grow on volume. Compare the venue with the wider market in the best P2P crypto exchanges.

What are the common mistakes?

The most common mistakes with a LocalCryptos-style exchange are weak escrow design, reversible payment methods, and no plan for disputes.

  • Escrow the platform can open alone. If one key is enough, the exchange is custodial in practice, whatever the marketing says.
  • Reversible payments. Bank transfers and payment apps that allow chargebacks let a buyer take the coins and reverse the money.
  • No timeout. An abandoned trade that never times out locks the seller's coins indefinitely.
  • No arbitrator plan. Disputes need a trained reviewer and a deadline, not an inbox nobody reads.
  • Copying the brand, not the model. LocalCryptos closed in 2022, so copying its name or look adds nothing; the value is the non-custodial design.

Test the escrow with small amounts on a test network before real coins move through it. A bug in the release logic is the one failure that cannot be fixed after the fact.

Key takeaways

  • LocalCryptos traded without custody: ads, multisig escrow, chat and arbitration
  • Non-custodial escrow needs 2 of 3 keys, so the platform alone cannot take funds
  • The escrow protects the crypto, not the fiat payment, so payment methods matter
  • Build the escrow, ad board, chat and dispute flow before anything else
  • Volume is the constraint early on, so recruit sellers before adding features

Frequently asked questions

What is a non-custodial P2P exchange?

It is a marketplace where buyers and sellers trade directly and the crypto is locked in a multisig address or smart contract during the trade. The platform matches traders and settles disputes but never holds user funds, so a platform failure does not trap user coins.

Why did LocalCryptos close?

LocalCryptos announced its wind-down in October 2022 and stopped new trades on 18 November 2022, citing market conditions and the cost of coming rules. Because the escrow was non-custodial, users kept control of their coins and could still reach their wallets after the close.

How is a LocalCryptos-style exchange different from Binance P2P?

Binance P2P is custodial: the platform holds the crypto in escrow in its own wallet. A LocalCryptos-style exchange locks the crypto in a multisig address or smart contract that the platform alone cannot open. Custodial venues are faster to use; non-custodial ones ask users to trust the platform less.

What payment methods work best for non-custodial P2P?

Methods that cannot be reversed work best, such as cash in person or transfers that cannot be recalled. Reversible methods like chargeback-prone payment apps are risky, because a buyer can take the coins and then reverse the payment.

Do non-custodial exchanges need KYC?

It depends on the country and the venue. Some non-custodial venues ask for no identity documents, while others run checks to meet local rules. The escrow design does not decide this; local law and the operator's risk appetite do.

How much does it cost to build a non-custodial P2P exchange?

Costs vary with the number of chains, the escrow design and the dispute team. The build is usually cheaper than a custodial exchange because there is no hot wallet infrastructure, but the escrow and dispute flow need careful work. See the P2P exchange development cost guide for the main cost drivers.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a non-custodial P2P exchange? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Crypto Exchange service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call