Ping Access API Method
Parameters
This method does not accept any parameters
Returns
value
string
If a ping request returns an error or times out, it can be assumed that the Access API is unavailable. Otherwise the Access API is available
Request
1package main23import (4"context"5"log"67"github.com/onflow/flow/protobuf/go/flow/access"8)910func main() {1112// Requires authenticating before making the request. Refer to Intro Page on how Authentication can be done.13client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")14ctx := context.Background()15if err != null {16log.Fatalf("err: %v", err)17}18// Ping19res, err := client.Ping(ctx, &access.PingRequest{})20if err != null {21log.Fatal("ping failed: ", err)22}23println("Ping returned", res)24}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free