github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/access/rest/routes/network.go (about) 1 package routes 2 3 import ( 4 "github.com/onflow/flow-go/access" 5 "github.com/onflow/flow-go/engine/access/rest/models" 6 "github.com/onflow/flow-go/engine/access/rest/request" 7 ) 8 9 // GetNetworkParameters returns network-wide parameters of the blockchain 10 func GetNetworkParameters(r *request.Request, backend access.API, _ models.LinkGenerator) (interface{}, error) { 11 params := backend.GetNetworkParameters(r.Context()) 12 13 var response models.NetworkParameters 14 response.Build(¶ms) 15 return response, nil 16 }