Smart Contract Interactions

The SDK provides methods to interact with the underlying smart contracts:

const didContract = axesConnect.contracts.getDIDManagement();

// Check if a TBA exists
const tbaExists = await didContract.methods.tbaExists(userAddress).call();

// Verify DID ownership
const isOwner = await didContract.methods.verifyDIDOwnership(tokenId, tokenContract, did).call();

Last updated