Properties
walletClientName
walletClientName: string
Methods
getAssetMap
- getAssetMap(): Promise<IResolvedClientAssetMap>
-
Returns Promise<IResolvedClientAssetMap>
isCruxIDAvailable
- isCruxIDAvailable(cruxIDSubdomain: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
putAddressMap
-
Parameters
Returns Promise<object>
registerCruxID
- registerCruxID(cruxIDSubdomain: string): Promise<void>
-
Parameters
Returns Promise<void>
resolveCurrencyAddressForCruxID
- resolveCurrencyAddressForCruxID(fullCruxID: string, walletCurrencySymbol: string): Promise<IAddress>
-
Parameters
-
fullCruxID: string
-
walletCurrencySymbol: string
Returns Promise<IAddress>
Static validateCruxIDByWallet
- validateCruxIDByWallet(walletClientName: string, cruxIDString: string): void
-
Parameters
-
walletClientName: string
-
cruxIDString: string
Returns void
const sampleAddressMap: IAddressMapping = { 'BTC': { addressHash: '1F1tAaz5x1HUXrCNLbtMDqcw6o5GNn4xqX' }, 'ETH': { addressHash: '0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8' }, } // Advised to pipe the method putAddressMap to registerCruxID call await cruxClient.registerCruxID("bob") .then(() => { return cruxClient.putAddressMap(sampleAddressMap) .catch((addressUpdationError) => { // Handling addressUpdation error }) }) .catch((registrationError) => { // Handling registration error })