Get paid safely. No chargebacks. No middlemen.
SatsGate is a Bitcoin-secured escrow and payment platform built on Stacks that enables freelancers, creators, and digital sellers to transact safely without chargebacks or centralized control.
- Documentation: All
.mdfiles are indocs/- View Index - Scripts: All utility scripts are in
scripts/- View Index - Project Structure: See docs/PROJECT_ORGANIZATION.md
Today's payment landscape is broken for digital workers:
- ❌ Freelancers get scammed
- ❌ Buyers fear paying upfront
- ❌ Payment processors charge high fees (3-5%)
- ❌ Chargebacks hurt honest sellers
- ❌ Cross-border payments are slow or restricted
- ❌ No simple, Bitcoin-native escrow for everyday work
SatsGate provides trustless escrow powered by Bitcoin and Stacks smart contracts.
- ✅ Create payment links with escrow protection
- ✅ Set amount and delivery deadline
- ✅ Funds locked in smart contract until delivery
- ✅ No chargebacks - payments are final
- ✅ Pay using STX tokens
- ✅ Funds secured in trustless smart contract
- ✅ Release payment after delivery confirmation
- ✅ Full transparency on-chain
- 🔐 Non-custodial - you control your keys
- ₿ Bitcoin-secured via Stacks Proof of Transfer
- 📜 Smart contract escrow - trustless automation
- 🔍 Transparent - all transactions on-chain
- 🚫 No middleman - peer-to-peer escrow
- ⭐ Reputation system - build trust over time
- Blockchain: Stacks (Bitcoin Layer 2)
- Smart Contracts: Clarity
- Frontend: React + TypeScript + Vite
- Styling: Tailwind CSS + shadcn/ui
- Wallet: Leather/Xverse integration
- Payments: STX tokens
- Node.js 18+
- npm or yarn
- Leather or Xverse wallet extension
# Clone the repository
git clone https://github.com/yourusername/sats-direct.git
cd sats-direct
# Install dependencies
npm install
# Start development server
npm run devCreate a .env file:
# Deployed Smart Contracts
VITE_ESCROW_CONTRACT_ADDRESS=ST3XJC356F2NYYBT4JBEYW5KWYHVRHEZ1YDZG65KT.escrow
VITE_INVOICE_CONTRACT_ADDRESS=ST3XJC356F2NYYBT4JBEYW5KWYHVRHEZ1YDZG65KT.invoice-registry
VITE_STACKS_NETWORK=testnetHandles the core escrow logic:
- Create escrow with amount and deadline
- Deposit funds (buyer)
- Mark work complete (seller)
- Release funds (buyer)
- Cancel/refund logic
Tracks invoice metadata on-chain:
- Register invoices
- Update status
- Query invoice details
-
Seller creates escrow
- Sets amount, deadline, and description
- Gets shareable payment link
-
Buyer deposits funds
- Connects wallet
- Deposits STX into smart contract
- Funds locked until conditions met
-
Seller delivers work
- Marks escrow as complete
- Buyer notified to review
-
Buyer releases payment
- Reviews work
- Releases funds from contract to seller
- Transaction complete
- ✅ Trustless Escrow - Smart contracts enforce rules
- ✅ No Chargebacks - Blockchain payments are final
- ✅ Global Access - Anyone with a Stacks wallet
- ✅ Low Fees - Only blockchain transaction fees
- ✅ Fast Settlement - ~10 minute block times
- ✅ Transparent - All transactions verifiable on-chain
- 💼 Freelancers - Developers, designers, writers
- 🎨 Creators - Digital artists, content creators
- 📦 Digital Sellers - Ebook authors, course creators
- 🌍 Remote Workers - Anyone doing online work globally
- Non-custodial architecture
- Open-source smart contracts
- Auditable on Stacks blockchain
- No private keys stored
- Wallet-based authentication
Contributions welcome! Please read our contributing guidelines first.
MIT License - see LICENSE file for details
Built with ₿ on Stacks