Delegate your wallet interaction to another frame
npm install @synaps-io/web3-provider
yarn add @synaps-io/web3-provider
import { installProviderProxyFor, BRAVE } from '@synaps-io/web3-provider'
import { getRemoteProviderWhen, BRAVE } from '@synaps-io/web3-provider'
const uninstallProviderProxy = installProviderProxyFor(wallets=[BRAVE], target=YOUR_WINDOW, targetUrl=YOUR_WINDOW_URL)
const provider = new ethers.providers.Web3Provider(await getRemoteProviderWhen(wallets=[BRAVE]))
Allows to set up the receiver of the interactions with the Wallet according to the criterion Wallet
const uninstallProviderProxy = installProviderProxyFor(wallets=[BRAVE], target=YOUR_WINDOW, targetUrl=YOUR_WINDOW_URL)
it allows to have the remoteProvider if the wallet criterion and the page criterion an iframe or not are respected or it returns the default provider window.ethereum
const provider = new ethers.providers.Web3Provider(await getRemoteProviderWhen(wallets=[BRAVE]))
Web3 Provider which allows to transfer the interactions to another frame
const provider = new ethers.providers.Web3Provider(new RemoteProvider(target=WINDOW_FRAME, targetUrl=WINDOW_FRAME_URL))
Allows to set up the receiver of the interactions with the Wallet
const uninstallProviderProxy = installProviderProxy(target=YOUR_WINDOW, targetUrl=YOUR_WINDOW_URL)
MIT © Synaps
Synaps is an all-in-one compliance platform. It offers a simple, fast and secure way to meet compliance requirements at scale.