ButKoin API

API HTTP Endpoints

Block

  /block/[:hash]
  /block/a2c1c9d1051caa016cbfcf00ee08d7f7ecf8d49ebf2edde72c58833efba6b306

Block Index

Get block hash by height

  /block-index/[:height]
  /block-index/0

This would return:

{
  "blockHash":"001787e5f9c3cd249f84f0142071f6098d9e3b7ec8591ff73543ddc4900c1dc2"
}

Raw Block

  /rawblock/[:blockHash]

This would return:

{
  "rawblock":"blockhexstring..."
}

Block Summaries

Get block summaries by date:

  /blocks?limit=3&blockDate=2021-04-27

Example response:


{

  "blocks":[{"height":10065,"size":678,"hash":"3bf6c540f2a16fb0120a02521f15d232c35ba461d2e135df1c1a6d18f88c60d1","time":1619553034,"txlength":2,"poolInfo":{"poolName":"Node Stratum Pool","url":"https://github.com/zone117x/node-stratum-pool"}},{"height":10064,"size":724,"hash":"98572163d98062a01c2b359798d4e689084c30b49ee0bd22f2887f26b6ee484a","time":1619553018,"txlength":2,"poolInfo":{}},{"height":10063,"size":662,"hash":"0000000631e55c389e567beb0ee0b5b4456000411e22c4292be4e15b25460fa5","time":1619553016,"txlength":2,"poolInfo":{}}],"length":3,"pagination":{"next":"2021-04-28","prev":"2021-04-26","currentTs":1619567999,"current":"2021-04-27","isToday":true,"more":true,"moreTs":1619568000}

}

Transaction