⚙️
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
  1. Reference
  2. Blockchain Smart-Contract

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.

function tokenOwners(uint32 _plaqueId) public view returns(address[] memory)

Input & Output

  • _plaqueId: The ID of the plaque for which to retrieve the owners.

  • address[]: An array of addresses representing the owners of the plaque with the given ID.

Usage

In the example below, the tokenOwners function is called with plaque ID 1234 and returns an array of addresses representing the owners of plaque ID 1234.

const result = await stageMetaContract.tokenOwners(1234);

console.log("TPA Owners:", result);
PreviousMintTransfer method

Last updated 2 years ago