Interaction of Fabric with Chaincode and Daml smart contract
App Development3 posts358 viewsLast activity Dec 2021
EN
Enthusiast-BlockOP
Dec 2021Hi Daml Team,
Suppose I have created some contracts using Daml in Fabric.
Can I query those contracts using a chaincode written using fabric-contract-api and a client application written using fabric-network and fabric-ca-client?
BE
bernhard
Dec 2021In theory yes, you can. The data is all there on the Fabric ledger. But it’s encoded in Daml’s wire format, and depending on which Daml driver for Fabric you use, the transaction payloads are encrypted so getting at the data directly is neither easy nor recommended. The well-supported way of reading Daml data from Fabric is via the Daml driver.
SH
Shaul
Dec 2021To add some color to Bernhard’s answer, this answer to another question gives some color on why we don’t recommend circumventing the supported API.