split API which need be authed

pull/3853/head
haodi 3 years ago committed by Lutty
parent 22972a0d83
commit d58243b630
  1. 2
      rpc/rpc.go

@ -156,6 +156,8 @@ func getAPIs(hmy *hmy.Harmony, debugEnable bool, rateLimiterEnable bool, ratelim
NewPublicStakingAPI(hmy, V2), NewPublicStakingAPI(hmy, V2),
NewPublicDebugAPI(hmy, V1), NewPublicDebugAPI(hmy, V1),
NewPublicDebugAPI(hmy, V2), NewPublicDebugAPI(hmy, V2),
NewPublicTraceAPI(hmy, Debug), // Debug version means geth trace rpc
NewPublicTraceAPI(hmy, Trace), // Trace version means parity trace rpc
// Legacy methods (subject to removal) // Legacy methods (subject to removal)
v1.NewPublicLegacyAPI(hmy, "hmy"), v1.NewPublicLegacyAPI(hmy, "hmy"),
eth.NewPublicEthService(hmy, "eth"), eth.NewPublicEthService(hmy, "eth"),

Loading…
Cancel
Save