Hyphen or dash in participant names in Canton Console?
App Development2 posts32 views1 likesLast activity Oct 2025
WA
WallaceKellyOP
Oct 2025When using the Canton Console, I can list the names of the participants:
@ participants.remote
res10: Seq[com.digitalasset.canton.console.RemoteParticipantReference] =
List(
Participant 'app-provider',
Participant 'sv',
Participant 'app-user'
)
I can check the health of the participants using their name as a convenient alias:
@ sv.health.status
res14: NodeStatus[ParticipantStatus] = Participant id: PAR::sv::1220e...fbd6
Uptime: 8h 24m 45.80294s
:
But, if the participant name has a hyphen, the Scala interpreter does not like it:
@ app-user.health.status
cmd15.sc:1: not found: value app
val res15 = app-user.health.status
^
Compilation Failed
What do I do?
WA
WallaceKelly
Oct 2025Wrap the name in backticks:
@ `app-user`.health.status
res15: NodeStatus[ParticipantStatus] = Participant id: PAR::participant::1220f...63e6
Uptime: 8h 26m 47.569189s
: