> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dzap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Address validators

> Ecosystem-aware address checks from @dzapio/wallet/validators without the React wallet UI.

Import from the `/validators` entry. It does not pull in the React wallet UI, so it is safe on the server or in non-React code.

```ts theme={null}
import {
  ChainTypes,
  validateAddressByChainId,
  validateAddressByChainType,
  getChainTypeFromChainId,
} from '@dzapio/wallet/validators';

validateAddressByChainType({ address: '0x…', chainType: 'evm' });
validateAddressByChainType({ address: '0x…', chainType: ChainTypes.evm });
validateAddressByChainId({ address: 'So111…', chainId: 7565164 });
getChainTypeFromChainId(42161); // 'evm'
```

| Function                                             | Returns     |
| ---------------------------------------------------- | ----------- |
| `validateAddressByChainType({ address, chainType })` | `boolean`   |
| `validateAddressByChainId({ address, chainId })`     | `boolean`   |
| `getChainTypeFromChainId(chainId)`                   | `ChainType` |

Supported `chainType` values include `evm`, `svm` (Solana), `bvm` / `bvmTestnet` (Bitcoin), `suivm`, `tronvm`, `tonvm`, and `aptosvm`. Unknown types return `false`.
