Package io.meeds.deeds.service
Class BlockchainService
- java.lang.Object
-
- io.meeds.deeds.service.BlockchainService
-
@Component public class BlockchainService extends Object
-
-
Constructor Summary
Constructors Constructor Description BlockchainService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetDeedCardType(long nftId)Retrieves from Blockchain DEED card type: - 0 : Common - 1 : Uncommon - 2 : Rare - 3 : LegendaryshortgetDeedCityIndex(long nftId)Retrieves from Blockchain DEED city index: - 0 : Tanit - 1 : Reshef - 2 : Ashtarte - 3 : Melqart - 4 : Eshmun - 5 : Kushor - 6 : HammonbooleanisDeedProvisioningManager(String address, long nftId)Retrieves from blockchain whether an address is the provisioning manager of the deed or not
-
-
-
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 checknftId- 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
-
-