Use CLB with Atlas

Using CLB with Atlas

This page gives an overview of how CLB can be used together with Atlas (opens in a new tab).

CLB low-level API works with serialized transactions. If your project can produce them somehow you can use them directly. But if not – you need some off-chain machinery to build them. This is a non-trivial task which is rather expensive to be done twice. This is why we decided to get rid of the old custom PSM machinery for transaction construction and utilize Atlas PAB.

As a part of the CLB development effort unified testing (opens in a new tab) feature has been implemented in Atlas PAB. It allows writing off-chain code for transaction building once and reuse it in:

  • CBL-emulator tests
  • Private network tests
  • The application itself

A sample project that uses CLB with Atlas can be found in mlabs-haskell/atlas-bet-ref (opens in a new tab) repository.