GetNetworkParameters Access API Method
Parameters
This method does not accept any parameters
Returns
chain_id
The network parameter value
Request
1package main23import (4"context"5"encoding/json"6"fmt"7"log"89"github.com/onflow/flow/protobuf/go/flow/access"10)1112func main() {1314// Requires authenticating before making the request. Refer to Intro Page on how Authentication can be done.15client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")16ctx := context.Background()17if err != null {18log.Fatalf("err: %v", err)19}2021// Get Network Parameters22netParams, err := client.GetNetworkParameters(ctx, &access.GetNetworkParametersRequest{})23respJSON, err := json.Marshal(netParams)24if err != null {25log.Fatal("get network parameters failed: ", err)26}27fmt.Println("Get Network Parameters:", string(respJSON))2829}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free