Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 934 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 934 Bytes

Blockset API - Hello, World!

A simple API which demonstrates how easy it is to use the Blockset API to get data.

This API exposes a single endpoint (GET /the-pizza-tx), which acts as a proxy to the Blockset API, and returns back the full Bitcoin transaction of the infamous Pizza Transaction.

Setup

Install dependencies

$ npm install

Create an .env file

$ cp .env.example .env

Set your Blockset API User JWT

Edit .env and set the BLOCKSET_API_USER_JWT variable to a valid User JWT.

If you don't have one, or don't know what this is, refer to the Blockset Authentication guide.

Run the API

$ npm start

View the blockchain data!

Navigate to http://localhost:3000/the-pizza-tx in your browser, and see the transaction that made history.