tempoWallet
Connector for the Tempo Wallet dialog.
Import
ts
import { tempoWallet } from 'wagmi/connectors'Install
bash
pnpm add accounts@catalog:bash
npm install accounts@catalog:bash
yarn add accounts@catalog:bash
bun add accounts@catalog:Usage
ts
import { createConfig, http } from 'wagmi'
import { tempo } from 'wagmi/chains'
import { tempoWallet } from 'wagmi/connectors'
export const config = createConfig({
chains: [tempo],
connectors: [tempoWallet()],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
},
})tempoWallet is a thin Wagmi wrapper around the accounts dialog adapter.
Parameters
ts
import { type TempoWalletParameters } from 'wagmi/connectors'tempoWallet accepts the Tempo Accounts dialog parameters together with provider options like authorizeAccessKey.
host (optional)
string
Override the Tempo Wallet dialog host.
ts
import { tempoWallet } from 'wagmi/connectors'
const connector = tempoWallet({
host: 'https://wallet.tempo.xyz',
})dialog (optional)
Window | HTMLElement | ShadowRoot | string
Override where the dialog mounts.
ts
import { tempoWallet } from 'wagmi/connectors'
const connector = tempoWallet({
dialog: '#tempo-wallet-root',
})icon (optional)
`data:image/${string}`
Optional connector icon override.
ts
import { tempoWallet } from 'wagmi/connectors'
const connector = tempoWallet({
icon: 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"></svg>',
})name (optional)
string
Optional connector display name.
ts
import { tempoWallet } from 'wagmi/connectors'
const connector = tempoWallet({
name: 'My Tempo Wallet',
})rdns (optional)
string
Optional reverse-DNS identifier.
ts
import { tempoWallet } from 'wagmi/connectors'
const connector = tempoWallet({
rdns: 'com.example.tempo-wallet',
})authorizeAccessKey (optional)
() => { expiry: number, ... }
Default access-key authorization parameters to attach to wallet_connect.
ts
import { tempoWallet } from 'wagmi/connectors'
const connector = tempoWallet({
authorizeAccessKey() {
return {
expiry: 60 * 60,
}
},
})See the Accounts SDK docs for more info on Tempo Wallet flows and access-key authorization.