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