Skip to content

Simple Bridge - React

The SilentSwap React SDK provides specialized hooks for implementing non-hidden cross-chain swaps (Simple Bridge) in your applications. These hooks handle the complexities of quoting, chain switching, and transaction execution.

Overview

The Simple Bridge functionality is ideal for users who want to move assets between chains without the overhead of private pools. It uses top-tier bridge providers like Relay.link and deBridge.

Core Hooks

  • useQuote: Fetch and compare bridge quotes from multiple providers to find the best rate.
  • useTransaction: Execute the bridge transaction, including token approvals and chain switching.

Installation

Ensure you have the React SDK and its dependencies installed:

pnpm add @silentswap/react @silentswap/sdk viem wagmi @tanstack/react-query

Next Steps