Is it possible to access/read data from an external source/URL using DAML? if yes then does it use REST API to do so?
Hi @Iqra_Mustafa1, from within Daml you can only interact with the ledger so it’s not possible to interact with external rest APIs. This is crucial because Daml execution needs to be fully deterministic so different participants can verify the result. If we allowed for interacting with external APIs that API could report a different result every time we call it which makes it impossible to validate execution.
If you do need to interact with external APIs, you can build a client application that on the one hand interacts with your REST API and on the other hand interacts with the ledger either via the HTTP JSON API or the gRPC API.