강의

멘토링

로드맵

Inflearn コミュニティ Q&A

entity のプロフィール画像
entity

投稿した質問数

EOSJSを使用したEOSシンプルウォレットの作成

getInfo

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

作成

·

279

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)

blockchainjavascriptdappEOSJS

回答

回答を待っている質問です
最初の回答を残してください!
entity のプロフィール画像
entity

投稿した質問数

質問する