Exemplo n.º 1
0
func InspectBlock(apiClient drive.APIClient, hash string) (*drive.BlockInfo, error) {
	blockInfo, err := apiClient.InspectBlock(
		context.Background(),
		&drive.InspectBlockRequest{
			Block: &drive.Block{
				Hash: hash,
			},
		},
	)
	if err != nil {
		return nil, err
	}
	return blockInfo, nil
}