Skip to content

safe ​

Connector for Safe Apps SDK.

Import ​

ts
import { safe } from '@wagmi/vue/connectors'

Usage ​

ts
import { createConfig, http } from '@wagmi/vue'
import { mainnet, sepolia } from '@wagmi/vue/chains'
import { safe } from '@wagmi/vue/connectors'

export const config = createConfig({
  chains: [mainnet, sepolia],
  connectors: [safe()],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
  },
})

Parameters ​

ts
import { type SafeParameters } from '@wagmi/vue/connectors'

Check out the Safe docs for more info.

allowedDomains ​

RegExp[] | undefined

ts
import { safe } from '@wagmi/vue/connectors'

const connector = safe({
  allowedDomains: [/app.safe.global$/], 
})

debug ​

boolean | undefined

ts
import { safe } from '@wagmi/vue/connectors'

const connector = safe({
  debug: true, 
})

shimDisconnect ​

boolean | undefined

  • This flag simulates disconnect behavior by keeping track of connection status in storage.
  • Defaults to false.
ts
import { safe } from '@wagmi/vue/connectors'

const connector = safe({
  shimDisconnect: true, 
})

Released under the MIT License.