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