Function: backendUserRef()
Gala Launchpad SDK 9.0.0-rc.5 / index / backendUserRef
Function: backendUserRef()
backendUserRef(
value,field?):AddressFormat
Defined in: packages/launchpad-sdk/dist/utils/address-formatter.d.ts:64
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
value
unknown
The address the caller gave.
field?
string
The field name reported in the error.
Returns
AddressFormat
eth|<40 lower-case hex> or client|<id lower-cased>.
Throws
ValidationError INVALID_FORMAT, as userRef.