Bridge

Cross-chain bridging interface for transferring tokens between different blockchain networks.

Overview

The Bridge component enables users to transfer tokens across different blockchain networks. It handles network selection, token selection, amount input, and bridge execution.

Props

Props

NameTypeDefaultDescription
onSuccess(txHash: string) => void-Callback fired when bridge succeeds
onError(error: string) => void-Callback fired when bridge fails

Usage

BridgeExample.tsx
import { Bridge } from 'hyperkit';

function App() {
  return (
    <Bridge />
  );
}