Skip to content

sirdeggen/pay-bridget

Repository files navigation

Pay Bridget

A minimal Vite + React + TypeScript demo app that creates a BSV transaction using the @bsv/sdk and submits it as BEEF to a remote endpoint.

What it does

  1. The user enters a BSV address and a session ID.
  2. Clicking Pay Bridget uses WalletClient from @bsv/sdk to construct a transaction with a single P2PKH output of 1000 satoshis locked to the provided address.
  3. The transaction is created with noSend: true so it is not broadcast — instead the raw BEEF hex is POSTed to the hummingbox endpoint with the given session.
  4. A live, syntax-highlighted code block below the button shows developers exactly what code is running, updating in real time as the address and session inputs change.

Quick start

npm install
npm run dev

Scripts

Command Description
npm run dev Start the Vite dev server
npm run build Type-check with tsc then build for production
npm run typecheck Run TypeScript type checking only
npm run preview Preview the production build locally

Tech stack

About

BSV payment demo app using @bsv/sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors