How can I compute CommitDigest when using an Amazon QLDB low-level client?

Last updated: 2020-08-26

My application uses a low-level client to interact with Amazon Quantum Ledger Database (Amazon QLDB). What is the purpose of the CommitDigest parameter, and how do I compute it?


CommitDigest assures that transactions are committed only after the server processes the exact set of statements sent by the client (all, in order, no duplicates). You must pass CommitDigest for each active transaction. Use Amazon Ion Hash to compute CommitDigest.

It's a best practice to use the Amazon QLDB driver to execute data transactions on a ledger. The Amazon QLDB driver streamlines the execution of PartiQL statements on ledger data by managing SendCommand API calls for you. Pass the CommitDigest parameter in the SendCommand request.

Did this article help?

Do you need billing or technical support?