# GetCheckpointObjectProof - Verify Sui Object Changes

Retrieve a v2alpha cryptographic proof showing whether a Sui checkpoint modified a specific object ID.

## Method Signature

- **Service:** `sui.rpc.v2alpha.ProofService`
- **Method:** `GetCheckpointObjectProof`
- **Type:** Unary RPC

## Request Parameters

- `object_id` (`string, required`): Object ID to prove against the checkpoint's modified-object set.
- `checkpoint` (`uint64, required`): Recent retained checkpoint sequence number for the proof.

## Request Example

```bash
grpcurl \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "object_id": "0x5",
  "checkpoint": "RECENT_CHECKPOINT"
}' \
  api-sui-mainnet-full.n.dwellir.com:443 \
  sui.rpc.v2alpha.ProofService/GetCheckpointObjectProof
```

## Response Fields

- `checkpoint_summary` (`bytes, optional`): BCS-encoded certified checkpoint summary.
- `inclusion` (`OcsInclusionProof, optional`): Object inclusion proof. Mutually exclusive with non_inclusion.
- `non_inclusion` (`OcsNonInclusionProof, optional`): Object non-inclusion proof. Mutually exclusive with inclusion.

## Successful Response

```protobuf
message GetCheckpointObjectProofResponse {
  optional bytes checkpoint_summary = 1;
  oneof proof {
    OcsInclusionProof inclusion = 2;
    OcsNonInclusionProof non_inclusion = 3;
  }
}
```

## Error Responses

### Checkpoint unavailable

- Code: `NOT_FOUND`
- Description: The checkpoint was pruned or is not yet indexed. Choose a recent checkpoint returned by GetServiceInfo.

## Usage notes

Replace `RECENT_CHECKPOINT` with a recent `checkpointHeight` from [GetServiceInfo](https://www.dwellir.com/docs/sui/grpc/ledger/get-service-info). The response contains either an inclusion or non-inclusion proof. This experimental API can change.

Historical data is limited by node retention. Check `lowest_available_checkpoint` and `lowest_available_checkpoint_objects` with [GetServiceInfo](https://www.dwellir.com/docs/sui/grpc/ledger/get-service-info). Use an archival source when data has been pruned.

## Related resources

- [Sui gRPC overview](https://www.dwellir.com/docs/sui/grpc-overview)
- [grpcurl setup](https://www.dwellir.com/docs/sui/grpc-setup-grpcurl)
