10
"github.com/onflow/flow/protobuf/go/flow/access"17
client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")18
ctx := context.Background()20
log.Fatalf("err: %v", err)24
address, err := hex.DecodeString("18eb4ee6b3c026d2")26
log.Fatalf("err: %v", err)28
accountLatestResp, err := client.GetAccountAtLatestBlock(ctx, &access.GetAccountAtLatestBlockRequest{Address: address})29
respJSON, err := json.Marshal(accountLatestResp)31
log.Fatalf("err: %v", err)33
fmt.Println("Get Account At Latest Block response:", string(respJSON))
10
"github.com/onflow/flow/protobuf/go/flow/access"17
client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")18
ctx := context.Background()20
log.Fatalf("err: %v", err)24
address, err := hex.DecodeString("18eb4ee6b3c026d2")26
log.Fatalf("err: %v", err)28
accountLatestResp, err := client.GetAccountAtLatestBlock(ctx, &access.GetAccountAtLatestBlockRequest{Address: address})29
respJSON, err := json.Marshal(accountLatestResp)31
log.Fatalf("err: %v", err)33
fmt.Println("Get Account At Latest Block response:", string(respJSON))