【问题标题】:Unable to get response from the library无法从图书馆获得响应
【发布时间】:2019-10-24 14:39:09
【问题描述】:

我尝试执行此代码并接收当前区块链块号

nodeInteraction.currentHeight('https://nodes.wavesplatform.com/').then((res) => {
  console.log(res);
});

我没有忘记导入库

import { invokeScript, broadcast, nodeInteraction, waitForTx } from '@waves/waves-transactions';

此代码已正确执行。

nodeInteraction.accountData(dappaddress, baseUri).then((v) => {
    window.dAppData = v;
    if (v) {
        window.dAppDataKeys = Object.keys(v);
        console.log("dApp Account data:");
        console.log(v);
        console.log(JSON.stringify(v));
    }
});

我正在使用下面的库

https://wavesplatform.github.io/waves-transactions/globals.html#currentheight

【问题讨论】:

  • 你得到什么错误?
  • 我没有收到错误。

标签: node.js wavesplatform ride


【解决方案1】:

我找到了答案)我忘了重新构建我的 React 应用程序。对不起。

【讨论】:

    猜你喜欢
    • 2020-08-25
    • 2021-07-18
    • 2018-02-20
    • 2020-12-11
    • 1970-01-01
    • 2016-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多