account.checkUsername #

Validates a username and checks availability.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.checkUsername#2714d86c username:string = Bool;

Parameters #

NameTypeDescription
usernamestringusername
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters.

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400USERNAME_INVALIDThe provided username is not valid.
400USERNAME_OCCUPIEDThe provided username is already occupied.
400USERNAME_PURCHASE_AVAILABLEThe specified username can be purchased on https://fragment.com.