Skip to content

Commit

Permalink
Add get network info for datalayer (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Jan 28, 2025
1 parent 2402595 commit 4cb987d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/rpc/datalayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func (s *DataLayerService) GetClient() rpcinterface.Client {
return s.client
}

// GetNetworkInfo gets the network name and prefix from the full node
func (s *DataLayerService) GetNetworkInfo(opts *GetNetworkInfoOptions) (*GetNetworkInfoResponse, *http.Response, error) {
return Do(s, "get_network_info", opts, &GetNetworkInfoResponse{})
}

// GetVersion returns the application version for the service
func (s *DataLayerService) GetVersion(opts *GetVersionOptions) (*GetVersionResponse, *http.Response, error) {
return Do(s, "get_version", opts, &GetVersionResponse{})
Expand Down

0 comments on commit 4cb987d

Please sign in to comment.