Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
How to serve up server data to webflow site using javascript

I've successfully received API data using my node server and now I want to display it on my webflow site. I can do this easily enough with a local index.html client but how to do it when it's a remote client hosted on webflow? What client side javacript do I need to add in the webflow code block to display the console logged data? Here is my node js code. Thanks for any help.

        const Blockfrost = require('@blockfrost/blockfrost-js');

    const API = new Blockfrost.BlockFrostAPI({
      projectId: 'xxxxxxxxxxxxxxxxx',
    });

    const PAGE_SIZE = 100 /* 100 is the max Blockfrost page size */
    const stake_address = 'stake1';

    async function count_assets() {
      let total = 0;
      try {
        let page = 1;
        let assets = [];
        // Retrieve assets as long as pages are full
        do {
          assets = await API.accountsAddressesAssets(
            stake_address,
            { page: page, count: PAGE_SIZE, order: 'asc' }
          );
          total += assets.length;
          page++;
        } while (assets.length == PAGE_SIZE);
      } catch (err) {
        console.log('error', err);
      }
      return total;
    }

    count_assets(stake_address).then(assets => {
      console.log(stake_address, 'assets:', assets);
    });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!