Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Query Canton Current Ledger OffsetForum ↗

Query Canton Current Ledger Offset

App Development4 posts176 viewsLast activity Nov 2023
RA
raphson93OP
Nov 2023

Hi, is there a way to query current canton ledger offset ? (eg. From navigator, raw query to select from database)

BE
bernhard
Nov 2023

The best way is to call the getLedgerEnd gRPC API: Ledger API Reference — Daml SDK 2.7.5 documentation

RA
raphson93
Nov 2023

Hi bernhard,
Does it mean it will return null ?

BE
bernhard
Nov 2023

You are looking at the Request type. This means there are no arguments to the request. Look at the response below in your screenshot. You get back a LedgerOffset.

← Back to Discussions