Blockchain Smart-Contract

Stage Meta TPAs smart-contract public methods documentation:

circle-check

Plaque price method:

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

Plaque Price Methodchevron-right

Check mintTransfer method:

The checkMintTransfer() is a public method that allows users to check whether the given TPA names are available for purchase or have already been minted. It takes two input parameters: _names, an array of bytes32 representing the TPA names to be checked, and _amounts, an array of uint32 representing the amount of TPAs to be checked.

Check mintTranfer Methodchevron-right

MintTransfer method:

The mintTransfer() is a payable method that allows users to buy newly minted TPAs. To use this method, you need to send plaquePrice * _names.length amount of value in Wei to this transaction as TPAs price.

MintTransfer methodchevron-right

Token owners method:

The tokenOwners() is a public method that takes a plaque ID _plaqueId as input and returns an array of addresses of token owners who own the plaque with the given ID.

Token Owners Methodchevron-right
circle-info

If you're using typescript code examples in methods page, before every example use this code here to prepare your provider to web3, ethereum wallet, smart-contract instance and abi.

Last updated