5 releases

0.2.2 Mar 8, 2022
0.2.1 Mar 7, 2022
0.2.0 Mar 4, 2022
0.1.1 Mar 3, 2022
0.1.0 Mar 1, 2022

#1403 in Development tools


21K SLoC

Documentation Crate maintenance-status

Daml Bridge

This crate provides a bridge between the Daml JSON and Daml GRPC APIs.


cargo install daml-bridge


    daml-bridge [OPTIONS] --ledger-uri <uri> --http-port <port> --bridge-token <token>

        --bridge-token <token>
            The JWT token the bridge will use for package refresh from the ledger server

            Sets whether decimal values are encoded as JSON strings

            Sets whether int64 values are encoded as JSON strings

    -h, --help
            Print help information

        --http-host <host>
            The host the http server should listen on [default:]

        --http-port <port>
            The port the http server should listen on

        --ledger-connect-timeout <duration>
            The ledger server connection timeout [default: 5s]

        --ledger-timeout <duration>
            The ledger server timeout [default: 5s]

        --log-filter <log-filter>
            Sets the log filters [default: daml-bridge=info]

        --package-reload-interval <interval>
            How frequently the bridge should refresh the Daml packages from the ledger server
            [default: 5s]

    -s, --ledger-uri <uri>
            The ledger server GRPC uri (i.e.

    -V, --version
            Print version information


To run the bridge against a Daml ledger listening on and expose the JSON API on port 8080:

daml-bridge --ledger-uri --http-port 8080 --bridge-token $TOKEN


The bridge supports all operations of the Daml JSON API except:

It does not provide a database backing store or cache, all operations are related to the underlying GRPC API.


daml-bridge is distributed under the terms of the Apache License (Version 2.0).

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in time by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See LICENSE for details.

Copyright 2022


~777K SLoC