# \#react

**URL:** https://forum.canton.network/tag/react/9.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [Canton dAppBooster is live](https://forum.canton.network/t/canton-dappbooster-is-live/9276)

<div class="topic-metadata">

**Author:** [@Pablo-BN](https://forum.canton.network/u/Pablo-BN)\
**Replies:** 1\
**Last updated:** [October 7, 2026, 4:13pm UTC](https://forum.canton.network/t/canton-dappbooster-is-live/9276 "2026-10-07T16:13:43Z")

</div>

Canton dAppBooster is live dAppBooster for Canton is live. An open-source, full-stack starter for building a dApp UI on top of a Daml package. You get a one-command local Canton environment, wagmi-style React hooks and …

---

## [\[Proposal\] Canton Launchpad: Solving Local Dev Friction with a Visual Orchestrator & Handshake Diagnostician](https://forum.canton.network/t/proposal-canton-launchpad-solving-local-dev-friction-with-a-visual-orchestrator-handshake-diagnostician/8674)

<div class="topic-metadata">

**Author:** [@cvijandj](https://forum.canton.network/u/cvijandj)\
**Replies:** 0\
**Last updated:** [May 29, 2026, 10:29am UTC](https://forum.canton.network/t/proposal-canton-launchpad-solving-local-dev-friction-with-a-visual-orchestrator-handshake-diagnostician/8674 "2026-05-29T10:29:57Z")

</div>

Hi everyone, Like many of you, our team has been building actively on the Canton Network. But if we are being honest, setting up local multi-node environments and verifying synchronizer handshakes remains one of the hig…

---

## [Creation of a map with a set inside throws error because Daml Set does not match Javascript type](https://forum.canton.network/t/creation-of-a-map-with-a-set-inside-throws-error-because-daml-set-does-not-match-javascript-type/7225)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 1\
**Last updated:** [May 3, 2024, 10:46am UTC](https://forum.canton.network/t/creation-of-a-map-with-a-set-inside-throws-error-because-daml-set-does-not-match-javascript-type/7225 "2024-05-03T10:46:26Z")

</div>

Hi all :slight\_smile: I am facing an issue when trying to exercise a choice. My choice as an argument containing a field called warantObservers. This field has the following type on the choice: type PartiesMap = Map T…

---

## [Creating a type map on the front end](https://forum.canton.network/t/creating-a-type-map-on-the-front-end/7196)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 4\
**Last updated:** [April 4, 2024, 5:21pm UTC](https://forum.canton.network/t/creating-a-type-map-on-the-front-end/7196 "2024-04-04T17:21:26Z")

</div>

Hi :slight\_smile: on my frontend code i have a choice that i need to exercise that has one argument that is of a type Map. I am making use of @daml/types at version 2.8.0 My code is similar to the following short exam…

---

## [Is it possible to query a child interface an get at the same time the parent one using @daml/react?](https://forum.canton.network/t/is-it-possible-to-query-a-child-interface-an-get-at-the-same-time-the-parent-one-using-daml-react/7126)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 1\
**Last updated:** [March 28, 2024, 11:29am UTC](https://forum.canton.network/t/is-it-possible-to-query-a-child-interface-an-get-at-the-same-time-the-parent-one-using-daml-react/7126 "2024-03-28T11:29:14Z")

</div>

Hello, i am using the useStreamQueries hook from @daml/react and I need to do a query using one interface that is child of another. On that child interface i get only some partial part of the data that i need and i can…

---

## [Does @daml/react work with interfaces?](https://forum.canton.network/t/does-daml-react-work-with-interfaces/7095)

<div class="topic-metadata">

**Author:** [@jvelasco.intellecteu](https://forum.canton.network/u/jvelasco.intellecteu)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 5:55pm UTC](https://forum.canton.network/t/does-daml-react-work-with-interfaces/7095 "2024-02-06T17:55:31Z")

</div>

Hi, I was wondering if it is possible to query an interface from the generated @daml/react. Best Jose Velasco

---

## [Creating a Map of type damlTypes.Map\<string, damlTypes.Party\>](https://forum.canton.network/t/creating-a-map-of-type-damltypes-map-string-damltypes-party/6898)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 2\
**Last updated:** [October 25, 2023, 2:47pm UTC](https://forum.canton.network/t/creating-a-map-of-type-damltypes-map-string-damltypes-party/6898 "2023-10-25T14:47:15Z")

</div>

Hi everyone :slight\_smile: on my project i am trying to create a Map of the following type damlTypes.Map\<string, damlTypes.Party\> (imported from the @daml/types lib). But it keeps throwing me an error pointing that the…

---

## [Daml finance Effect.I and ElectionEffect : Accessing the amount in UI](https://forum.canton.network/t/daml-finance-effect-i-and-electioneffect-accessing-the-amount-in-ui/6699)

<div class="topic-metadata">

**Author:** [@Ashok\_Raj](https://forum.canton.network/u/Ashok_Raj)\
**Replies:** 4\
**Last updated:** [June 27, 2023, 3:58pm UTC](https://forum.canton.network/t/daml-finance-effect-i-and-electioneffect-accessing-the-amount-in-ui/6699 "2023-06-27T15:58:45Z")

</div>

This is a daml finance related query. In the current implementation. ElectionEffect uses the interface Effect and Effect interface doesn’t have the field amount in its view, which is though present in the ElectionEffect. …

---

## [Locking a Daml Finance holding in Typescript](https://forum.canton.network/t/locking-a-daml-finance-holding-in-typescript/6589)

<div class="topic-metadata">

**Author:** [@Ianw1](https://forum.canton.network/u/Ianw1)\
**Replies:** 3\
**Last updated:** [June 2, 2023, 3:59pm UTC](https://forum.canton.network/t/locking-a-daml-finance-holding-in-typescript/6589 "2023-06-02T15:59:43Z")

</div>

Hi, I wish to lock a Daml Finance holding from my UI. One way to do this would be to create a choice on a service contract and call into that, but I would like to be able to do it directly from the UI in TypeScript if po…

---

## [useStreamQuery disconnecting](https://forum.canton.network/t/usestreamquery-disconnecting/1325)

<div class="topic-metadata">

**Author:** [@Alex\_Matson](https://forum.canton.network/u/Alex_Matson)\
**Replies:** 13\
**Last updated:** [March 23, 2023, 10:10am UTC](https://forum.canton.network/t/usestreamquery-disconnecting/1325 "2023-03-23T10:10:56Z")

</div>

Hello, I noticed that in our @daml/react based app, the websockets that get opened by the useStreamQuery hook will typically close with error code 1006 after several minutes (both on Chrome/Firefox). This will happen ev…

---

## [MAXIMUM\_NUMBER\_OF\_STREAMS Error](https://forum.canton.network/t/maximum-number-of-streams-error/6008)

<div class="topic-metadata">

**Author:** [@galiliyo](https://forum.canton.network/u/galiliyo)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 12:39pm UTC](https://forum.canton.network/t/maximum-number-of-streams-error/6008 "2023-01-23T12:39:10Z")

</div>

I am running a React App against a local sandbox. Every few hours the sandbox crashes with the following error ABORTED: MAXIMUM\_NUMBER\_OF\_STREAMS(2,0): The number of streams in use (1000) has reached or exceeded the li…

---

## [How to mock useStreamQueries in jest test?](https://forum.canton.network/t/how-to-mock-usestreamqueries-in-jest-test/2095)

<div class="topic-metadata">

**Author:** [@Richard\_Kapolnai](https://forum.canton.network/u/Richard_Kapolnai)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 6:26pm UTC](https://forum.canton.network/t/how-to-mock-usestreamqueries-in-jest-test/2095 "2021-02-17T18:26:54Z")

</div>

We’d like to render a page in a test which connects to the ledger during rendering. How would be possible to mock useStreamQueries to always return an empty contract list? We could not figure out how to do this with jes…

---

## [How to override DamlHubLoginBtn with Token](https://forum.canton.network/t/how-to-override-damlhubloginbtn-with-token/5664)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 1\
**Last updated:** [November 22, 2022, 4:30pm UTC](https://forum.canton.network/t/how-to-override-damlhubloginbtn-with-token/5664 "2022-11-22T16:30:47Z")

</div>

Hi everyone :slight\_smile: I am trying to implement a login on DAML hub using the DamlHubLoginBtn with the withToken property. My main goal is to somehow mock a login with username and password but under the wood what …

---

## [Generate DAML hub compatible token through UI](https://forum.canton.network/t/generate-daml-hub-compatible-token-through-ui/5675)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 3\
**Last updated:** [November 21, 2022, 12:41pm UTC](https://forum.canton.network/t/generate-daml-hub-compatible-token-through-ui/5675 "2022-11-21T12:41:10Z")

</div>

Hi everyone :slight\_smile: I have some questions regarding the new JWT format, in particular, I have some doubts on his integration with DAML hub, we have an example token from DAML hub: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI…

---

## [Token generation on a front end with template from "daml new create-daml-app --template create-daml-app"](https://forum.canton.network/t/token-generation-on-a-front-end-with-template-from-daml-new-create-daml-app-template-create-daml-app/5629)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 6:47am UTC](https://forum.canton.network/t/token-generation-on-a-front-end-with-template-from-daml-new-create-daml-app-template-create-daml-app/5629 "2022-11-10T06:47:17Z")

</div>

Hi :slight\_smile: I am trying to understand if it´s possible to generate locally a custom token on a project that I´ve bootstraped with the command: daml new create-daml-app --template create-daml-app. Since the SDK v…

---

## [Can I explicitly release websocket connections used in the \`@daml/react\` bindings?](https://forum.canton.network/t/can-i-explicitly-release-websocket-connections-used-in-the-daml-react-bindings/5297)

<div class="topic-metadata">

**Author:** [@georg](https://forum.canton.network/u/georg)\
**Replies:** 3\
**Last updated:** [September 27, 2022, 7:46pm UTC](https://forum.canton.network/t/can-i-explicitly-release-websocket-connections-used-in-the-daml-react-bindings/5297 "2022-09-27T19:46:52Z")

</div>

In the Daml Finance Reference App we make use of useStreamQueries a lot. I realized that the websocket connections don’t get released / closed when I eg. navigate away from a page that calls useStreamQueries. This leads …

---

## [Error appearing on console of Frontend Deployed DAML hub application](https://forum.canton.network/t/error-appearing-on-console-of-frontend-deployed-daml-hub-application/5296)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 2\
**Last updated:** [September 27, 2022, 1:28pm UTC](https://forum.canton.network/t/error-appearing-on-console-of-frontend-deployed-daml-hub-application/5296 "2022-09-27T13:28:17Z")

</div>

I deployed a app on daml hub and currently I am receiving this error on the browser console: Error fetching automation list: {"kind":"DecoderError","input":\[{"artifactHash":"a67f289524323100043b508dfc7384cd7ec70a91720c8…

---

## [Getting all choices for a given Party or Contract](https://forum.canton.network/t/getting-all-choices-for-a-given-party-or-contract/4830)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 12\
**Last updated:** [August 24, 2022, 9:37am UTC](https://forum.canton.network/t/getting-all-choices-for-a-given-party-or-contract/4830 "2022-08-24T09:37:43Z")

</div>

Hi everyone, is there any way that on React Js app we can fetch all the possible choices a given party or contract can exercise? Just like you guys have on navigator? Thanks in advance :slight\_smile:

---

## [Display Tuple in React frontend](https://forum.canton.network/t/display-tuple-in-react-frontend/4730)

<div class="topic-metadata">

**Author:** [@Frankie](https://forum.canton.network/u/Frankie)\
**Replies:** 3\
**Last updated:** [June 17, 2022, 12:42pm UTC](https://forum.canton.network/t/display-tuple-in-react-frontend/4730 "2022-06-17T12:42:46Z")

</div>

I defined a Tuple in the Daml code aType : (Party, Party) How can I display it in frontend react config file (frontend-config.js)? For primitive types, I can use x =\> x.argument.fields\[0\].value.value But It doesn…

---

## [usePublicParty and usePublicToken with DamlLedger](https://forum.canton.network/t/usepublicparty-and-usepublictoken-with-damlledger/4453)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 2\
**Last updated:** [May 2, 2022, 8:07am UTC](https://forum.canton.network/t/usepublicparty-and-usepublictoken-with-damlledger/4453 "2022-05-02T08:07:37Z")

</div>

Hi everyone, I am trying to create a PublicLedger component for one project of mine. I am using the following code: export const PublicLedger = ({ children }: { children: React.ReactNode }) =\> { //FETCH public par…

---

## [Daml Hub login](https://forum.canton.network/t/daml-hub-login/4262)

<div class="topic-metadata">

**Author:** [@David\_Martins](https://forum.canton.network/u/David_Martins)\
**Replies:** 1\
**Last updated:** [April 6, 2022, 2:23pm UTC](https://forum.canton.network/t/daml-hub-login/4262 "2022-04-06T14:23:08Z")

</div>

Hello all, I’m working on a project that envolves a react FE host along side a ledger on daml hub. The question is, when I get authenticated on this FE with the daml hub auth component, is there any way to obtain the e…

---

## [.NET API to write data on the ledger in JSON format](https://forum.canton.network/t/net-api-to-write-data-on-the-ledger-in-json-format/4123)

<div class="topic-metadata">

**Author:** [@Iqra\_Mustafa1](https://forum.canton.network/u/Iqra_Mustafa1)\
**Replies:** 6\
**Last updated:** [March 28, 2022, 2:53pm UTC](https://forum.canton.network/t/net-api-to-write-data-on-the-ledger-in-json-format/4123 "2022-03-28T14:53:15Z")

</div>

I am working in .net 5, and I saw your example on GitHub - digital-asset/daml-net , but It seems not very helpful. I want to write .NET API to write data on the ledger in JSON format.

---

## [React hook websockets failing on unmount preventing future reconnects](https://forum.canton.network/t/react-hook-websockets-failing-on-unmount-preventing-future-reconnects/4186)

<div class="topic-metadata">

**Author:** [@Turan](https://forum.canton.network/u/Turan)\
**Replies:** 1\
**Last updated:** [March 23, 2022, 2:42pm UTC](https://forum.canton.network/t/react-hook-websockets-failing-on-unmount-preventing-future-reconnects/4186 "2022-03-23T14:42:22Z")

</div>

TS bindings and ledger version 1.18.1 When a react component using the useStreamQueries hook is unmounted the websocket fails with: WebSocket connection to ‘ws://localhost:7575/v1/stream/query’ failed: WebSocket is clo…

---

## [Daml hub - access error](https://forum.canton.network/t/daml-hub-access-error/4181)

<div class="topic-metadata">

**Author:** [@Iqra\_Mustafa1](https://forum.canton.network/u/Iqra_Mustafa1)\
**Replies:** 5\
**Last updated:** [March 23, 2022, 11:40am UTC](https://forum.canton.network/t/daml-hub-access-error/4181 "2022-03-23T11:40:48Z")

</div>

I have developed a .Net core-based service in order to feed data from external sources to DAML smart contract which is deployed on DAML Hub. I am getting the token from below: However, I am uploading my code snippet as …

---

## [Typescript date filtering on useQuery or StreamQuery](https://forum.canton.network/t/typescript-date-filtering-on-usequery-or-streamquery/3934)

<div class="topic-metadata">

**Author:** [@Joao\_Freitas](https://forum.canton.network/u/Joao_Freitas)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 10:49pm UTC](https://forum.canton.network/t/typescript-date-filtering-on-usequery-or-streamquery/3934 "2022-02-22T22:49:02Z")

</div>

Hello everyone I am using the useQuery hook and I am trying to filter by a date range. const { contracts: historyContracts, loading: loadingContracts } = useStreamQueries( SomeContract, …

---

## [Module not found: Can't resolve '@daml.js/..' in 'ex-bond-issuance-master\\ui-js\\src\\pages\\issuerRole'](https://forum.canton.network/t/module-not-found-cant-resolve-daml-js-in-ex-bond-issuance-master-ui-js-src-pages-issuerrole/1810)

<div class="topic-metadata">

**Author:** [@jamesljaworski85](https://forum.canton.network/u/jamesljaworski85)\
**Replies:** 3\
**Last updated:** [December 15, 2020, 8:08pm UTC](https://forum.canton.network/t/module-not-found-cant-resolve-daml-js-in-ex-bond-issuance-master-ui-js-src-pages-issuerrole/1810 "2020-12-15T20:08:10Z")

</div>

Hey, DAMLer’s! I am working on updating our demo and using daml codegen js for the first time. I’m definitely glad @cocreature put me on to it, it’s a really nifty tool. However, I’m having a bit of trouble with it. U…

---

## [Daml Contract Testing](https://forum.canton.network/t/daml-contract-testing/3462)

<div class="topic-metadata">

**Author:** [@Iqra\_Mustafa](https://forum.canton.network/u/Iqra_Mustafa)\
**Replies:** 14\
**Last updated:** [November 20, 2021, 2:05pm UTC](https://forum.canton.network/t/daml-contract-testing/3462 "2021-11-20T14:05:12Z")

</div>

Hi, Since I have to detect the vulnerabilities in the given Airline Daml contract at the pre-deployment stage using my framework, I’d like to add 3-4 logical vulnerabilities to the Daml Contract. The issue is the follo…

---

## [Bond Trading + TS : what is the type?](https://forum.canton.network/t/bond-trading-ts-what-is-the-type/3100)

<div class="topic-metadata">

**Author:** [@Hem-M](https://forum.canton.network/u/Hem-M)\
**Replies:** 11\
**Last updated:** [September 13, 2021, 11:57am UTC](https://forum.canton.network/t/bond-trading-ts-what-is-the-type/3100 "2021-09-13T11:57:30Z")

</div>

Hi All, I have worked on “daml-ui-template” where the templates were stuffed in Main. Currently, I am working on “ex-bond-trading” sample from daml repo and facing type issues while querying templates(Bond, Cash, Dvp e…

---

## [Running multiple instances of create-daml-app simultaneously against multiple participants](https://forum.canton.network/t/running-multiple-instances-of-create-daml-app-simultaneously-against-multiple-participants/426)

<div class="topic-metadata">

**Author:** [@Phoebe\_Nichols](https://forum.canton.network/u/Phoebe_Nichols)\
**Replies:** 10\
**Last updated:** [July 11, 2021, 8:06pm UTC](https://forum.canton.network/t/running-multiple-instances-of-create-daml-app-simultaneously-against-multiple-participants/426 "2021-07-11T20:06:49Z")

</div>

Is there a way to run multiple instances of the create-daml-app UI at once, with the different UI instances connected to different instances of the http json api? As far as I can see, create-daml-app relies on the http …

---

## [Error: Failed to look up template (Make sure your @daml/types version agrees with the used Daml SDK version.)](https://forum.canton.network/t/error-failed-to-look-up-template-make-sure-your-daml-types-version-agrees-with-the-used-daml-sdk-version/2687)

<div class="topic-metadata">

**Author:** [@Richard\_Kapolnai](https://forum.canton.network/u/Richard_Kapolnai)\
**Replies:** 8\
**Last updated:** [July 7, 2021, 4:40pm UTC](https://forum.canton.network/t/error-failed-to-look-up-template-make-sure-your-daml-types-version-agrees-with-the-used-daml-sdk-version/2687 "2021-07-07T16:40:51Z")

</div>

When playing with the CBDC UI, every await ledger.exercise calls throw similar to this: Error: Failed to look up template c334f46f934d9633747c1ab4dc1fc3a947b74aa948a4dfc5ad0bea6639e7266d:DA.Finance.Asset:AssetDeposit. M…

[Next page](https://forum.canton.network/tag/react/9.md?match_all_tags=true&page=1&tags%5B%5D=react)
