Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.slice.so/llms.txt

Use this file to discover all available pages before exploring further.

Usage

import { usePriceRecap } from "@slicekit/react"

const { data: totalPrices } = usePriceRecap({
  ethUsd
})

Parameters

ethUsd
bigint
required
Current ETH to USD rate, with 6 decimal places.

Return Type

totalEthPrice
bigint
Total price in ETH.
totalUsdcPrice
bigint
Total price in USDC.
subtotalEth
bigint
Subtotal price in ETH.
subtotalUsdc
bigint
Subtotal price in USDC.