Skip to content

dangerous_secp256k1

Connector for a Secp256k1 EOA.

WARNING

NOT RECOMMENDED FOR PRODUCTION USAGE. This connector stores private keys in clear text, and are bound to the session length of the storage used. Instead, use this connector for testing workflows, like end-to-end tests.

Usage

wagmi.config.ts
ts
import { createConfig, http } from 'wagmi'
import { tempoTestnet } from 'wagmi/chains'
import { dangerous_secp256k1 } from 'wagmi/tempo'

export const config = createConfig({
  connectors: [dangerous_secp256k1()], 
  chains: [tempoTestnet],
  multiInjectedProviderDiscovery: false,
  transports: {
    [tempo.id]: http(),
  },
})

Parameters

account

  • Type: LocalAccount

Optional account to use with connector. If not provided, one is created internally for you.

Released under the MIT License.