Skip to content

dex.useOrder

Gets an order's details from the Stablecoin DEX orderbook.

Usage

ts
import {  } from 'wagmi/tempo'

const { :  } = ..({
  : 123n,
})

.('Order details:', )
Order details: { amount: 100000000n, maker: '0x...', isBid: true, ... }
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(),
  },
})

Return Type

See TanStack Query query docs for more info hook return types.

data

See Wagmi Action dex.getOrder Return Type

Parameters

See Wagmi Action dex.getOrder Parameters

query

See the TanStack Query query docs for more info hook parameters.

Action

Released under the MIT License.