Skip to content

A Bitcoin and Altcoin server api that indexes blockchain transactions and addresses

License

Notifications You must be signed in to change notification settings

CityChainFoundation/city-block-indexer

 
 

Repository files navigation

Nako block explorer

A server application to index Blockchain transactions by addresses for Bitcoin and Altcoins.
Nako exposes a REST api to query the blockchain data.

Nako api can be searched by segwit addresses and Cold-Staking (hot and cold key) script types.

CoinVault uses Nako as a block Explorer, Nako is lightweight and uses mongodb to index transactions by addresses.

Technologies

  • dotnet core (and blazor)
  • NBitcoin and Stratis.Bitcoin
  • Running a full Bitcoin/Altcoin node either daemon or qt
  • Running a MongoDB instance as indexing storage
  • OWIN selfhost REST api easily documented using swagger

We user docker (with docker-compose)

DB schema

Can be found here:
https://github.com/CoinVault/Nako/blob/master/core/nako.indexer/doc/dbschema.md

Api

Swagger http://[server-url]:[port]/swagger/

examples

GET /api/query/address/{address}
GET /api/query/address/{address}/confirmations/{confirmations}/unspent/transactions
GET /api/query/address/{address}/unspent/transactions
GET /api/query/address/{address}/unspent
GET /api/query/block/Latest/{transactions}
GET /api/query/block/{blockHash}/{transactions}
GET /api/query/block/Index/{blockIndex}/{transactions}
GET /api/query/transaction/{transactionId}
GET /api/stats
GET /api/stats/peers

Nako UI

Checkout an experimental blazor ui
https://github.com/CoinVault/Nako/tree/master/core/nako.ui.blazor

About

A Bitcoin and Altcoin server api that indexes blockchain transactions and addresses

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 43.6%
  • CSS 41.4%
  • HTML 7.6%
  • Dockerfile 3.6%
  • JavaScript 2.5%
  • Makefile 1.1%
  • Other 0.2%