Skip to content
Snippets Groups Projects
Commit ba5058e8 authored by capossele's avatar capossele
Browse files

:sparkles: adds client-lib info

parent 7dfbf8ff
No related branches found
No related tags found
No related merge requests found
package client
import (
"net/http"
webapi_info "github.com/iotaledger/goshimmer/plugins/webapi/info"
)
const (
routeInfo = "info"
)
// Info gets the info of the node.
func (api *GoShimmerAPI) Info(knownPeers bool) (*webapi_info.Response, error) {
res := &webapi_info.Response{}
if err := api.do(http.MethodGet, func() string {
return routeInfo
}(), nil, res); err != nil {
return nil, err
}
return res, nil
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment