Get Selling Price

Get the selling price of a certain key in BTC.

Contract function

getSellPriceAfterFeeV2

Contract address

Key contract address

Parameters

amountX18: amount of key buy

Sample code

const { data: sellPrice }: { data: BigInt | undefined } = useContractRead({
    address: user.tokenaddress as `0x${string}`,
    abi: TOKEN_ABI,
    functionName: "getSellPriceAfterFeeV2",
    args: [sell*1e18],
  });

Last updated