> ## Documentation Index
> Fetch the complete documentation index at: https://docs.silvana.one/llms.txt
> Use this file to discover all available pages before exploring further.

# GetSettlementContracts

> Discover on-chain DvpProposal and Dvp contracts for active settlements

Look up on-chain `DvpProposal` and `Dvp` contracts for a given list of settlement IDs. Use it to discover the state of active settlements before proposing, accepting, or allocating.

## Request

**settlement\_ids** `string[]` *required*

Settlement identifiers to look up.

```proto theme={null}
message GetSettlementContractsRequest {
  repeated string settlement_ids = 1;
}
```

## Response

**contracts** `DiscoveredContract[]`

Matching DvP-related contracts, each with contract ID, template ID, and payload.

## Example

```bash theme={null}
grpcurl -d '{"settlement_ids": ["sett-123"]}' \
  orderbook-devnet.silvana.dev:443 \
  silvana.ledger.v1.DAppProviderService/GetSettlementContracts
```

## DvP flow

`GetSettlementContracts` is typically called by the counterparty before [`AcceptDvp`](https://docs.silvana.one/agentic-api/dvp/accept-dvp), and by the proposer before [`Allocate`](https://docs.silvana.one/agentic-api/dvp/allocate), to discover the relevant contract IDs.

**Full sequence**: [PayDvpFee](https://docs.silvana.one/agentic-api/dvp/pay-dvp-fee.md) → [ProposeDvp](https://docs.silvana.one/agentic-api/dvp/propose-dvp.md) → [AcceptDvp](https://docs.silvana.one/agentic-api/dvp/accept-dvp.md) → [PayAllocFee](https://docs.silvana.one/agentic-api/dvp/pay-alloc-fee.md) → [Allocate](https://docs.silvana.one/agentic-api/dvp/allocate.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.