GroupTokens
The ERC-20 token that controls a Group / Space and owned by a single user.
Last updated
The ERC-20 token that controls a Group / Space and owned by a single user.
Last updated
This documentation provides the information needed to interact with the GroupTokens Smart Contract deployed on the Polygon Network. This smart contract is an upgradeable ERC721 token contract, designed to allow the minting and managing of unique group tokens, or Spaces.
Gets a group ID from a group name.
Input
groupName
string
The name of the group
Returns
uint256
integer
The unique ID of the group
Example with ethers.js
Checks if a group is available to mint.
Input
groupName
string
The name of the group
Returns
bool
boolean
True if the group is available to mint, false if it's already minted
Example with ethers.js
Mints a group / Space.
Input
groupName
string
The name of the group
Example with ethers.js
Gets the token metadata.
Input
_tokenID
uint256
The unique Group ID
Returns
string
string
The unique metadata of the group
Example with ethers.js
Adds MultiSig Address Locking for Transfers. After adding, the address used for multi-sig must call activateMultiSigLock() to activate it.
Input
tokenID
uint256
The token ID to lock with the multi-sig address
multiSigAddress
address
The wallet address to be used to lock the token with
Example with ethers.js
Activates Multi Sig lock from address added to token. This is done to ensure Multi Sig Address is correct before locking.
Input
tokenID
uint256
The token ID to lock with the multi-sig address
Example with ethers.js
Removes MultiSig Lock From Token Transfer. Must be called by the address that was setup to lock the token.
Input
tokenID
uint256
The token ID to unlock with the multi-sig address
Example with ethers.js
Checks if token is locked. Returns 0x0 if not locked.
Input
tokenID
uint256
The token ID to return the multi-sig address for
Returns
address
address
The wallet address used to lock the token from transfer
Example with ethers.js
Checks if token is locked.
Input
tokenID
uint256
The token ID to return the multi-sig address for
Returns
bool[2]
boolean[2]
0 = True / False if locked, 1 = True / False if Locking Address Added
Example with ethers.js