Skip to content

Commit

Permalink
add api /cosmos/tx/v1beta1/txs/block/{height}
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed Feb 20, 2024
1 parent 6b8cd30 commit f62f160
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/api_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ func (m *ApiServer) StartApiServer() {
} else {
// /cosmos/base/tendermint/v1beta1/blocks/{height}
// /cosmos/base/tendermint/v1beta1/validatorsets/{height}
// /cosmos/tx/v1beta1/txs/block/{height}

urlPath := r.URL.Path
//fmt.Printf("urlPath=%s\n", urlPath)

if strings.HasPrefix(urlPath, "/cosmos/base/tendermint/v1beta1/blocks/") ||
strings.HasPrefix(urlPath, "/cosmos/base/tendermint/v1beta1/validatorsets/") {
strings.HasPrefix(urlPath, "/cosmos/base/tendermint/v1beta1/validatorsets/") ||
strings.HasPrefix(urlPath, "/cosmos/tx/v1beta1/txs/block/") {
pHeight := path.Base(r.URL.Path)
fmt.Printf("pHeight=%s\n", pHeight)

Expand Down

0 comments on commit f62f160

Please sign in to comment.