Skip to content

validateAddress

User wallet address is a unique identifier which can have account, card and a $holytag bound to it. It is alphanumeric string. Wallet address must be a valid EVM (0x..., 42 chars) or Solana (Base58, ~32–44 chars) address.

🔔

Please note! Ethereum Name Service (ENS) and Solana Name Service (SNS) domains are not supported.

Usage

typescript
const evmAddressData = await holyheldSDK.validateAddress('0x000000000000000000000000000000000000dEaD');
typescript
const solanaAddressData = await holyheldSDK.validateAddress('14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjBRRR');

Parameters

Address

Wallet address

  • Type: string
typescript
const evmAddressData = await holyheldSDK.validateAddress(
  '0x000000000000000000000000000000000000dEaD'
  );
typescript
const solanaAddressData = await holyheldSDK.validateAddress(
  '14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjBRRR'
  );

Returns

typescript
type ValidateAddressResult = {
  isTopupAllowed: boolean;
  isOnRampAllowed: boolean;
}

isTopupAllowed

Indicates if off-ramp is available at the moment for Address

  • Type: Boolean
typescript
type ValidateAddressResult = {
  isTopupAllowed: boolean; 
  isOnRampAllowed: boolean;
}

isOnRampAllowed

Indicates if on-ramp is available at the moment for Address

  • Type: Boolean
typescript
type ValidateAddressResult = {
  isTopupAllowed: boolean;
  isOnRampAllowed: boolean; 
}