const getStartedCodeBlock = `
import { Bridge } from ‘@synapsecns/widget’
const MyApp = () => {
const web3Provider = new ethers.BrowserProvider(window.ethereum)
// If you are using ethers v5:
// const web3Provider = new ethers.providers.Web3Provider(window.ethereum, 'any')
return (
To get started, import the Widget React component into your
App. You will need a web3Provider parameter to pass to the
widget.{' '}
While this demo uses a provider from the ethers library,
the component supports any similar provider:
{getStartedCodeBlock}
Your site should now display a fully operational bridge widget integrating the routes and tokens supported by the Synapse protocol. By utilizing Synapse's multiple routers, you'll receive the best quotes for your bridging use case.
> ) }