# \#agent

**URL:** https://forum.dfinity.org/tag/agent/16.md

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

---

## [AI is Making Spam Cheaper, Can We Replace Open Discord Invites with a Canister Gate?](https://forum.dfinity.org/t/ai-is-making-spam-cheaper-can-we-replace-open-discord-invites-with-a-canister-gate/74976)

<div class="topic-metadata">

**Author:** [@tkhs-hyt](https://forum.dfinity.org/u/tkhs-hyt)\
**Replies:** 1\
**Last updated:** [August 8, 2026, 6:08pm UTC](https://forum.dfinity.org/t/ai-is-making-spam-cheaper-can-we-replace-open-discord-invites-with-a-canister-gate/74976 "2026-08-08T18:08:41Z")

</div>

Hi community, here’s an idea.With AI lowering attack costs, cyber warfare is accelerating. For example, spam and scam accounts enter public communities via open invite links, post freely, and flood members and admins w…

---

## [Ic-py Development and Ongoing Maintenance](https://forum.dfinity.org/t/ic-py-development-and-ongoing-maintenance/47455)

<div class="topic-metadata">

**Author:** [@C-B-Elite](https://forum.dfinity.org/u/C-B-Elite)\
**Replies:** 81\
**Last updated:** [May 13, 2026, 10:23am UTC](https://forum.dfinity.org/t/ic-py-development-and-ongoing-maintenance/47455 "2026-05-13T10:23:29Z")

</div>

Background The original ic-py development team has ceased maintenance of the project. Having maintained a close relationship with the former team—we were jointly supported by the same incubator, now disbanded—I have secu…

---

## [@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…

---

## [Watermark error when trying to access the canister via agent-js](https://forum.dfinity.org/t/watermark-error-when-trying-to-access-the-canister-via-agent-js/43821)

<div class="topic-metadata">

**Author:** [@let4be](https://forum.dfinity.org/u/let4be)\
**Replies:** 9\
**Last updated:** [April 15, 2025, 9:44am UTC](https://forum.dfinity.org/t/watermark-error-when-trying-to-access-the-canister-via-agent-js/43821 "2025-04-15T09:44:21Z")

</div>

Constant error when using agent-js, canister inaccessible with 75% of calls failing with Error while making call: Timestamp failed to pass the watermark after retrying the configured 3 times. We cannot guarantee the int…

---

## [How to send a pre-signed query request using @dfinity/agent?](https://forum.dfinity.org/t/how-to-send-a-pre-signed-query-request-using-dfinity-agent/43502)

<div class="topic-metadata">

**Author:** [@alexeychirkov](https://forum.dfinity.org/u/alexeychirkov)\
**Replies:** 4\
**Last updated:** [April 9, 2025, 4:48pm UTC](https://forum.dfinity.org/t/how-to-send-a-pre-signed-query-request-using-dfinity-agent/43502 "2025-04-09T16:48:18Z")

</div>

Hi everyone! :waving\_hand: I have a canister that prepares and signs a query request, and this request needs to be sent to the IC network from the browser. The request is passed into the browser as a Uint8Array | numbe…

---

## [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…

---

## [Inconsistent behaviour of agent 2.1.2 on #\[inspect\_message\]](https://forum.dfinity.org/t/inconsistent-behaviour-of-agent-2-1-2-on-inspect-message/36466)

<div class="topic-metadata">

**Author:** [@Oleksii](https://forum.dfinity.org/u/Oleksii)\
**Replies:** 1\
**Last updated:** [October 24, 2024, 6:27am UTC](https://forum.dfinity.org/t/inconsistent-behaviour-of-agent-2-1-2-on-inspect-message/36466 "2024-10-24T06:27:02Z")

</div>

Good afternoon. I am working on the implementation of #\[inspect\_message\] in our project and I encountered unexpected behavior of the Dfinity agent. I have simple function: #\[update\] async fn create\_account() -\> HttpRes…

---

## [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…

---

## [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…

---

## [IC\_TOOLS 2.0.0 Dart & Flutter](https://forum.dfinity.org/t/ic-tools-2-0-0-dart-flutter/20822)

<div class="topic-metadata">

**Author:** [@levi](https://forum.dfinity.org/u/levi)\
**Replies:** 3\
**Last updated:** [October 11, 2023, 6:09am UTC](https://forum.dfinity.org/t/ic-tools-2-0-0-dart-flutter/20822 "2023-10-11T06:09:40Z")

</div>

Hi People, ic\_tools 2.0.0 for Dart and Flutter is here. 2.0.0 comes with fresh documentation and a boatload of new features. Questions and comments are welcome. -Levi.

---

## [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…

---

## [What is / How to use AgentEnvironment?](https://forum.dfinity.org/t/what-is-how-to-use-agentenvironment/20060)

<div class="topic-metadata">

**Author:** [@aarontheninetyninth](https://forum.dfinity.org/u/aarontheninetyninth)\
**Replies:** 1\
**Last updated:** [May 19, 2023, 7:57am UTC](https://forum.dfinity.org/t/what-is-how-to-use-agentenvironment/20060 "2023-05-19T07:57:17Z")

</div>

I created a new identity and gave it the name of a principal i use + set a password. When I use any critical dfx command in the root folder of the project like dfx deploy I get a prompt to Please enter the passphrase…

---

## [Node.js to/from candid](https://forum.dfinity.org/t/node-js-to-from-candid/19526)

<div class="topic-metadata">

**Author:** [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Replies:** 8\
**Last updated:** [April 21, 2023, 3:45pm UTC](https://forum.dfinity.org/t/node-js-to-from-candid/19526 "2023-04-21T15:45:19Z")

</div>

I want to backup/restore canister data using agent.js. Also I want to parse/generate .did file with canister init args. Is there way to parse candid data based on idlFactory? Is there way to convert js data fetched vi…

---

## [AgentJS throws error if declarations are outdated](https://forum.dfinity.org/t/agentjs-throws-error-if-declarations-are-outdated/19031)

<div class="topic-metadata">

**Author:** [@harshbaz](https://forum.dfinity.org/u/harshbaz)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 4:43pm UTC](https://forum.dfinity.org/t/agentjs-throws-error-if-declarations-are-outdated/19031 "2023-03-21T16:43:56Z")

</div>

Hello, We have 1000s of canisters hosted in the subnet. And it takes hours to update all of them. A problem we encountered while going through the whole process was to decide when does the frontend update? Because we’r…

---

## [Ic-agent Whether the package cannot be used on the IC chain](https://forum.dfinity.org/t/ic-agent-whether-the-package-cannot-be-used-on-the-ic-chain/18977)

<div class="topic-metadata">

**Author:** [@ic\_axb](https://forum.dfinity.org/u/ic_axb)\
**Replies:** 4\
**Last updated:** [March 20, 2023, 7:15am UTC](https://forum.dfinity.org/t/ic-agent-whether-the-package-cannot-be-used-on-the-ic-chain/18977 "2023-03-20T07:15:41Z")

</div>

I did it after importing ic-agent = “0.22.0” package An error will be reported after the dfx deploy command The specific error information is as follows I searched for some projects in dfinity and found that quill and…

---

## [Mismatching \`@dfinity/agent\` versions can cause hashing issues](https://forum.dfinity.org/t/mismatching-dfinity-agent-versions-can-cause-hashing-issues/7359)

<div class="topic-metadata">

**Author:** [@jorgenbuilder](https://forum.dfinity.org/u/jorgenbuilder)\
**Replies:** 8\
**Last updated:** [November 16, 2021, 5:35pm UTC](https://forum.dfinity.org/t/mismatching-dfinity-agent-versions-can-cause-hashing-issues/7359 "2021-11-16T17:35:11Z")

</div>

Was running into the following error: Uncaught (in promise) Error: Attempt to hash a value of unsupported type: dslea-eiaaa-aaaae-aaa3a-cai at hashValue (request\_id.js?62bc:59) at eval (request\_id.js?62bc:89) …

---

## [New Dart Library! anyone want to see the https-api-specification written in 500 lines of code?](https://forum.dfinity.org/t/new-dart-library-anyone-want-to-see-the-https-api-specification-written-in-500-lines-of-code/6574)

<div class="topic-metadata">

**Author:** [@levi](https://forum.dfinity.org/u/levi)\
**Replies:** 9\
**Last updated:** [August 29, 2021, 4:06pm UTC](https://forum.dfinity.org/t/new-dart-library-anyone-want-to-see-the-https-api-specification-written-in-500-lines-of-code/6574 "2021-08-29T16:06:05Z")

</div>

Hi, I have a dart package that i publish on pub.dev: ic\_tools | Dart Package It can call canisters with the dart code with update or query calls and verify the certificate with the correct specification. The source for …
