⚙️
API Docs
  • Welcome!
  • Quick Start
  • Reference
    • API Reference
      • Plaque Lookup API
      • Plaques Prepare API
      • Owner Username API
      • Featured Plaques API
      • Latest contract API
      • Plaques List API
      • Buy Plaque API
      • Stage Wallet Authentication API
      • Email Verification API
      • Request For Private Key API
      • Private Key API
      • Orders Statistics API
      • User Profile API
    • Blockchain Smart-Contract
      • Plaque Price Method
      • Check mintTranfer Method
      • MintTransfer method
      • Token Owners Method
Powered by GitBook
On this page
  • Plaque price method:
  • Check mintTransfer method:
  • MintTransfer method:
  • Token owners method:
  1. Reference

Blockchain Smart-Contract

PreviousUser Profile APINextPlaque Price Method

Last updated 1 year ago

Stage Meta TPAs smart-contract public methods documentation:

you can get our latest smart-contract details from .

Plaque price method:

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

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.

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.

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.

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.

import axios from "axios";
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
);
Latest contract API
Plaque Price Method
Check mintTranfer Method
MintTransfer method
Token Owners Method