# Flow JavaScript SDK

**URL:** https://forum.flow.com/c/flow-sdks/flow-javascript-sdk/14.md

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

---

## [About the Flow JavaScript SDK category](https://forum.flow.com/t/about-the-flow-javascript-sdk-category/120)

<div class="topic-metadata">

**Author:** [@Mackenzie](https://forum.flow.com/u/Mackenzie)\
**Replies:** 0

</div>

---

## [How I Fixed Wallet State Issues Using FCL with Flow JavaScript SDK](https://forum.flow.com/t/how-i-fixed-wallet-state-issues-using-fcl-with-flow-javascript-sdk/8085)

<div class="topic-metadata">

**Author:** [@tisabib](https://forum.flow.com/u/tisabib)\
**Replies:** 0\
**Last updated:** [July 27, 2025, 2:59pm UTC](https://forum.flow.com/t/how-i-fixed-wallet-state-issues-using-fcl-with-flow-javascript-sdk/8085 "2025-07-27T14:59:35Z")

</div>

Hello I ran into an issue while using the Flow JavaScript SDK (FCL) in my project. After logging in with a wallet; everything worked fine until the user refreshed the page. :innocent:The wallet state didn’t persist prop…

---

## [Flow JS SDK Error: Response closed without headers](https://forum.flow.com/t/flow-js-sdk-error-response-closed-without-headers/1889)

<div class="topic-metadata">

**Author:** [@dh77](https://forum.flow.com/u/dh77)\
**Replies:** 17\
**Last updated:** [June 5, 2023, 7:49pm UTC](https://forum.flow.com/t/flow-js-sdk-error-response-closed-without-headers/1889 "2023-06-05T19:49:39Z")

</div>

Hey everyone, I’m using Flow JS SDK on the backend. When running this script: const response = await sdk.send(await sdk.build(\[ await sdk.getAccount(testNodeAddress) \]), { node: testNetNode }) it shows an er…

---

## [Account Generation Java Script](https://forum.flow.com/t/account-generation-java-script/4829)

<div class="topic-metadata">

**Author:** [@Pankaj](https://forum.flow.com/u/Pankaj)\
**Replies:** 0\
**Last updated:** [May 30, 2023, 5:26pm UTC](https://forum.flow.com/t/account-generation-java-script/4829 "2023-05-30T17:26:31Z")

</div>

I am trying to generate account by using @onflow/fcl library. I do not want any frontend or browser to execute my code. I will just make an API for generating account. But facing too many errors.

---

## [Password authentication failed for user "kittyuser"](https://forum.flow.com/t/password-authentication-failed-for-user-kittyuser/1479)

<div class="topic-metadata">

**Author:** [@Mio](https://forum.flow.com/u/Mio)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 2:54pm UTC](https://forum.flow.com/t/password-authentication-failed-for-user-kittyuser/1479 "2023-01-19T14:54:26Z")

</div>

Hi there, Trying to run “kitty-items-js” by following its instruction on “kitty-items” GitHub page: However, there seems to be an error related to password authentication ( see below ): flow-kitty-items@0.0.1 start:…

---

## [Is Bulk Minting is possible in FLOW-FCL](https://forum.flow.com/t/is-bulk-minting-is-possible-in-flow-fcl/4004)

<div class="topic-metadata">

**Author:** [@Shivam001](https://forum.flow.com/u/Shivam001)\
**Replies:** 1\
**Last updated:** [January 6, 2023, 11:48pm UTC](https://forum.flow.com/t/is-bulk-minting-is-possible-in-flow-fcl/4004 "2023-01-06T23:48:54Z")

</div>

const mint = async () =\> { try { const transactionId = await fcl.send(\[ fcl.transaction(mintNFT), fcl.args(\[ fcl.arg(hash, t.String), fcl.arg(name…

---

## [Pre-authz failed - payload too large Error](https://forum.flow.com/t/pre-authz-failed-payload-too-large-error/3962)

<div class="topic-metadata">

**Author:** [@developer.mobilefirs](https://forum.flow.com/u/developer.mobilefirs)\
**Replies:** 0\
**Last updated:** [December 14, 2022, 5:40am UTC](https://forum.flow.com/t/pre-authz-failed-payload-too-large-error/3962 "2022-12-14T05:40:49Z")

</div>

\*\* pre-autz failed when minting large images. anything beyond 300kb pre-autz fails \*\*

---

## [Computation limited exceeded:](https://forum.flow.com/t/computation-limited-exceeded/3707)

<div class="topic-metadata">

**Author:** [@developer.mobilefirs](https://forum.flow.com/u/developer.mobilefirs)\
**Replies:** 0\
**Last updated:** [October 11, 2022, 11:06am UTC](https://forum.flow.com/t/computation-limited-exceeded/3707 "2022-10-11T11:06:52Z")

</div>

I am getting computation limit exceeded and not able to track what is the issue. I have also checked increasing the limit to 9999. Not sure how this calculation is made at the backend, but this is something which is very…

---

## [Read NFT Metadata from Wallet Connection](https://forum.flow.com/t/read-nft-metadata-from-wallet-connection/3589)

<div class="topic-metadata">

**Author:** [@Matt](https://forum.flow.com/u/Matt)\
**Replies:** 0\
**Last updated:** [September 19, 2022, 4:08pm UTC](https://forum.flow.com/t/read-nft-metadata-from-wallet-connection/3589 "2022-09-19T16:08:58Z")

</div>

Hey Flow community! I am just about a week into exploring the Flow blockchain, trying to build super basic application to connect to wallet and list the metadata from the NFTs contained within connected wallet. I manage…

---

## [431 error in Dapper wallet login](https://forum.flow.com/t/431-error-in-dapper-wallet-login/3546)

<div class="topic-metadata">

**Author:** [@FOGGYOON](https://forum.flow.com/u/FOGGYOON)\
**Replies:** 0\
**Last updated:** [August 31, 2022, 6:37pm UTC](https://forum.flow.com/t/431-error-in-dapper-wallet-login/3546 "2022-08-31T18:37:36Z")

</div>

Hi :slight\_smile: When I tried to login Dapper wallet. I got 431 error. Here is the dapper wallet config. config().put(‘discovery.wallet’, ‘https://staging.accounts.meetdapper.com/fcl/authn-restricted’); config().put…

---

## [Transaction arguments are invalid](https://forum.flow.com/t/transaction-arguments-are-invalid/3304)

<div class="topic-metadata">

**Author:** [@e11](https://forum.flow.com/u/e11)\
**Replies:** 2\
**Last updated:** [June 25, 2022, 5:40pm UTC](https://forum.flow.com/t/transaction-arguments-are-invalid/3304 "2022-06-25T17:40:28Z")

</div>

Hi. I am developing an nft mint. I deployed my contracts to testnet. I created my NFT on Playground. But i tried with react / onflow that error occured: invalid argument at index 6: decodeing argument failed: \[Error …

---

## [How to count items minted](https://forum.flow.com/t/how-to-count-items-minted/3174)

<div class="topic-metadata">

**Author:** [@veerdev](https://forum.flow.com/u/veerdev)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 7:13pm UTC](https://forum.flow.com/t/how-to-count-items-minted/3174 "2022-05-30T19:13:51Z")

</div>

How do we count the number of times a item is minted? can we query it. I dont have an function on my contract to this, is there is a way to query it. my minting function looks like below, recipient.deposit(token: \<-cr…

---

## [Flow fcl verifyUserSignatures Error](https://forum.flow.com/t/flow-fcl-verifyusersignatures-error/2958)

<div class="topic-metadata">

**Author:** [@devgiri00082](https://forum.flow.com/u/devgiri00082)\
**Replies:** 3\
**Last updated:** [April 3, 2022, 2:41pm UTC](https://forum.flow.com/t/flow-fcl-verifyusersignatures-error/2958 "2022-04-03T14:41:12Z")

</div>

I am trying to authenticate the owner of the account in the backend so I am using account\_proof. Before I tried using 'accessNode.api': 'access.mainnet.nodes.onflow.org:9000' but it gave me this error Error: Response cl…

---

## [Flow js Send Transfer](https://forum.flow.com/t/flow-js-send-transfer/2887)

<div class="topic-metadata">

**Author:** [@menghui](https://forum.flow.com/u/menghui)\
**Replies:** 0\
**Last updated:** [March 5, 2022, 1:26pm UTC](https://forum.flow.com/t/flow-js-send-transfer/2887 "2022-03-05T13:26:30Z")

</div>

Hello I am developing a node app to do some simple actions just like get balance and send transfer. I got balance of an account using @onflow/sdk-account. But it is very difficult to get some instruction. I already d…

---

## [Error Subscribing To Events In Default Docs](https://forum.flow.com/t/error-subscribing-to-events-in-default-docs/2871)

<div class="topic-metadata">

**Author:** [@isaw81](https://forum.flow.com/u/isaw81)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 11:07pm UTC](https://forum.flow.com/t/error-subscribing-to-events-in-default-docs/2871 "2022-03-02T23:07:04Z")

</div>

Using the Flow Docs description for how to subscribe to events is simply: // in some react component fcl.events(eventName).subscribe((event) =\> { console.log(event) }) However all attempts at using this give the err…

---

## [Error trying to get USDC (FiatToken) balance](https://forum.flow.com/t/error-trying-to-get-usdc-fiattoken-balance/2805)

<div class="topic-metadata">

**Author:** [@codington](https://forum.flow.com/u/codington)\
**Replies:** 5\
**Last updated:** [February 10, 2022, 4:08pm UTC](https://forum.flow.com/t/error-trying-to-get-usdc-fiattoken-balance/2805 "2022-02-10T16:08:56Z")

</div>

Hi all… very excited about the USDC announcement and post from @andrea and I’m trying to start leveraging it. It seemed like the simplest thing to start with would be to follow the setup instructions and then simply try…

---

## [Events subscribe throws Error](https://forum.flow.com/t/events-subscribe-throws-error/2367)

<div class="topic-metadata">

**Author:** [@Creator](https://forum.flow.com/u/Creator)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 7:07pm UTC](https://forum.flow.com/t/events-subscribe-throws-error/2367 "2021-10-25T19:07:53Z")

</div>

While using the following routine: fcl.events(eventName).subscribe((event) =\> { console.log(event) }) I am getting ReferenceError: getEvents is not defined at fcl.module.js:1 If anyone has some fix? Regards

---

## [Create account -\> Generate key pair](https://forum.flow.com/t/create-account-generate-key-pair/2425)

<div class="topic-metadata">

**Author:** [@Largos](https://forum.flow.com/u/Largos)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 12:57am UTC](https://forum.flow.com/t/create-account-generate-key-pair/2425 "2021-10-04T00:57:25Z")

</div>

Hi all, I’m trying to generate a keypair in order to create a flow account. I’m using elliptic library with this code: const ec = new ec(‘p256’) const key = ec.genKeyPair(); the problem is I’m checking the public ke…

---

## [Add Account: Transaction succeeded but throws an Error](https://forum.flow.com/t/add-account-transaction-succeeded-but-throws-an-error/2391)

<div class="topic-metadata">

**Author:** [@Creator](https://forum.flow.com/u/Creator)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 7:38pm UTC](https://forum.flow.com/t/add-account-transaction-succeeded-but-throws-an-error/2391 "2021-09-20T19:38:42Z")

</div>

Hi everyone, I am adding an account using emulator / service account, and using the exact code provided on flow docs JS function returning a Promise returning txID: const addAccounts = () =\> { return fcl.send(\[ fc…

---

## [Unable to run Kitty Items against testnet](https://forum.flow.com/t/unable-to-run-kitty-items-against-testnet/2354)

<div class="topic-metadata">

**Author:** [@amarsh.anand](https://forum.flow.com/u/amarsh.anand)\
**Replies:** 1\
**Last updated:** [September 1, 2021, 7:21pm UTC](https://forum.flow.com/t/unable-to-run-kitty-items-against-testnet/2354 "2021-09-01T19:21:58Z")

</div>

I am getting the following error after authorising with Blockto: Error: 2 errors occurred: \* rpc error: code = Internal desc = failed to execute the script on the execution node execution-5f6c73a22445d7d958c6a37c1f3be…

---

## [UFix64 as arg is deprecated but UFix256 not available](https://forum.flow.com/t/ufix64-as-arg-is-deprecated-but-ufix256-not-available/2285)

<div class="topic-metadata">

**Author:** [@Creator](https://forum.flow.com/u/Creator)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 3:29pm UTC](https://forum.flow.com/t/ufix64-as-arg-is-deprecated-but-ufix256-not-available/2285 "2021-08-10T15:29:19Z")

</div>

Hi Guys, I am trying to pass UFix64 args ex: fcl.arg(parseFloat(price), t.UFix64), Then I get the following message : @onflow/types Deprecation Notice========================Passing in Numbers as values fo…

---

## [Failed to execute script at block](https://forum.flow.com/t/failed-to-execute-script-at-block/2234)

<div class="topic-metadata">

**Author:** [@shadyr6](https://forum.flow.com/u/shadyr6)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 4:15pm UTC](https://forum.flow.com/t/failed-to-execute-script-at-block/2234 "2021-07-30T16:15:19Z")

</div>

import \* as fcl from “@onflow/fcl”; import \* as t from “@onflow/types”; export const LatestListing = async () =\> { const script = \`import NFTStorefront from 0x4fc019cea9fc4817 pub fun main(set : UInt64) : \[UInt64\]{ …

---

## [Invalid proposal key during account creation on flow-js-testing](https://forum.flow.com/t/invalid-proposal-key-during-account-creation-on-flow-js-testing/2222)

<div class="topic-metadata">

**Author:** [@xie](https://forum.flow.com/u/xie)\
**Replies:** 2\
**Last updated:** [July 23, 2021, 3:39am UTC](https://forum.flow.com/t/invalid-proposal-key-during-account-creation-on-flow-js-testing/2222 "2021-07-23T03:39:55Z")

</div>

I am trying to follow along the API for creating javascript tests for my contracts and I am running to an issue at the account creation example and any other commands that I try to run. The error that I see is something …

---

## [Error when sending interaction on js SDK](https://forum.flow.com/t/error-when-sending-interaction-on-js-sdk/2219)

<div class="topic-metadata">

**Author:** [@Ula](https://forum.flow.com/u/Ula)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 9:08am UTC](https://forum.flow.com/t/error-when-sending-interaction-on-js-sdk/2219 "2021-07-21T09:08:57Z")

</div>

I’m new to flow, trying to get familiar. Receiving error message to the following code: await sdk.send(await sdk.build(\[ sdk.getAccount("0xba1132bc08f82fe2") \])) The error is: (node:5548) UnhandledPromiseReject…

---

## [Using env/config variables not working in import statements](https://forum.flow.com/t/using-env-config-variables-not-working-in-import-statements/2182)

<div class="topic-metadata">

**Author:** [@Creator](https://forum.flow.com/u/Creator)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 7:41am UTC](https://forum.flow.com/t/using-env-config-variables-not-working-in-import-statements/2182 "2021-07-21T07:41:34Z")

</div>

My config.js file set 3 variables: config() .put("accessNode.api", process.env.REACT\_APP\_ACCESS\_NODE) .put("challenge.handshake", process.env.REACT\_APP\_WALLET\_DISCOVERY) .put("0xAccount", process.env.REACT\_APP\_ACC…

---

## [Next.js Setting up Authentication](https://forum.flow.com/t/next-js-setting-up-authentication/1666)

<div class="topic-metadata">

**Author:** [@Phenomenon](https://forum.flow.com/u/Phenomenon)\
**Replies:** 4\
**Last updated:** [July 9, 2021, 8:09pm UTC](https://forum.flow.com/t/next-js-setting-up-authentication/1666 "2021-07-09T20:09:37Z")

</div>

Hello, I’m trying to set up the Authentication in the Flow-Quick Start tutorial however, whenever I click the sign-up or log in buttons I receive an error TypeError: Failed to construct 'URL': Invalid URL I have a next.…

---

## [Deploying Contracts and Signing Transaction from Node](https://forum.flow.com/t/deploying-contracts-and-signing-transaction-from-node/657)

<div class="topic-metadata">

**Author:** [@qvvg](https://forum.flow.com/u/qvvg)\
**Replies:** 3\
**Last updated:** [July 6, 2021, 5:14am UTC](https://forum.flow.com/t/deploying-contracts-and-signing-transaction-from-node/657 "2021-07-06T05:14:43Z")

</div>

Some of our friends are wanting to interact with the chain directly from node. This could be for various reasons but most of the time it seems its all about contract deployment or having a backend service do some sort of…

---

## [Error While running a transaction](https://forum.flow.com/t/error-while-running-a-transaction/2049)

<div class="topic-metadata">

**Author:** [@shadyr6](https://forum.flow.com/u/shadyr6)\
**Replies:** 3\
**Last updated:** [June 17, 2021, 1:23am UTC](https://forum.flow.com/t/error-while-running-a-transaction/2049 "2021-06-17T01:23:14Z")

</div>

import React, {useState} from “react” import \* as fcl from “@onflow/fcl” import styled from ‘styled-components’ const simpleTransaction = fcl.cdc\` import NonFungibleToken from 0x4fc019cea9fc4817 import KittyItems fr…

---

## [Transaction Error](https://forum.flow.com/t/transaction-error/2057)

<div class="topic-metadata">

**Author:** [@shadyr6](https://forum.flow.com/u/shadyr6)\
**Replies:** 2\
**Last updated:** [June 16, 2021, 3:55pm UTC](https://forum.flow.com/t/transaction-error/2057 "2021-06-16T15:55:15Z")

</div>

import React, {useState} from “react” import \* as fcl from “@onflow/fcl” import styled from ‘styled-components’ import \* as t from “@onflow/types” const Card = styled.div\` margin: 10px 5px; padding: 10px; border: …

---

## [Grpc error when using FCL to deploy contracts to Testnet](https://forum.flow.com/t/grpc-error-when-using-fcl-to-deploy-contracts-to-testnet/2012)

<div class="topic-metadata">

**Author:** [@Fou](https://forum.flow.com/u/Fou)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 6:52pm UTC](https://forum.flow.com/t/grpc-error-when-using-fcl-to-deploy-contracts-to-testnet/2012 "2021-05-31T18:52:55Z")

</div>

Hi all, I’m having weird issues when using FCL to deploy contracts to Testnet result from execution node: 2 errors occurred: \* rpc error: code = Internal desc = grpc: error while marshaling: string field contains i…

[Next page](https://forum.flow.com/c/flow-sdks/flow-javascript-sdk/14.md?page=1)
