Skip to content
CCPEDIAby Unity Nodes
App Development

Interaction of Fabric with Chaincode and Daml smart contract

3 posts390 viewsLast activity Dec 2021

  1. Enthusiast-BlockOP

    Hi 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?

  2. bernhard

    In 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.

  3. Shaul

    To 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.