Rust client for ledger JSON API

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/, with the v2 JSON API as it’s input: JSON API V2 Openapi definition — Digital Asset’s platform documentation

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
And the published cargo package hosted on crates.io here: crates.io: Rust Package Registry

5 Likes

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

This repo is compatible with Daml LF 1.15 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.

1 Like