Wrap the window.ethereum with the Sapphire encryption layer. Used to provide encrypted transactions and calldata to Wagmi browser dApps.
window.ethereum
import { injectedWithSapphire } from '@oasisprotocol/sapphire-wagmi-v2'; export const config = createConfig({ connectors: [ injectedWithSapphire() ], ... }); Copy
import { injectedWithSapphire } from '@oasisprotocol/sapphire-wagmi-v2'; export const config = createConfig({ connectors: [ injectedWithSapphire() ], ... });
Same as injected()
Wrap the
window.ethereum
with the Sapphire encryption layer. Used to provide encrypted transactions and calldata to Wagmi browser dApps.