# Rust client for ledger JSON API

**URL:** <https://forum.canton.network/t/rust-client-for-ledger-json-api/7975>\
**Category:** App Development\
**Tags:** ledger-api, canton\
**Created:** [May 21, 2025, 9:24am UTC](https://forum.canton.network/t/rust-client-for-ledger-json-api/7975 "2025-05-21T09:24:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scolear](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/scolear/32/7304_2.png) [@scolear](https://forum.canton.network/u/scolear)\
**Post date:** [May 21, 2025, 9:24am UTC](https://forum.canton.network/t/rust-client-for-ledger-json-api/7975/1 "2025-05-21T09:24:13Z")

</div>

Hey all!

I have published an early (but working) version of a generated rust client library for interacting with the ledger JSON API. For now only for API v2, for Canton 3.3.0+

Generated using [https://openapi-generator.tech/](https://openapi-generator.tech/), with the v2 JSON API as it’s input: [JSON API V2 Openapi definition — Digital Asset’s platform documentation](https://docs.digitalasset-staging.com/build/3.3/explanations/json-api/openapi)

You can find more information, usage, etc. in the README. Feedback, PRs welcome!

See the code here: [GitHub - scolear/canton-api-rust-client: Canton JSON API client wrapper in Rust](https://github.com/scolear/canton-api-rust-client)  
And the published cargo package hosted on [crates.io](http://crates.io) here: [crates.io: Rust Package Registry](https://crates.io/crates/canton-api-client)

---

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [May 27, 2025, 12:50pm UTC](https://forum.canton.network/t/rust-client-for-ledger-json-api/7975/2 "2025-05-27T12:50:04Z")

</div>

What about the ledger (gRPC) API?

There is an abandoned repo for that as well: [GitHub - fujiapple852/rust-daml-bindings: Unofficial Rust bindings and tools for Daml](https://github.com/fujiapple852/rust-daml-bindings)

This repo is compatible with Daml LF 1.14 so if we want to use it it needs some update. Updating it has been on my TODO list but didn’t come to it yet.

---

<div class="post-metadata">

**Author:** ![scolear](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/scolear/32/7304_2.png) [@scolear](https://forum.canton.network/u/scolear)\
**Post date:** [June 19, 2025, 9:02am UTC](https://forum.canton.network/t/rust-client-for-ledger-json-api/7975/3 "2025-06-19T09:02:50Z")

</div>

Good point!  
We are thinking of rolling our own gRCP wrapper in rust from the protos, to be used for some automated p2p flows. So when that time comes, we will create a lib for that as well.

Thanks for the link, I didn’t find this! But yeah, we needed canton 3.3 compatibility. Something hand-crafted is definitely better than this codegen, but it works for us for now.
