Read Contract
Link to the Smart Contract:
getReferral
The getReferral method is responsible for returning the upline address (referrer) for a given address within the referral system.
a. Input Address
b. Responses upline referral
getReferralContractDeposits
The getReferralContractDeposits function is used to retrieve information about deposits related to the referral system for a specified contract address and referrer address. The function is public and read-only. The function returns an array of ReferralDeposits[] containing information about the deposits made by the referrer associated with the given contract address.
a. The address of the referrer.
b. The address of the contract for which referral deposits are being retrieved.
c. An array containing information about referral deposits made by the specified referrer for the given contract address.
getReferralContractEearnings
The getReferralContractEearnings function is used to retrieve information about earnings from the referral system for a specified contract address and referrer address. The function is public and read-only. The function returns earnings information from the referral system, including the total earnings (all), earnings at level 1 (level1), earnings at level 2 (level2), and earnings at level 3 (level3) for the specified referrer address associated with the given contract address.a. The address of the referrer.b. The address of the contract for which referral earnings information is being retrieved.c. Total earnings from referrals for the specified referrer and contract address.
a. The address of the referrer.
b. The address of the contract for which referral earnings information is being retrieved.
c. Total earnings from referrals for the specified referrer and contract address.
getReferralDeposits
The getReferralDeposits method is responsible for returning the referral history for a given address. It provides information about referrals, including the contract address, token amount, ID number, buyer's address, purchased token quantity, and equivalent value received through the referral.
a. Input address
b. Shows the history of an address referral earnings
getReferralEarnings
The getReferralEarnings method is responsible for calculating and returning the total earnings generated by the referral system for specific levels.a. Input addressb. Shows the Earning, of the referral levels
a. Input address
b. Shows the Earning, of the referral levels
getReferralStructure
The getReferralStructure method is responsible for providing a detailed referral structure for each level, including the wallet address associated with each level
a. Input address
b. Shows the User Structure of Referrals
isAdmin
The isAdmin method serves to verify whether the given address possesses administrative permissions. The method returns a boolean value, where true indicates that the address has admin privileges, and false indicates the absence of such privileges.
a. Input address
b. Return True or False
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.
referralStructure
The referralStructure method is responsible for retrieving the upline address of a referral within the referral structure.
a. Input address
b. Shows the upline Referrer address
referredCount
The referredCount method is responsible for retrieving the count of individuals registered in both the downline and upline for a given user.
a. Input address
b. Shows the Count of the referral structure of an address
Last updated