An example of OP_RETURN in action using the BSV SDK.
- Next.js 15 App Directory
- BSV Blockchain SDK
- Shadcn Components
- Tailwind CSS
- TanStack Query
- Icons from Lucide
- Dark mode with
next-themes - Tailwind CSS class sorting, merging and linting.
Download the repository to a directory of your choice and run:
npm installCreate a private key using the code provided in './server/createKey.ts'. This should output the following:
- A public key / address (Main Net).
- A .wif file in the root directory containing the private key.
address: '1E7ZM72xxxxxxxxxxxxxxxxxxxxx'You will now need to fund the output address in order to send transactions over the network For additional info see the BSV SDK Documentation link below.
Copy these variables into a .env file:
PRIVATE_KEY="<bsv-pvt-key>"
PUBLIC_KEY="bsv-pub-key"
UPSTASH_REDIS_REST_URL='https://<url>'
UPSTASH_REDIS_REST_TOKEN='<token>'Start the dev server:
npm run dev- BSV SDK Docs: BSV SDK Docs.
- Bitcoin SV Repo: Bitcoin SV Repo
- Upstash Rate Limiting: Redis rate limiting.
- Shadcn: UI Components
- Shadcn's NEXT Template which this repository was forked from