github.com/okex/exchain@v1.8.0/libs/ibc-go/modules/apps/transfer/client/rest/rest_ibc.go (about) 1 package rest 2 3 import ( 4 "fmt" 5 "net/http" 6 7 "github.com/gorilla/mux" 8 9 "github.com/okex/exchain/libs/cosmos-sdk/client/context" 10 "github.com/okex/exchain/libs/ibc-go/modules/apps/transfer/types" 11 ) 12 13 func RegisterOriginRPCRoutersForGRPC(cliCtx context.CLIContext, r *mux.Router) { 14 r.HandleFunc( 15 "/ibc/apps/transfer/v1/denom_traces", 16 denomTracesHandlerFn(cliCtx), 17 ).Methods("GET") 18 } 19 20 func denomTracesHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { 21 return queryDenomTraces(cliCtx, fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryDenomTraces)) 22 }