Function: requireUserRef
requireUserRef(
address,field):string
userRef of an address that must be there.
Parameters
| Parameter | Type |
|---|---|
address | string | undefined |
field | string |
Returns
string
Throws
GSwapSDKError MISSING_WALLET_ADDRESS (undefined) or INVALID_WALLET_ADDRESS; core's
INVALID_ETH_USER_REF_PREFIX for eth|0x... (see userRef).
missing wallet address invalid eth user ref prefix