Automating DAML Applications with Python-based DAZL Bots

Automating DAML Applications with Python-based DAZL Bots


NashTech added support for third-party APIs by creating bots that listen to external activity.

DAML (Digital Asset Modeling Language) has emerged as a promising technology to achieve excellence in Blockchain. It’s an open-source programming language used to write full-stack, smart contract-based distributed applications quickly, concisely, and correctly. Notably, the system’s design is so that machines and humans can understand the information included in the contract. It is functional as it derives experience from Haskell and was designed for distributed business workflows. It helps a developer to focus more on programming the business processes by cutting down the amount of time the developer would spend on dealing with encryption and blockchain.

The challenge

Why do we need bots ?

DAML is a great programming language but is still new and under development. Sometimes, developers need to automate processes like generating action in response to a certain event (an incoming transaction, for instance). Let’s suppose, we want to automatically create a new contract in DAML after another contract is created. Right now, this is not possible to accomplish with just DAML itself as DAML Trigger is still under development. We need bots for this purpose which is basically an abstraction to create an automation for a DAML Ledger.

The solution

How does DAZL solve the problem?
DAZL is an amazing Python library provided by Digital Asset. It provides several functions that enable the automation on the Ledger as it provides event listeners for the same. Suppose you want to run a certain piece of code after the execution of events related to contracts, like creation, archival, or exercise of choice, then it can easily be done using the DAZL Library.


The outcome 

DAZL is an open-source project. You can find source code here:

Read more case studies

Modernising legacy systems and driving efficiencies through partnership with RPS

Explore how NashTech help RPS modernise legacy systems and drive efficiencies through partnership

Supporting digital shelf analytics and unlocking eCommerce growth

Explore how NashTech help the digital shelf analytics and unlock growth with a world leading data insights and eCommerce solutions provider.

How THE OUT is disrupting the premium car rental industry

By working closely and collaboratively with the NashTech development team in Vietnam, they were able to build a high quality, digital first, luxury rental car service. Looking ahead into the future,...


Let's talk about your project

Our partnerships

Scroll to Top
Join the conversation and gain invaluable insights!
How Enterprises Can Leverage Cloud for Business Growth?
Unlock the power of knowledge with our new whitepaper
“Elevating User Experience for Product Owners”