nexus-sdk-bridge-flows
Installation
SKILL.md
Bridge and Execute Flows
Call bridge(params, options?)
- Use to move tokens cross-chain (intent-based bridge).
- Signature:
sdk.bridge(params, { onEvent? })
- Params (
BridgeParams):token: string— token symbol (e.g., "ETH", "USDC")amount: bigint— smallest unitstoChainId: number— destination chain idrecipient?: Hex— defaults to connected user addressgas?: bigint— optional native gas to deliver on destinationsourceChains?: number[]— restrict source chains
- Result (
BridgeResult):explorerUrl: stringsourceTxs: { chain, hash, explorerUrl }[]intent: ReadableIntent