Skip to content
Discussions/App Development/What are the allowed characters and max length for DAML Party literals/names?Forum ↗

What are the allowed characters and max length for DAML Party literals/names?

App Development4 posts676 views8 likesLast activity Oct 2025
VI
viv.diwakarOP
Apr 2020

Hi team,

When using the SDK daml ledger allocate-parties ... command, what are the permitted characters?

I know ^ is not, and gives me daml-helper: GRPCIOBadStatusCode StatusInternal (StatusDetails {unStatusDetails = "non expected character 0x5e in \"^\""}), what is the full list of allowed chars please, and max length of the Party?

Thanks,

Viv

CO
cocreature
Apr 2020

You can find this kind of information in the DAML-LF specification. For party names, the relevant part is

PartyIdString  ∈  [a-zA-Z0-9:-_ ]{1,255}

So the length is between 1 and 255 and apart from digits, upper and lowercase ascii letters you can use :, -, _ and spaces.

WA
WallaceKelly
Sep 2025

At some point, parties were updated to consist of two parts – the name (aka the party hint) and the namespace. See Maximum length of the parts of a Daml Party Id?

WA
WallaceKelly
Oct 2025

Here is a regex to validate the party name (aka wallet address):

^(?<id>[A-Za-z0-9_-]{1,185})::(?<ns>1220[a-f0-9]{64})$

https://regex101.com/r/3t6yCA/1

← Back to Discussions