Skip to main content

index/functions/backendUserRef.md

backendUserRef(value, field?): AddressFormat

The spelling the launchpad backend takes in query parameters, paths and bodies. The backend normalizes every user address it receives to its canonical form (lower case, eth| or client| prefix, no 0x; normalizeAddress of launchpad-backend-service-v3) and stores and compares that form, so this is userRef (every spelling the chain accepts, a wrong checksum refused) lower-cased: the backend's own canonical form, which it accepts on every route.

Parameters​

ParameterTypeDescription
valueunknownThe address the caller gave.
field?stringThe field name reported in the error.

Returns​

AddressFormat

eth|<40 lower-case hex> or client|<id lower-cased>.

Throws​

ValidationError INVALID_FORMAT, as userRef.