JavaScript code problem!

I try to run the code, but it gives an error. I don’t understand what’s going on. The input value is correct.

Hey @Denis_Praskov, welcome to the community! n8n expects return values always to be in the following format:

{
  "json": {"key": "value"}
}

So in your case it would expect

return {"json": {"lastBalance": str}}

You can read more on the data format here. Hope that helps :slight_smile:

1 Like

Thank you very much, you really helped me out :innocent:

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.