Overview
Starkzap supports deposit bridging into Starknet from supported external chains:- Ethereum (Canonical, CCTP, OFT, OFT-migrated routes)
- Solana (Hyperlane routes)
- Configure the SDK (including optional bridging config)
- Fetch bridgeable tokens with
sdk.getBridgingTokens(...) - Connect an external wallet (
ConnectedEthereumWalletorConnectedSolanaWallet) - Inspect balance, allowance, and estimated fees
- Call
wallet.deposit(...)to submit the source-chain transaction
Current wallet bridge APIs are for external chain → Starknet deposits. Outbound Starknet → external bridge flows are not exposed through this API surface.
Install Optional Dependencies
Install only what you use. For Ethereum routes:SDK Configuration
Usebridging config when you need custom external RPCs or OFT support.
The SDK uses external RPCs to read source-chain state (balances/allowances), estimate bridge fees, and submit source-chain transactions reliably. Without explicit RPC URLs, these operations can be rate-limited or unavailable depending on your environment:
Fetch Bridgeable Tokens
Connect External Wallets
Take a look at the Examples. For WalletConnect setup details, see WalletConnect Docs. In practice, you establish the external wallet session first (for example with WalletConnect), then pass its provider/account/chain intoConnectedEthereumWallet.from(...) or ConnectedSolanaWallet.from(...) for bridge calls.
Ethereum (EIP-1193)
Solana
Estimate and Deposit
Protocol Notes
| Protocol | Chain | Notes |
|---|---|---|
canonical | Ethereum | Standard bridge flow; approval may be required for ERC20 tokens. |
cctp | Ethereum | Supports fastTransfer; fee estimate includes CCTP fast transfer bp fee. |
oft / oft-migrated | Ethereum | Requires bridging.layerZeroApiKey; mainnet-only route availability. |
hyperlane | Solana | Requires Solana + Hyperlane optional dependencies. |
Common Errors
- Chain mismatch: token source chain and connected external wallet chain must match.
- Missing LayerZero key: OFT routes require
bridging.layerZeroApiKey. - Unsupported chain pair: Ethereum mainnet must pair with Starknet mainnet; testnet pairings must match.
Next Steps
- Configuration — full
SDKConfigoptions - API Reference — exact method signatures
- Examples — web example with bridge UI flow