Smart Contract Integration

The smart contract (ZKMEVerifyUpgradeable) is used for eligibility checks. verify function provides yes/no answers to a list of predetermined eligibility questions for each credential verified, hasApproved function provides information on whether the user has authorized the SBT.

View Methods

verify()

This method is used to determine if a user satisfies the kyc problem set before the user authorizes SBT to you.

    function verify(
        address cooperator,
        address user
    ) public view returns (bool)

Parameters

NameTypeRequiredDescription

cooperator

address

Yes

DApp account

user

address

Yes

User's wallet address

Note:

You can get cooperator (DApp account) after finish the integration setting on zkMe Dashboard.

hasApproved()

This method is used to detect if this user authorizes SBT to you.

function hasApproved(
    address cooperator, 
    address user
) public view returns (bool)

Parameters

NameTypeRequiredDescription

cooperator

address

Yes

DApp account

user

address

Yes

User's wallet address

Resources

Contract Address

Please check here.

ABI

You can download the following file or install it from npm.

Last updated