区块链技术博客
www.b2bchain.cn

The MetaMask Web3 object does not support synchronous methods like eth_getBalance

这篇文章主要介绍了The MetaMask Web3 object does not support synchronous methods like eth_getBalance,通过具体代码讲解8120并且分析了The MetaMask Web3 object does not support synchronous methods like eth_getBalance的详细步骤与相关技巧,需要的朋友可以参考下

本文实例讲述了The MetaMask Web3 object does not support synchronous methods like eth_getBalance。分享给大家供大家参考文章查询地址https://www.b2bchain.cn/8120.html。具体如下:

   原文

The MetaMask Web3 object does not support synchronous methods like eth_getBalance

写成这样格式就可以了

 

 web3.eth.getBalance( '0x049595ba98baa7bc33b4ddb823cf981361389581',function(err,res){        if(!err) {            console.log(res);            $("#accBalance").html("Account Balance: " + res);           }else{            console.log(err);        }    });

公众号每周推送区块链技术文章

个人踩坑日记

The MetaMask Web3 object does not support synchronous methods like eth_getBalance

本文地址https://www.b2bchain.cn/8120.html

赞(0) 打赏
部分文章转自网络,侵权联系删除b2bchain区块链学习技术社区 » The MetaMask Web3 object does not support synchronous methods like eth_getBalance
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

b2b链

联系我们联系我们