func InspectBlock(apiClient pfs.ApiClient, hash string) (*pfs.BlockInfo, error) { blockInfo, err := apiClient.InspectBlock( context.Background(), &pfs.InspectBlockRequest{ Block: &pfs.Block{ Hash: hash, }, }, ) if err != nil { return nil, err } return blockInfo, nil }