# \#JavaScript

**URL:** https://forum.dfinity.org/tag/javascript/20.md

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

---

## [@icp-sdk/core Release Announcements](https://forum.dfinity.org/t/icp-sdk-core-release-announcements/65402)

<div class="topic-metadata">

**Author:** [@nikosxenakis](https://forum.dfinity.org/u/nikosxenakis)\
**Replies:** 5\
**Last updated:** [March 24, 2026, 12:06pm UTC](https://forum.dfinity.org/t/icp-sdk-core-release-announcements/65402 "2026-03-24T12:06:05Z")

</div>

This topic is used to announce new releases of @icp-sdk/core, the official JavaScript/TypeScript SDK for the Internet Computer. GitHub: GitHub - dfinity/icp-js-core: The base library to build applications on the Intern…

---

## [Agent JS problems with Recursion and Blobs](https://forum.dfinity.org/t/agent-js-problems-with-recursion-and-blobs/25737)

<div class="topic-metadata">

**Author:** [@bdemann](https://forum.dfinity.org/u/bdemann)\
**Replies:** 8\
**Last updated:** [September 25, 2025, 8:23pm UTC](https://forum.dfinity.org/t/agent-js-problems-with-recursion-and-blobs/25737 "2025-09-25T20:23:08Z")

</div>

I have found a couple of weird cases with encoding and decoding candid that has both recursive elements and blobs. I get the following error: throw new Error('type index out of range'); ^ Error: type …

---

## [ICP Vetkey Quickstart Guide](https://forum.dfinity.org/t/icp-vetkey-quickstart-guide/43354)

<div class="topic-metadata">

**Author:** [@Typonomy](https://forum.dfinity.org/u/Typonomy)\
**Replies:** 2\
**Last updated:** [July 30, 2025, 11:13am UTC](https://forum.dfinity.org/t/icp-vetkey-quickstart-guide/43354 "2025-07-30T11:13:47Z")

</div>

Vetkeys Demystified: Encrypting Data in Your ICP App If you’re building an app on the Internet Computer (ICP) that requires encrypting user data, you’ve likely heard about vetkeys. They offer a powerful, decentralized …

---

## [Issue: PATCH HTTP Methods Failing After Upgrading dfx from 0.22.0 to 0.24.3](https://forum.dfinity.org/t/issue-patch-http-methods-failing-after-upgrading-dfx-from-0-22-0-to-0-24-3/39481)

<div class="topic-metadata">

**Author:** [@bdemann](https://forum.dfinity.org/u/bdemann)\
**Replies:** 0\
**Last updated:** [December 30, 2024, 10:47pm UTC](https://forum.dfinity.org/t/issue-patch-http-methods-failing-after-upgrading-dfx-from-0-22-0-to-0-24-3/39481 "2024-12-30T22:47:23Z")

</div>

Hi everyone, I’m updating a project from dfx version 0.22.0 to 0.24.3, and I’ve run into an issue where my PATCH HTTP methods no longer work. When I try to send a PATCH request, I receive a 405 Method Not Allowed error …

---

## [How to generate delegated identity on server and send to browser](https://forum.dfinity.org/t/how-to-generate-delegated-identity-on-server-and-send-to-browser/25334)

<div class="topic-metadata">

**Author:** [@rosarp](https://forum.dfinity.org/u/rosarp)\
**Replies:** 33\
**Last updated:** [December 2, 2024, 10:54am UTC](https://forum.dfinity.org/t/how-to-generate-delegated-identity-on-server-and-send-to-browser/25334 "2024-12-02T10:54:04Z")

</div>

I am trying to make requests on behalf of the user from the server and from the user’s browser using the same principal… To achieve this I’m trying following steps. I have generated Identity on server (axum) for incomi…

---

## [Agent-js: Insecure Key Generation in \`Ed25519KeyIdentity.generate\`](https://forum.dfinity.org/t/agent-js-insecure-key-generation-in-ed25519keyidentity-generate/27732)

<div class="topic-metadata">

**Author:** [@vsekar](https://forum.dfinity.org/u/vsekar)\
**Replies:** 1\
**Last updated:** [February 22, 2024, 1:48pm UTC](https://forum.dfinity.org/t/agent-js-insecure-key-generation-in-ed25519keyidentity-generate/27732 "2024-02-22T13:48:19Z")

</div>

Dear all, Recently, the DFINITY security team received a disclosure of a critical bug affecting the agent-js repository, in particular @dfinity/identity and @dfinity/auth-client. The library offers a function to genera…

---

## [Calculating subAccounts from Principal agent-js](https://forum.dfinity.org/t/calculating-subaccounts-from-principal-agent-js/18849)

<div class="topic-metadata">

**Author:** [@NS01](https://forum.dfinity.org/u/NS01)\
**Replies:** 13\
**Last updated:** [February 12, 2024, 6:15am UTC](https://forum.dfinity.org/t/calculating-subaccounts-from-principal-agent-js/18849 "2024-02-12T06:15:52Z")

</div>

Hello Folks, I’ve been banging my head against a wall trying to get the sub-accounts of a principal in NodeJS using the agent-js lib. I feel like I’m missing something silly as this seems like it should be basic functio…

---

## [Failure to fetch $SLI price from ICPSwap into a webpage](https://forum.dfinity.org/t/failure-to-fetch-sli-price-from-icpswap-into-a-webpage/24051)

<div class="topic-metadata">

**Author:** [@Slice\_Info](https://forum.dfinity.org/u/Slice_Info)\
**Replies:** 7\
**Last updated:** [December 27, 2023, 6:07am UTC](https://forum.dfinity.org/t/failure-to-fetch-sli-price-from-icpswap-into-a-webpage/24051 "2023-12-27T06:07:49Z")

</div>

I’m trying to fetch the price of $SLI from ICPSwap into a webpage. Here is a Javascript code that isn’t working as expected. Is there anything I’m doing wrong? Please advice: // Import the required dependencies import …

---

## [Invalid public key (JS Error): secp256k1 key generated in Rust fails to load while creating DelegationChain in Javascript](https://forum.dfinity.org/t/invalid-public-key-js-error-secp256k1-key-generated-in-rust-fails-to-load-while-creating-delegationchain-in-javascript/25550)

<div class="topic-metadata">

**Author:** [@rosarp](https://forum.dfinity.org/u/rosarp)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 5:16pm UTC](https://forum.dfinity.org/t/invalid-public-key-js-error-secp256k1-key-generated-in-rust-fails-to-load-while-creating-delegationchain-in-javascript/25550 "2023-12-18T17:16:56Z")

</div>

I have rust code outside canister running using axum server. Which has generated secp256k1 key pair. I want to pass its public key on the javascript frontend to create delegated identity. In the first step, I’m trying…

---

## [Error logging icrc1 token name in frontend](https://forum.dfinity.org/t/error-logging-icrc1-token-name-in-frontend/22898)

<div class="topic-metadata">

**Author:** [@nolma](https://forum.dfinity.org/u/nolma)\
**Replies:** 5\
**Last updated:** [November 7, 2023, 8:04pm UTC](https://forum.dfinity.org/t/error-logging-icrc1-token-name-in-frontend/22898 "2023-11-07T20:04:59Z")

</div>

Why am I not seeing a response to my query here? How do I call a function on the canister from my frontend? import { token\_lobby\_backend } from "../../declarations/token\_lobby\_backend"; import { idlFactory } from "../.…

---

## [How to sign identity data with agent.js?](https://forum.dfinity.org/t/how-to-sign-identity-data-with-agent-js/21510)

<div class="topic-metadata">

**Author:** [@iamenochchirima](https://forum.dfinity.org/u/iamenochchirima)\
**Replies:** 5\
**Last updated:** [July 19, 2023, 5:33pm UTC](https://forum.dfinity.org/t/how-to-sign-identity-data-with-agent-js/21510 "2023-07-19T17:33:47Z")

</div>

I am working on a project that is sharing the authentication system with another project. The setup is like for users on my project to signin/authenticate with ic identity on my project they do so by using an authentica…

---

## [Dfx 0.12.1 - importing createActor - dfx generate - do not import from .dfx when using React](https://forum.dfinity.org/t/dfx-0-12-1-importing-createactor-dfx-generate-do-not-import-from-dfx-when-using-react/16648)

<div class="topic-metadata">

**Author:** [@karim](https://forum.dfinity.org/u/karim)\
**Replies:** 4\
**Last updated:** [November 17, 2022, 6:40pm UTC](https://forum.dfinity.org/t/dfx-0-12-1-importing-createactor-dfx-generate-do-not-import-from-dfx-when-using-react/16648 "2022-11-17T18:40:23Z")

</div>

Sorry for the bad title. I’ll just go through it step by step: I just upgraded to dfx 0.12.1 and was using the following lines to make non-anonymous calls from my React frontend but this doesn’t work anymore since creat…

---

## [New Feature - WebCrypto Identities in agent-js](https://forum.dfinity.org/t/new-feature-webcrypto-identities-in-agent-js/14490)

<div class="topic-metadata">

**Author:** [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Replies:** 3\
**Last updated:** [July 25, 2022, 4:01pm UTC](https://forum.dfinity.org/t/new-feature-webcrypto-identities-in-agent-js/14490 "2022-07-25T16:01:40Z")

</div>

Available for testing in the 0.12.2-beta.0 release, @dfinity/identity now supports the SubtleCrypto api. You can use an ECDSAKeyIdentity using the P-256 curve to make calls to the IC, using native CryptoKey and CryptoKey…

---

## [Agent-JS 0.12.1](https://forum.dfinity.org/t/agent-js-0-12-1/14307)

<div class="topic-metadata">

**Author:** [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Replies:** 0\
**Last updated:** [July 13, 2022, 7:17pm UTC](https://forum.dfinity.org/t/agent-js-0-12-1/14307 "2022-07-13T19:17:09Z")

</div>

What’s Changed 0.12.1 introduces two notable changes: Support for experimental derivationOrigin in auth-client for migrating domains off of ic0.app to a custom domain Allows replayability of signed requests, which is p…

---

## [About the JavaScript category](https://forum.dfinity.org/t/about-the-javascript-category/9487)

<div class="topic-metadata">

**Author:** [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Replies:** 1\
**Last updated:** [July 1, 2022, 9:17pm UTC](https://forum.dfinity.org/t/about-the-javascript-category/9487 "2022-07-01T21:17:10Z")

</div>

This is a topic to help people tag and identify discussions about JavaScript and TypeScript development. Feel free to discuss general JS/TS development questions, or topics specific to the Internet Computer JavaScript ag…

---

## [Agent-JS 0.12.0](https://forum.dfinity.org/t/agent-js-0-12-0/14079)

<div class="topic-metadata">

**Author:** [@anon74414410](https://forum.dfinity.org/u/anon74414410)\
**Replies:** 1\
**Last updated:** [June 29, 2022, 12:07am UTC](https://forum.dfinity.org/t/agent-js-0-12-0/14079 "2022-06-29T00:07:24Z")

</div>

Agent-JS 0.12.0 is released, with a small breaking change to how certificates are read. This enables a new security feature of checking the canister range of a delegation, according the Internet Computer public interface…

---

## [Convert Principal to subaccount ID in TS (code sample)](https://forum.dfinity.org/t/convert-principal-to-subaccount-id-in-ts-code-sample/13144)

<div class="topic-metadata">

**Author:** [@1eo](https://forum.dfinity.org/u/1eo)\
**Replies:** 0\
**Last updated:** [May 20, 2022, 10:04am UTC](https://forum.dfinity.org/t/convert-principal-to-subaccount-id-in-ts-code-sample/13144 "2022-05-20T10:04:05Z")

</div>

Convert Principal to subaccount ID in TS or JS. This is an issue that I had, I just wanted to share the code that I made as I wasn’t able to find it anywhere. Here is my code sample :

---

## [How to easily use Vue 3.x with ICP, step by step guide](https://forum.dfinity.org/t/how-to-easily-use-vue-3-x-with-icp-step-by-step-guide/12083)

<div class="topic-metadata">

**Author:** [@AnonymousCoder](https://forum.dfinity.org/u/AnonymousCoder)\
**Replies:** 0\
**Last updated:** [April 12, 2022, 9:35am UTC](https://forum.dfinity.org/t/how-to-easily-use-vue-3-x-with-icp-step-by-step-guide/12083 "2022-04-12T09:35:49Z")

</div>

Hey there all :slight\_smile: I’ve been looking into the easiest way of using the build installation process for Vue 3.x and implement that into ICP assets canister and since I managed to make it work in a couple of hour…
