Skip to content

Tip anyone in any OP_20 token on Bitcoin L1. Instantly or streamed block-by-block. Powered by OP_NET.

Notifications You must be signed in to change notification settings

frenchchoco/blocktip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlockTip

Tip anyone in any OP_20 token on Bitcoin L1. Instantly or streamed block-by-block. Powered by OP_NET.

Live Demo (Testnet)

Features

  • Instant Tips -- Send any OP_20 token to anyone in one transaction
  • Block-by-Block Streaming -- Create linear vesting streams that drip tokens every block
  • $BLOCK Discount -- Hold $BLOCK tokens for reduced fees (0.25% vs 0.5%)
  • Leaderboard -- Track top tippers with achievement badges
  • Multi-Token -- Works with any OP_20 token (MOTO, BLOCK, PILL, etc.)

Fees

Tier Fee Requirement
Standard 0.5%
$BLOCK Holder 0.25% Hold ≥ 10,000 $BLOCK

The discount is checked on-chain in real-time: the contract reads your $BLOCK balance at every tip. No staking or lock-up required — just hold the tokens in your wallet.

Architecture

  • Smart Contract: AssemblyScript (OP_NET btc-runtime), single monolithic contract
  • Frontend: React 18 + Vite + Tailwind CSS + TypeScript
  • Theme: Electric Blue / Ice

Project Structure

blocktip/
├── contract/          # Smart contract (AssemblyScript)
│   ├── src/blocktip/  # Contract source code
│   ├── build/         # Compiled WASM
│   └── abis/          # Generated ABI
├── frontend/          # React dApp
│   ├── src/           # Source code
│   └── dist/          # Production build
└── scripts/           # Deployment scripts

Quick Start

Build Contract

cd contract && npm install && npm run build

Run Frontend

cd frontend && npm install && npm run dev

Deploy to Testnet

cd scripts && npm install
MNEMONIC="your seed phrase" npx tsx deploy.ts

Contest

Built for the OP_NET Vibe Code Contest -- Week 1: "Bitcoin Activated"

A Block___ product by frenchchoco | Part of the OP_NET ecosystem

#opnetvibecode @opnetbtc

About

Tip anyone in any OP_20 token on Bitcoin L1. Instantly or streamed block-by-block. Powered by OP_NET.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors