# Blockchain Smart-Contract

Stage Meta TPAs smart-contract public methods documentation:

{% hint style="success" %}
you can get our latest smart-contract details from [`Latest contract API`](/reference/api-reference/latest-contract-api.md).
{% endhint %}

## Plaque price method:

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

{% content-ref url="/pages/1IPFKesRpHmgyMlKfSB6" %}
[Plaque Price Method](/reference/blockchain-smart-contract/plaque-price-method.md)
{% endcontent-ref %}

## 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.

{% content-ref url="/pages/LZd1ITw3jN1F773uoclY" %}
[Check mintTranfer Method](/reference/blockchain-smart-contract/check-minttranfer-method.md)
{% endcontent-ref %}

## 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.

{% content-ref url="/pages/Oaz09GkYo7leW0Iw548U" %}
[MintTransfer method](/reference/blockchain-smart-contract/minttransfer-method.md)
{% endcontent-ref %}

## 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.

{% content-ref url="/pages/NZZ2MnRQqJXUWkrzCA6y" %}
[Token Owners Method](/reference/blockchain-smart-contract/token-owners-method.md)
{% endcontent-ref %}

{% hint style="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.
{% endhint %}

<pre class="language-typescript"><code class="lang-typescript"><strong>import axios from "axios";
</strong>import { ethers, providers, utils } from "ethers";

const provider = new providers.WebSocketProvider(
    "wss://eth-sepolia.g.alchemy.com/v2/ATnZ4...." // provider
);

const signer = new ethers.Wallet(
  "aab5433a31f1bb3e...", // your ethereum wallet private key
  provider
);

const res = await axios.get(
  "https://cdn.stagemeta.dev/contracts/2.0.0.json" // StageMeta smart-contract contract abi
);
const abi = JSON.stringify(res.data);
const inter = new utils.Interface(abi);

const stageMetaContract = new ethers.Contract(
  "0x4b39ceb401769e3e...", // StageMeta smart-contract address
  abi,
  signer
);
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.stagemeta.world/reference/blockchain-smart-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
