Examples
| Chain | OmniAddress |
|---|---|
| Ethereum | eth:0x1234567890123456789012345678901234567890 |
| Base | base:0x1234567890123456789012345678901234567890 |
| Arbitrum | arb:0x1234567890123456789012345678901234567890 |
| Polygon | pol:0x1234567890123456789012345678901234567890 |
| BNB Chain | bnb:0x1234567890123456789012345678901234567890 |
| NEAR | near:alice.near |
| Solana | sol:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
| Bitcoin | btc:bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh |
| Zcash | zec:t1Rv4exT7bqhZqi2j7xz8bUHDMxwosrjADU |
Chain Prefixes
| Prefix | Chain | Chain ID (mainnet) |
|---|---|---|
eth | Ethereum | 1 |
base | Base | 8453 |
arb | Arbitrum One | 42161 |
pol | Polygon PoS | 137 |
bnb | BNB Smart Chain | 56 |
near | NEAR Protocol | — |
sol | Solana | — |
btc | Bitcoin | — |
zec | Zcash | — |
Tokens Use The Same Format
Token addresses are also OmniAddresses:Native Tokens
For native tokens (ETH, SOL, etc.), use the zero address or default representation:| Chain | Native Token Address |
|---|---|
| EVM chains | eth:0x0000000000000000000000000000000000000000 |
| Solana | sol:11111111111111111111111111111111 |
Utility Functions
The SDK provides helpers for working with OmniAddresses:ChainKind Enum
For programmatic use, the SDK provides aChainKind enum:
Validation
validateTransfer() automatically validates addresses. Invalid addresses throw a ValidationError: