Skip to content

dex.useWatchOrderPlaced

Watches for order placed events on the Stablecoin DEX.

Usage

ts
import { 
Hooks
} from 'wagmi/tempo'
Hooks
.
dex
.
useWatchOrderPlaced
({
onOrderPlaced
: (
args
,
log
) => {
console
.
log
('args:',
args
)
}, })
ts
import { createConfig, http } from 'wagmi'
import { tempoTestnet } from 'wagmi/chains'
import { KeyManager, webAuthn } from 'wagmi/tempo'

export const config = createConfig({
  connectors: [
    webAuthn({
      keyManager: KeyManager.localStorage(),
    }),
  ],
  chains: [tempoTestnet],
  multiInjectedProviderDiscovery: false,
  transports: {
    [tempoTestnet.id]: http(),
  },
})

Parameters

See Wagmi Action dex.watchOrderPlaced Parameters

config

Config | undefined

Config to use instead of retrieving from the nearest WagmiProvider.

Action

Released under the MIT License.