diff --git a/public/css/common.css b/public/css/common.css index 714212b..2820dbf 100644 --- a/public/css/common.css +++ b/public/css/common.css @@ -33,6 +33,12 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { .vm { vertical-align: middle; } +.hightlight_h { + color: blue; + padding-bottom: 5px; + border-bottom: 1px solid #eee; +} + .navbar-default { background-color: #8DC429; border-bottom: 4px solid #64920F; @@ -68,6 +74,10 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { } } +.nav-tabs.nav-justified>li>a:hover { + cursor: pointer; +} + .insight { font-family: 'Ubuntu', sans-serif; font-size: 34px; diff --git a/public/views/developers.html b/public/views/developers.html index e153f6a..a867ecb 100644 --- a/public/views/developers.html +++ b/public/views/developers.html @@ -4,17 +4,23 @@ Developers API Documentation + + + +

Overview

The Insight REST API provides you with a convenient, powerful and simple way to read data from the bitcoin network and build your own services with it.

The REST API currently only supports JSON for the response formats.

The API is free to use.

- +
+ +

API Reference

-

Blocks

+

Blocks

Get Block

- +

URI:

/api/block/00000000009890591fbacf147ffc6c246fa7bad0f2c75a68e3e1ba48b1636d23
@@ -48,7 +54,7 @@ }

Get Block information by date

- +

URI:

/api/blocks/?blockDate=yyyy-mm-dd
@@ -68,7 +74,7 @@ }

Get hash of block by height

- +

URI:

/api/block-index/0
@@ -80,10 +86,10 @@ blockHash: "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943" } -

Transactions

+

Transactions

Get Transaction

- +

URI:

/api/tx/0099d9342edab8a59fa4d84cb807cf599ce2210e5240bc39500d8f6b6f4779c0
@@ -128,10 +134,10 @@ valueOut: 50.0017, size: 108 } - +

Get Transactions by BlockHash

- +

URI:

/api/txs/?block=0000000001a6b96db5e1af9f01458c5f0dd880d9cce6e9ed200afb9f0941991b&pageNum=1
@@ -143,10 +149,10 @@ pagesTotal: 2, txs: [ Array of Transactions ] } - +

Get Transactions by String Address

- +

URI:

/api/txs/?address=mqxfgc12qXdm4ekLrCKPDYqamxUEtK78Vg&pageNum=0
@@ -158,12 +164,12 @@ pagesTotal: 4, txs: [ Array of Transactions ] } - + -

Address

+

Address

Get Address

- +

URI:

/api/addr/mqxfgc12qXdm4ekLrCKPDYqamxUEtK78Vg
@@ -182,12 +188,12 @@ balance: 50.31766, totalReceived: 58.53132 } - + -

Application Status

+

Application Status

Get Information

- +

URI:

/api/status?q=getInfo
@@ -213,10 +219,10 @@ errors: "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" } } - +

Get Difficulty

- +

URI:

/api/status?q=getDifficulty
@@ -227,10 +233,10 @@ { difficulty: 1 } - +

Get TxOutSetInfo

- +

URI:

/api/status?q=getTxOutSetInfo
@@ -249,10 +255,10 @@ total_amount: 8900499.25420614 } } - +

Get Last Block Hash

- +

URI:

/api/status?q=getLastBlockHash
@@ -263,9 +269,9 @@ { lastblockhash: "00000000fc182ffd65fa397dbe0c60b1932bee4ccef407b36b7d6d9d5fdb5962" } - + -

Server Information

+

Server Information

Get information of Bitcoin synchronization

@@ -284,7 +290,7 @@ syncedBlocks: 178011, error: null } - +

Get API Version

@@ -298,10 +304,14 @@ { version: "0.0.1" } - + +
+ +

Sandbox for test API

API live documentation

+