Trying to understand how to use the Ledger API and the docs seem like they’re written for someone who is familiar with Protocol Buffers. I’ve never used them so it would be great if I can see an example of a DAML project using the Ledger API.
Usually you don’t interact with the raw protobuf but instead use one of the Ledger API bindings and potentially a codegen to interact with the Ledger API. Here are a few examples that we have that do this:
- The IOU quickstart example using the Java bindings and codegen https://docs.daml.com/app-dev/bindings-java/quickstart.html.
- The Scala bindings and codegen https://docs.daml.com/app-dev/bindings-scala/index.html.
- The tutorial for the NodeJS bindings GitHub - digital-asset/ex-tutorial-nodejs: An interactive tutorial to get started with the Node.js bindings for DAML (without a codegen).
There is also documentation on how you can create your own bindings at https://docs.daml.com/app-dev/bindings-x-lang/index.html.