刚接触Ethersjs 为什么一直连接超时呀 #463
-
Beta Was this translation helpful? Give feedback.
Answered by
riskers
Mar 29, 2023
Replies: 1 comment
-
getBalance 是 await 方法 const ethers = require('ethers')
const provider = new ethers.getDefaultProvider()
;(async () => {
const balance = await provider.getBalance(`vitalik.eth`)
console.log(balance)
})() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
XdpCs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
getBalance 是 await 方法