Get the buying price of a certain key in BTC.
getBuyPriceAfterFeeV2
Key contract address
amountX18: amount of key buy
const { data: buyPrice }: { data: BigInt | undefined } = useContractRead({ address: user.tokenaddress as `0x${string}`, abi: TOKEN_ABI, functionName: "getBuyPriceAfterFeeV2", args: [buy*1e18/10], });
Last updated 1 year ago