Hanchon
  • Home
  • BCH Testnet Environment
    • BCH Testnet Environment
    • BitcoinABC (bitcore patches)
    • Bitcore (insight + insight-api)
    • NOMP (mining pool)
    • CPU Miner
    • Fork the network
    • Run regtest
  • Bitprim
    • Introduction
    • Node versions
    • Requirements
    • Node installation
    • Run the node
    • Insight Installation
    • Run Insight (node + REST-API)
    • Query the insight api
  • Bitprim Node Configuration Files
    • Bitcoin Cash Testnet
    • Bitcoin Cash Mainnet
    • Bitcoin Core Testnet
    • Bitcoin Core Mainnet
    • Litecoin Testnet
    • Litecoin Mainnet
  • Bitprim Insight Configuration
    • Insight-API configuration file
  • Utils
    • Install Node Version Manager
    • Install Redis
Powered by GitBook
On this page
  • Using swagger:
  • Using Curl:
  • Complete API List:
  1. Bitprim

Query the insight api

Simple queries to the Blockchain.

PreviousRun Insight (node + REST-API)NextBitcoin Cash Testnet

Last updated 6 years ago

Using swagger:

After running Insight, swagger can be used to test all the API calls:

Using Curl:

The REST-API can also be queried using curl:

curl http://0.0.0.0:3000/api/block-index/0
{"blockHash":"000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943"}

Complete API List:

Check the for a detailed explanation for each API call.

http://0.0.0.0:3000/swagger/index.html
official documentation