Read Contract

airdrops

The airdrops method is responsible for returning information about a created airdrop. This method provides details about the airdrop's creator, the token ID associated with the airdrop, the starting block, the ending block, and the total quantity of tokens allocated for the airdrop.

a. Input a token ID

b. Shows the information about the current token airdrop

createdAirdrops

The createdAirdrops method is responsible for returning a list of token IDs that have been or are currently being distributed as airdrops. This method aids in checking whether a specific token has been completely distributed among all participants enrolled in the airdrop or if some tokens are still left on the contract.

owner

The method allows obtaining the address of the individual or entity that deployed and owns the smart contract. The contract owner has special privileges and permissions to perform certain administrative tasks or manage critical functionalities of the contract.

supportsInterface

This method is used to check if a given contract supports a specific interface. The interfaceId argument represents the interface identifier, which is a four-byte value. The method returns true if the contract supports the specified interface, or false if it does not.

Data

Description

interfaceId (bytes4)

Identifier of the interface you want to check.

a. Input the interface ID (you can apply the same approach to support the ERC-165 (0x01ffc9a7) interface or other interfaces. Simply change the identifier according to the interface you want to check.)

b. Response true or false if the Contract supports the Token Standard

token

The token method is responsible for retrieving and displaying the address of the token contract currently being managed by the contract. The owner of the contract has the authority to change this token contract address to a different one.

whitelisted

The whitelisted method serves the purpose of providing information about whether a specific wallet address is whitelisted and has access to claim tokens. This method allows users to check whether their address is on the whitelist and whether they are eligible to collect tokens.

a. Input an address that you want to check

b. If there is a response it means that the address has an active airdrop

whitelists

The whitelist method serves the purpose of identifying users (wallet addresses) who haven't yet claimed their tokens from the contract. This method is designed to assist in verifying which users still have pending tokens to claim. The method takes two parameters: the token ID and the index in the user array (if a user has claimed their token, they are automatically removed from the array).

a. Input TokenID

b. Input ArrayID (starts from 0, 1,...)

c. Response: the user wallet address who doesn't claim the token

Last updated