Skip to main content

Function: requireUserRef

requireUserRef(address, field): string

userRef of an address that must be there.

Parameters​

ParameterType
addressstring | undefined
fieldstring

Returns​

string

Throws​

GSwapSDKError MISSING_WALLET_ADDRESS (undefined) or INVALID_WALLET_ADDRESS; core's INVALID_ETH_USER_REF_PREFIX for eth|0x... (see userRef).