Skip to main content
Server-streaming RPC. Streams all active Daml contracts currently visible to the authenticated party, one contract per message. Results can be narrowed down with a template_filters list.

Request

template_filters
string[]
Optional list of Daml template identifiers to filter by. Leave empty to stream everything visible to the caller.
message GetActiveContractsRequest {
  repeated string template_filters = 1;
}

Response

Stream of GetActiveContractsResponse:
message GetActiveContractsResponse {
  ActiveContractInfo contract = 1;
}
Each ActiveContractInfo contains the contract ID, template ID, and serialised payload.

Example

grpcurl -d '{"template_filters": []}' \
  rpc-devnet.modo-api.app:443 \
  silvana.ledger.v1.DAppProviderService/GetActiveContracts

See also

  • GetUpdates — stream future ledger updates instead of the current snapshot.
  • GetSettlementContracts — narrow lookup for DvP-related contracts by settlement ID.
  • GetPreapprovals — narrow lookup for active TransferPreapproval contracts.
  • AcceptCip56 — common consumer of CIP-56 TransferOffer contract IDs discovered here.