Class BlockchainService


  • @Component
    public class BlockchainService
    extends Object
    • Constructor Detail

      • BlockchainService

        public BlockchainService()
    • Method Detail

      • isDeedProvisioningManager

        public boolean isDeedProvisioningManager​(String address,
                                                 long nftId)
        Retrieves from blockchain whether an address is the provisioning manager of the deed or not
        Parameters:
        address - Ethereum address to check
        nftId - Deed NFT identifier
        Returns:
        true if is manager else false
      • getDeedCardType

        public short getDeedCardType​(long nftId)
        Retrieves from Blockchain DEED card type: - 0 : Common - 1 : Uncommon - 2 : Rare - 3 : Legendary
        Parameters:
        nftId - Deed NFT identifier
        Returns:
        card type index
      • getDeedCityIndex

        public short getDeedCityIndex​(long nftId)
        Retrieves from Blockchain DEED city index: - 0 : Tanit - 1 : Reshef - 2 : Ashtarte - 3 : Melqart - 4 : Eshmun - 5 : Kushor - 6 : Hammon
        Parameters:
        nftId - Deed NFT identifier
        Returns:
        card city index