start writing rpc

This commit is contained in:
Jae Kwon
2014-11-30 18:31:44 -08:00
parent 8e9c060e6d
commit 4424a85fbd
6 changed files with 133 additions and 2 deletions

14
rpc/blocks.go Normal file
View File

@ -0,0 +1,14 @@
// Maybe move this to blocks/handler.go
package rpc
import (
"net/http"
//. "github.com/tendermint/tendermint/blocks"
)
func BlockHandler(w http.ResponseWriter, r *http.Request) {
//height, _ := GetParamUint64Safe(r, "height")
//count, _ := GetParamUint64Safe(r, "count")
ReturnJSON(API_OK, "hello")
}