Ping Access API MethodParámetrosEste método no admite ningún parámetroDevoluciones valorcadenaCargando...Solicitud1paquete principal2 3import (4 «contexto»5 «registro»6 7 "github.com/onflow/flow/protobuf/go/flow/access"8)9 10func main() {11 12 // Requires authenticating before making the request. Refer to Intro Page on how Authentication can be done.13 client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")14 ctx := context.Background()15 si err != nil {16 log.Fatalf("err: %v", err)17 }18 // Ping19 res, err := client.Ping(ctx, &access.PingRequest{})20 si err != nil {21 log.Fatal("ping failed: ", err)22 }23 println("Ping returned", res)24}1paquete principal2 3import (4 «contexto»5 «registro»6 7 "github.com/onflow/flow/protobuf/go/flow/access"8)9 10func main() {11 12 // Requires authenticating before making the request. Refer to Intro Page on how Authentication can be done.13 client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")14 ctx := context.Background()15 si err != nil {16 log.Fatalf("err: %v", err)17 }18 // Ping19 res, err := client.Ping(ctx, &access.PingRequest{})20 si err != nil {21 log.Fatal("ping failed: ", err)22 }23 println("Ping returned", res)24}¿Aún no tienes una cuenta?Crea tu punto de conexión de Quicknode en cuestión de segundos y empieza a desarrollarEmpieza gratis