我尝试执行此代码并接收当前的区块链区块号
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
发布于 2019-06-10 17:27:22
我找到了答案)我忘了重新构建我的React应用程序。抱歉的。
https://stackoverflow.com/questions/56522263
复制相似问题