Plaque Price Method

The plaquePrice() is a public method that allows users to get the current TPA price.

function plaquePrice() public view (uint256)

Input & Output

This method takes no input parameters. It returns a uint256 value representing the current TPA price in wei.

Usage

To use this method in your web3 code, you can create a new instance of the StageMeta contract and call the plaquePrice() method like this:

const tpaPriceWei = await stageMetaContract.plaquePrice()
console.log("TPA Price in eth:", utils.formatEther(tpaPriceWei));

Last updated