GithubHelp home page GithubHelp logo

Comments (4)

Mrtenz avatar Mrtenz commented on July 26, 2024 1

Please provide a reproducable example, as I am not able to reproduce this. This works fine for example:

import { getTokenBalances } from '@mycrypto/eth-scan';

getTokenBalances('https://api.mycryptoapi.com/eth', ['0xbbf0cc1c63f509d48a4674e270d26d80ccaf6022'], '0x744d70fdbe2ba4cf95131626614a1763df805b9e')
  .then(console.log)
  .catch(console.error);

// Results in:
// {
//  '0xbbf0cc1c63f509d48a4674e270d26d80ccaf6022':
//    BigNumber { _hex: '0x06605e51e489daf5ac88c0b9', _isBigNumber: true }
// }

from eth-scan.

Mrtenz avatar Mrtenz commented on July 26, 2024

What do you call the functions with?

from eth-scan.

RyRy79261 avatar RyRy79261 commented on July 26, 2024

I used a metamask current provider & an Infura rpc url.

I manually passed the address of the metamask account in and as a token I used the SNT token as a test address (0x744d70fdbe2ba4cf95131626614a1763df805b9e)

I suspect there might be something a miss with how I'm compiling but I wasn't able to investigate the stack trace further than that

from eth-scan.

RyRy79261 avatar RyRy79261 commented on July 26, 2024

Thanks @Mrtenz, the snippet worked

I think there might be a state issue on my end, closing ticket

from eth-scan.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.