const recommendedParametersCodeBlock = ` import { Bridge, CustomRpcs } from ‘@synapsecns/widget’ const customRpcs: CustomRpcs = { 1: 'https://ethereum.my-custom-rpc.com', 10: 'https://optimism.my-custom-rpc.com', 42161: 'https://arbitrum.my-custom-rpc.com', } const MyApp = () => { const web3Provider = new ethers.BrowserProvider(window.ethereum) return ( ) } ` export const RecommendedParameters = () => { return ( <>

The Bridge widget is a React component designed for straightforward integration into any React-based project. Apart from a web3Provider, it requires no initial parameters or web3 setup to begin operation. The widget bridges across all networks where the Synapse Protocol is active.

While the widget is provides basic primary and fallback JSON-RPC endpoints, we encourage developers to specify their own for enhanced performance. This is done through a customRpcs parameter object with chain ID keys and associated RPC endpoint values.

{recommendedParametersCodeBlock}
) }