Skip to content

jeremyandrews/addressapi

Repository files navigation

Overview

This is an old project that was never completed, but that I'm releasing as open source for anyone who may be interested.

This codebase is released under the GPL v3. https://opensource.org/licenses/GPL-3.0

To request the codebase under a different license, please explain your need and intent clearly.

Extract and query blockchains.

Supported Blockchains

  • Bitcoin (and bitcoin-testnet3)
  • Litecoin (and litecoin-testnet4)
  • Dogecoin (and dogecoin-testnet3)

Bitcoin (BTC) ₿

Bitcoin main

Bitcoin main blockchain explorers:

Bitcoin testnet3

Bitcoin testnet3 blockchain explorers:

Bitcoin testnet3 faucet:

Litecoin (LTC) Ł

Litecoin main

Litecoin main blockchain explorers:

Litecoin testnet4

Litecoin testnet4 blockchain explorers:

Litecoin testnet4 faucets:

Dogecoin (DOGE) Ð

Dogecoin main

Dogecoin main blockchain explorers:

Dogecoin main faucet (none worked when last tested):

Address on dev.colpo.net: DNv7di7ayXWSg7zGVgjcLMjJhMePdEEPwp

Dogecoin testnet

Dogecoin test faucet:

Installation

Everything runs from Docker.

docker-compose up

If the above fails, you may need to rebuild:

docker-compose build && docker-compose up

If the above also fails, you made need to delete and recreate the containers:

docker-compose rm && docker-compose build && docker-compose up

Stack

Nginx listens for API requests on port 8001, passing the requests to gunicorn through a socket (/run/gunicorn.sock). These requests are processed by Flask which makes queries to a MySQL database and the appropriate coin daemon.

API

Address

Traces all activity associated with a given address. For example, to get full details about the litecoin_testnet4 address n1dB69Ptu1HMt1tRqiueyJ1tsaj59qSjLn, visit:

Transaction

Shows all details about a specified txid. For example, to get full details about the litecoin_testnet4 txid 63b302aa3e97c29ae01edc5ca80777105efc1164e1dda9a255e9e86f93e3f714, visit:

In particular, this will show all coinbase, vin and vout contained in the transaction.

Block

Shows all txid found in a specified block. For example, to get full details about the litecoin_testnet4 block with hash 4557827abb0272c7dd3b6fae8485ff3d3d5aad876e207743660000555fc4567b, visit: