Interface.IDppService
Digital Product Passport (DPP) operations.
Provides methods to retrieve product information and claim DPPs on the blockchain. All claim operations return a transaction hash that can be used to track the on-chain transaction status.
Example
// Retrieve a product sheet
const productSheet = await dppService.getProductSheet("prod_123");
console.log(productSheet.name, productSheet.description);
// Claim a DPP with explicit product sheet and DPP IDs
const { transactionHash } = await dppService.claim("prod_123", "dpp_456");
console.log("Transaction:", transactionHash);
// Claim a DPP using a magic token (single-use claim link)
const result = await dppService.magicClaim("prod_123", "magic_xyz");