inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

EOSJS를 이용한 EOS 심플 월렛 만들기

getInfo

API 조회에서 에러가 납니다.

296

allen lim

작성한 질문수 4

0

const Eos = require('eosjs');

 

const config = {

    httpEndpoint: 'http://178.62.36.41:8888'

};

 

Eos(config).getInfo((error, info) => {

    if(error){

        console.error(error);

    }

 

    console.log(info);

});

 

 

결과가 아래와 같이 오류로 나옵니다.

다른 

HTTP API LIST를 사용해도 동일합니다.

 

TypeError: Eos is not a function

    at Object.<anonymous> (/Users/hyungsoolim/eos/getInfo.js:7:1)

    at Module._compile (internal/modules/cjs/loader.js:721:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)

    at Module.load (internal/modules/cjs/loader.js:620:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)

    at Function.Module._load (internal/modules/cjs/loader.js:552:3)

    at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)

    at executeUserCode (internal/bootstrap/node.js:342:17)

    at startExecution (internal/bootstrap/node.js:276:5)

    at startup (internal/bootstrap/node.js:227:5)

blockchain javascript dapp EOSJS

답변 1

0

Dong Jun Kwon

eosjs를 설치 하셧나요? 설치 하셨으면 버젼이 20.으로 되면서 나는 부분이에요. 20.0으로 버젼 업이 퇴근에 되서요. 해당 강의는 v16.x 버젼으로 진행하셔야되요.

useCallback ⊂ useMemo

0

5

1

깃허브 저장소를 어디에 첨부하셨나요?

1

11

1

nestjs 강의는 없나요??

1

13

2

스타터 저장소

1

13

1

What is Rxjs

0

8

1

라이브러리 설치 질문

0

12

2

linter 질문

0

16

2

수업자료 링크 접속했는데 404에러 뜹니다 ㅠ

1

25

1

primitive에 onClick 이벤트가 안되는 경우

0

19

1

감정일기장 vercel 배포 후 새로 고침 시 404페이지가 뜨는 이유

0

30

2

자료실

1

28

2

Sort 메서드 관련 아티클

0

35

2

4.1) React.js를 소개합니다 강의를 듣고 궁금한 점이 생겼습니다.

0

35

2

html, body에 적용하는 css 스타일 질문입니다.

0

33

2

html / css 기초는 있습니다..

0

44

2

mainnet transaction

0

312

1

소리가 너무 작아요

0

274

0

transfer에러

0

757

5

transcation, contract api 에러

0

294

0

16.02 설치 관련

0

421

2

안녕하세요 질문드립니다

0

329

2

eosjs@16.0.9 버전으로 하면 에러가 나네요...

0

288

0

transfer.js를 그대로 따라했는데 안되네요

0

306

1

기린넷에 계정이 안만들어집니다.

0

290

1