Skip to content
CCPEDIAby Unity Nodes
App Development

Hyphen or dash in participant names in Canton Console?

2 posts63 views1 likesLast activity Oct 2025

  1. WallaceKellyOP

    When 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?

  2. WallaceKelly 1

    Wrap the name in backticks:

    @ `app-user`.health.status
    
    res15: NodeStatus[ParticipantStatus] = Participant id: PAR::participant::1220f...63e6
    Uptime: 8h 26m 47.569189s
            :