Block API

get
Get Latest Block

https://api.mch.plus//block/:network/latest
 最新ブロックナンバーを取得
Request
Response
Request
Path Parameters
network
required
string
ETH network (mainnet, rinkeby ropsten)を指定
Headers
Content-type
required
string
application/json
Response
200: OK
Cake successfully retrieved.
{ "name": "Cake's name", "recipe": "Cake's recipe name", "cake": "Binary cake"}
404: Not Found
Could not find a cake matching this query.
{ "message": "Ain't no cake like that."}

get
get time

https://api.mch.plus/block/:network/time/:num
ブロックナンバーのtimestampを取得
Request
Response
Request
Path Parameters
network
required
string
ETH network(mainnet, rinkeby, ropsten)を指定
num
required
number
Block Numberrを指定 
Headers
Content-type
required
string
application/json
Response
200: OK