How can I get the Global Synchronizer Id programmatically?
The Scan Proxy API has an /v0/scan-proxy/dso endpoint which returns the “DSO rules.” The domain id of the DSO rules will always be the Global Synchronizer Id.
curl --silent \
http://wallet.localhost:2000/api/validator/v0/scan-proxy/dso \
--header 'Authorization: Bearer eyJhbGciOi...' \
| jq --raw-output '.dso_rules.domain_id'
global-domain::1220b0a0...
1 Like