Skip to content

DollaHane/bsv-op_return-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OP_RETURN File Upload Example

An example of OP_RETURN in action using the BSV SDK.

Project Image

Features

  • 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.

Getting started

Download the repository to a directory of your choice and run:

  npm install

Create 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

Documentation Links

Acknowledgements

License

MIT

About

An example of OP_RETURN in action using the BSV SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published