Skip to main content

Function: requireUserRef()

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / requireUserRef

Function: requireUserRef()

requireUserRef(address, field): string

Defined in: packages/gswap-sdk/dist/index.d.ts:4460

userRef of an address that must be there.

Parameters​

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).