Skip to content

dex.useTickLevel

Gets the tick level information at a specific tick on the Stablecoin DEX orderbook.

Usage

ts
import {  } from 'wagmi/tempo'
import {  } from 'viem/tempo'

const { :  } = ..({
  : '0x20c0000000000000000000000000000000000001',
  : .('1.001'),
  : true,
})

.('Tick level:', )
Tick level: { head: 1n, tail: 5n, totalLiquidity: 1000000000n }
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.getTickLevel Return Type

Parameters

See Wagmi Action dex.getTickLevel Parameters

query

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

Action

Released under the MIT License.