# Language Support

**URL:** https://forum.dfinity.org/c/developers/languages/21.md?page=1

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

**Page:** 2

---

## [When the backend canister name is backend, the did file generated by dfx deploy is called service.did](https://forum.dfinity.org/t/when-the-backend-canister-name-is-backend-the-did-file-generated-by-dfx-deploy-is-called-service-did/49820)

<div class="topic-metadata">

**Author:** [@e274426380](https://forum.dfinity.org/u/e274426380)\
**Replies:** 6\
**Last updated:** [June 11, 2025, 3:28pm UTC](https://forum.dfinity.org/t/when-the-backend-canister-name-is-backend-the-did-file-generated-by-dfx-deploy-is-called-service-did/49820 "2025-06-11T15:28:37Z")

</div>

Use Rust. However, .dfx/local/canister/index.js imports import { idlFactory } from ‘./backend.did.js’; but the folder contains service.did.js, which causes index.js to be unable to find backend.did.js. Why is this th…

---

## [Some users get Code:400 (Bad request) when performing updates](https://forum.dfinity.org/t/some-users-get-code-400-bad-request-when-performing-updates/50259)

<div class="topic-metadata">

**Author:** [@haida](https://forum.dfinity.org/u/haida)\
**Replies:** 0\
**Last updated:** [June 10, 2025, 12:47pm UTC](https://forum.dfinity.org/t/some-users-get-code-400-bad-request-when-performing-updates/50259 "2025-06-10T12:47:31Z")

</div>

Dear experts! Some users get Code:400 (Bad request) when performing updates. We have no idea how to handle it. Can you help us? canisterid : ojpsk-siaaa-aaaam-adtea-cai Thank you!

---

## [Frontend Canister Upgrade Fails with 'malformed\_request'](https://forum.dfinity.org/t/frontend-canister-upgrade-fails-with-malformed-request/49257)

<div class="topic-metadata">

**Author:** [@Nimakra](https://forum.dfinity.org/u/Nimakra)\
**Replies:** 2\
**Last updated:** [June 5, 2025, 4:21pm UTC](https://forum.dfinity.org/t/frontend-canister-upgrade-fails-with-malformed-request/49257 "2025-06-05T16:21:54Z")

</div>

Hello everyone, I have a React + Vite frontend already deployed to the mainnet. My build output is in dist/. The assets folder in dist/assets contains all of my app’s compiled JS files. This folder is about 2.9MB in tota…

---

## [Is the world ready?](https://forum.dfinity.org/t/is-the-world-ready/39501)

<div class="topic-metadata">

**Author:** [@BABYAROF](https://forum.dfinity.org/u/BABYAROF)\
**Replies:** 6\
**Last updated:** [May 24, 2025, 11:17am UTC](https://forum.dfinity.org/t/is-the-world-ready/39501 "2025-05-24T11:17:19Z")

</div>

We have discovered the formula for making people materially independent! Are you ready? This is the latest update from liliP:

---

## [Stable HashMap without need for an upgrade func](https://forum.dfinity.org/t/stable-hashmap-without-need-for-an-upgrade-func/10040)

<div class="topic-metadata">

**Author:** [@ClankPan](https://forum.dfinity.org/u/ClankPan)\
**Replies:** 16\
**Last updated:** [May 18, 2025, 2:26pm UTC](https://forum.dfinity.org/t/stable-hashmap-without-need-for-an-upgrade-func/10040 "2025-05-18T14:26:40Z")

</div>

Happy new year, Guys. I ‘d like to discuss about StableHashMap that simplify upgrade steps. When we use HashMap lib in Motoko, we have to implement these code. Because class variables can not be stable. var hp = H…

---

## [Sender\_canister\_version](https://forum.dfinity.org/t/sender-canister-version/45883)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 6\
**Last updated:** [May 5, 2025, 10:02am UTC](https://forum.dfinity.org/t/sender-canister-version/45883 "2025-05-05T10:02:11Z")

</div>

There are a number of system calls (installing, creating canisters, snapshots) that have a sender\_canister\_version parameter. I don’t see much explanation of what this is in the obvious places and/or I’m still not unders…

---

## [Neuron ID where can I find?](https://forum.dfinity.org/t/neuron-id-where-can-i-find/5528)

<div class="topic-metadata">

**Author:** [@Onyx](https://forum.dfinity.org/u/Onyx)\
**Replies:** 3\
**Last updated:** [May 3, 2025, 2:36pm UTC](https://forum.dfinity.org/t/neuron-id-where-can-i-find/5528 "2025-05-03T14:36:26Z")

</div>

can I see a list of available Neuron IDs that I can follow

---

## [What are the units of timeout in best effort messages](https://forum.dfinity.org/t/what-are-the-units-of-timeout-in-best-effort-messages/45451)

<div class="topic-metadata">

**Author:** [@icme](https://forum.dfinity.org/u/icme)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 6:20am UTC](https://forum.dfinity.org/t/what-are-the-units-of-timeout-in-best-effort-messages/45451 "2025-04-29T06:20:20Z")

</div>

@ggreif I was just reading the release notes for Release 0.14.2 · dfinity/motoko · GitHub to learn more about the timeout field, and couldn’t find the units of timeout documented. For example, in this case let worker …

---

## [Holding onto motoko promises: ill-scoped await](https://forum.dfinity.org/t/holding-onto-motoko-promises-ill-scoped-await/45112)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 3\
**Last updated:** [April 28, 2025, 11:06am UTC](https://forum.dfinity.org/t/holding-onto-motoko-promises-ill-scoped-await/45112 "2025-04-28T11:06:27Z")

</div>

I’ve run into this a few times and I can’t find much on the forum or docs so I thought I’d raise it. I have some code like this: let stopPromise = systemCanister.stop\_canister(stop\_args); ignore Timer.se…

---

## [About transaction\_hash and BlockIndex of ICPledger?](https://forum.dfinity.org/t/about-transaction-hash-and-blockindex-of-icpledger/22385)

<div class="topic-metadata">

**Author:** [@haida](https://forum.dfinity.org/u/haida)\
**Replies:** 8\
**Last updated:** [April 26, 2025, 2:02pm UTC](https://forum.dfinity.org/t/about-transaction-hash-and-blockindex-of-icpledger/22385 "2025-04-26T14:02:06Z")

</div>

How to get valid transaction\_hash? Because after using ICPledger.transfer, the return value is only BlockIndex, without transaction\_hash, and at the same time, query\_blocks cannot be used to query without transaction\_ha…

---

## [Pre-release \`moc\` 0.14.0 available in Playground](https://forum.dfinity.org/t/pre-release-moc-0-14-0-available-in-playground/40857)

<div class="topic-metadata">

**Author:** [@ggreif](https://forum.dfinity.org/u/ggreif)\
**Replies:** 21\
**Last updated:** [April 25, 2025, 1:22pm UTC](https://forum.dfinity.org/t/pre-release-moc-0-14-0-available-in-playground/40857 "2025-04-25T13:22:58Z")

</div>

Hello Motokoders, I am happy to announce the availability of the Motoko compiler version 0.14.0 (a pre-release so far) in the Motoko Playground! Please feel free to experiment and take this out for a ride. We’ll let it …

---

## [The cycles is sufficient but frozen in advance](https://forum.dfinity.org/t/the-cycles-is-sufficient-but-frozen-in-advance/43697)

<div class="topic-metadata">

**Author:** [@haida](https://forum.dfinity.org/u/haida)\
**Replies:** 3\
**Last updated:** [April 15, 2025, 9:02am UTC](https://forum.dfinity.org/t/the-cycles-is-sufficient-but-frozen-in-advance/43697 "2025-04-15T09:02:44Z")

</div>

As pictured: canister：mpxah-3yaaa-aaaam-adtja-cai This problem occurred a few hours ago. We then top-up this canister for 3T cycles. After the canister was unfrozen, we found that the balance was still about 3.9T. T…

---

## [WASM Hash from code](https://forum.dfinity.org/t/wasm-hash-from-code/43811)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 3\
**Last updated:** [April 14, 2025, 7:54pm UTC](https://forum.dfinity.org/t/wasm-hash-from-code/43811 "2025-04-14T19:54:27Z")

</div>

@ggreif , @claudio, I saw ExperimentalInternetComputer.subnet : () → Principal was added in 14.4 which is great! I was wondering if it would be possible to also have an accessor for the currently installed wasm hash? …

---

## [How to implement ICP convert cycles and top-up programmatically](https://forum.dfinity.org/t/how-to-implement-icp-convert-cycles-and-top-up-programmatically/43183)

<div class="topic-metadata">

**Author:** [@haida](https://forum.dfinity.org/u/haida)\
**Replies:** 6\
**Last updated:** [April 2, 2025, 8:22am UTC](https://forum.dfinity.org/t/how-to-implement-icp-convert-cycles-and-top-up-programmatically/43183 "2025-04-02T08:22:10Z")

</div>

dfx cycles convert dfx cycles top-up We currently use the above commands to handle cycles conversion and recharge. Is it possible to implement these functions through coding for automation? The ICP convert cycles co…

---

## [ICRC\_16 and Candy Library Update v0.3.0](https://forum.dfinity.org/t/icrc-16-and-candy-library-update-v0-3-0/24770)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 3:48pm UTC](https://forum.dfinity.org/t/icrc-16-and-candy-library-update-v0-3-0/24770 "2025-03-25T15:48:08Z")

</div>

I just pushed candy\_library to v0.3.0. v0.3.0 Added the ValueShared type for dumping a Candy and CandyShared to an ICRC3 style Value type. Added many tests. Mostly this syncs up the ICRC16 schema as a compara…

---

## [Motoko-env a simple way to access environment variables](https://forum.dfinity.org/t/motoko-env-a-simple-way-to-access-environment-variables/42889)

<div class="topic-metadata">

**Author:** [@demali.icp](https://forum.dfinity.org/u/demali.icp)\
**Replies:** 2\
**Last updated:** [March 23, 2025, 2:10am UTC](https://forum.dfinity.org/t/motoko-env-a-simple-way-to-access-environment-variables/42889 "2025-03-23T02:10:26Z")

</div>

:hammer\_and\_wrench: motoko-env: Environment Variable Parser for Motoko Hey Motoko devs, I recently audited a project and noticed they hardcoded their API key directly into the Motoko codebase :sweat\_smile:. Obviously, t…

---

## [Strategy on the upper limit of stable variable storage](https://forum.dfinity.org/t/strategy-on-the-upper-limit-of-stable-variable-storage/41954)

<div class="topic-metadata">

**Author:** [@haida](https://forum.dfinity.org/u/haida)\
**Replies:** 8\
**Last updated:** [March 12, 2025, 10:10am UTC](https://forum.dfinity.org/t/strategy-on-the-upper-limit-of-stable-variable-storage/41954 "2025-03-12T10:10:06Z")

</div>

In the relevant IC documents, I know that the upper limit of IC heap memory is 4GB. At the same time, I found relevant suggestions in your forum to “prevent the upgrade from becoming a brick, and the actual use should…

---

## [Stable variable cannot be discarded](https://forum.dfinity.org/t/stable-variable-cannot-be-discarded/42026)

<div class="topic-metadata">

**Author:** [@haida](https://forum.dfinity.org/u/haida)\
**Replies:** 17\
**Last updated:** [March 9, 2025, 7:50am UTC](https://forum.dfinity.org/t/stable-variable-cannot-be-discarded/42026 "2025-03-09T07:50:28Z")

</div>

Since a stable variable needs to change its structure and I no longer need the data inside, I directly change the type and upgrade the request. The error is as follows: Call failed: Canister: ojpsk-siaaa-aaaam-adtea-ca…

---

## [IC tanks are not running single threads, what should I do](https://forum.dfinity.org/t/ic-tanks-are-not-running-single-threads-what-should-i-do/41920)

<div class="topic-metadata">

**Author:** [@haida](https://forum.dfinity.org/u/haida)\
**Replies:** 8\
**Last updated:** [March 7, 2025, 6:43am UTC](https://forum.dfinity.org/t/ic-tanks-are-not-running-single-threads-what-should-i-do/41920 "2025-03-07T06:43:45Z")

</div>

When running in the actual online environment, it is found that IC is not the “single thread mode” described in the developer documentation. We are now developing a web3 application based on IC motoko, with thousands of…

---

## [Long running Running pocket-ic/dfx replica](https://forum.dfinity.org/t/long-running-running-pocket-ic-dfx-replica/41777)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 11:16am UTC](https://forum.dfinity.org/t/long-running-running-pocket-ic-dfx-replica/41777 "2025-03-03T11:16:44Z")

</div>

I’m curious about the ability for pocket ic and/or the dfx replica to be a long running process. Say something like trying to really simulate a large subnet of a long period. I’d pocket-ic in continuous mode basically t…

---

## [Motoko Developer Documentation feedback](https://forum.dfinity.org/t/motoko-developer-documentation-feedback/41712)

<div class="topic-metadata">

**Author:** [@demali.icp](https://forum.dfinity.org/u/demali.icp)\
**Replies:** 1\
**Last updated:** [February 28, 2025, 8:44am UTC](https://forum.dfinity.org/t/motoko-developer-documentation-feedback/41712 "2025-02-28T08:44:16Z")

</div>

Hello Motoko devs, The Motoko documentation is currently being restructured, and feedback is essential in identifying what’s working, what’s missing, and what can be improved to make the docs more useful for everyone. A…

---

## [Simplest / best way to make inter-canister calls in Motoko](https://forum.dfinity.org/t/simplest-best-way-to-make-inter-canister-calls-in-motoko/18058)

<div class="topic-metadata">

**Author:** [@blabagastered](https://forum.dfinity.org/u/blabagastered)\
**Replies:** 11\
**Last updated:** [February 9, 2025, 2:14pm UTC](https://forum.dfinity.org/t/simplest-best-way-to-make-inter-canister-calls-in-motoko/18058 "2025-02-09T14:14:59Z")

</div>

What’s the simplest / best way to make inter-canister calls in Motoko? I tried the pattern here: linkedup/main.mo at master · dfinity/linkedup · GitHub But on deployment of the canister that has the import statement, I…

---

## [Sub-type as Class Type parameter](https://forum.dfinity.org/t/sub-type-as-class-type-parameter/40801)

<div class="topic-metadata">

**Author:** [@walacemaia](https://forum.dfinity.org/u/walacemaia)\
**Replies:** 3\
**Last updated:** [February 3, 2025, 11:06pm UTC](https://forum.dfinity.org/t/sub-type-as-class-type-parameter/40801 "2025-02-03T23:06:36Z")

</div>

Hi, guys! I’m trying to create a class with a parameterized type for object CRUD operations and I’m facing some challenges with type handling in Motoko. Below is an example of code with a compilation error. Any help w…

---

## [Catch a trap, Motoko](https://forum.dfinity.org/t/catch-a-trap-motoko/14438)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 8\
**Last updated:** [February 1, 2025, 4:22pm UTC](https://forum.dfinity.org/t/catch-a-trap-motoko/14438 "2025-02-01T16:22:17Z")

</div>

I know we’ve discussed this before, but I wanted to rais it again now that I’m using some different motoko structures. Why can’t I catch a trap: https://m7sm4-2iaaa-aaaab-qabra-cai.raw.ic0.app/ actor Echo { // Say t…

---

## [Motoko and array thought - sugar](https://forum.dfinity.org/t/motoko-and-array-thought-sugar/40424)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 1\
**Last updated:** [January 23, 2025, 9:29pm UTC](https://forum.dfinity.org/t/motoko-and-array-thought-sugar/40424 "2025-01-23T21:29:53Z")

</div>

these are just ramblings and likely unactionable but I’m posting them to see if someone smarter than me may have an easy solution to make my life easier Just musing at the moment…but I write so many toArray calls that i…

---

## [Bitfinity from the EVM RPC](https://forum.dfinity.org/t/bitfinity-from-the-evm-rpc/40041)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 2\
**Last updated:** [January 15, 2025, 1:27pm UTC](https://forum.dfinity.org/t/bitfinity-from-the-evm-rpc/40041 "2025-01-15T13:27:41Z")

</div>

I have an integration trying to use the Custom provider with the url Ethereum = record { rpc = variant { Custom = record { url = "https://testnet.bitfinity.network"; …

---

## [PocketIC and PIC.js parallel behavior](https://forum.dfinity.org/t/pocketic-and-pic-js-parallel-behavior/37505)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 19\
**Last updated:** [January 14, 2025, 4:03am UTC](https://forum.dfinity.org/t/pocketic-and-pic-js-parallel-behavior/37505 "2025-01-14T04:03:09Z")

</div>

for @NathanosDev and @mraszyk: I was writing a test who’s purpose was to call the same function 3 times in the same block and make sure that only one executes. Something like: const executePromises = \[ env.myCanis…

---

## [Try/Finally preventing a future upgrade?](https://forum.dfinity.org/t/try-finally-preventing-a-future-upgrade/39433)

<div class="topic-metadata">

**Author:** [@icme](https://forum.dfinity.org/u/icme)\
**Replies:** 10\
**Last updated:** [January 8, 2025, 3:06pm UTC](https://forum.dfinity.org/t/try-finally-preventing-a-future-upgrade/39433 "2025-01-08T15:06:02Z")

</div>

I was recently reading the Motoko try/finally docs and saw this note. Does this mean that trapping in a finally block could prevent a future upgrade? That seems like a pretty big hole in the implementation if so?

---

## [Canister versioning on ICP](https://forum.dfinity.org/t/canister-versioning-on-icp/39163)

<div class="topic-metadata">

**Author:** [@Stephen-Kimoi](https://forum.dfinity.org/u/Stephen-Kimoi)\
**Replies:** 5\
**Last updated:** [December 24, 2024, 5:07am UTC](https://forum.dfinity.org/t/canister-versioning-on-icp/39163 "2024-12-24T05:07:06Z")

</div>

Someone help me with this, is there a way on ICP that allows someone to switch between different canister versions? Let’s say for example: I have a canister that I want to upgrade. After upgrading, I realize I want to r…

---

## [Generating a candid file after compiling code as wasm32-wasi gives an error](https://forum.dfinity.org/t/generating-a-candid-file-after-compiling-code-as-wasm32-wasi-gives-an-error/39249)

<div class="topic-metadata">

**Author:** [@ydr990318](https://forum.dfinity.org/u/ydr990318)\
**Replies:** 2\
**Last updated:** [December 23, 2024, 5:03pm UTC](https://forum.dfinity.org/t/generating-a-candid-file-after-compiling-code-as-wasm32-wasi-gives-an-error/39249 "2024-12-23T17:03:37Z")

</div>

Hey~ @jeshli , sorry to bother you again, I’ve successfully run your rust-connect-py-ai-to-ic project, but since I didn’t have a tokenizer for transcoding, I created a new canister, but the transcoding has to be done wit…

[Previous page](https://forum.dfinity.org/c/developers/languages/21.md)

[Next page](https://forum.dfinity.org/c/developers/languages/21.md?page=2)
