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);

Last updated