問題タブ [ethers.js]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
98 参照

ethereum - Extracting plain integer from a bigNumber

I have the requirement to extract plain integer from a smart contract function that returns a bigNumber. I'm trying to extract as seen below. Is this a good practice or a bad workaround? If its the latter, can someone suggest a better way of doing this?

const bal = parseInt(formatUnits(balance,"wei"));

0 投票する
0 に答える
250 参照

node.js - BSC のトークンから流動性量を取得する

ノード js を使用して BSC で特定のトークンの流動性を取得するにはどうすればよいですか?

トークンの流動性を抽出したいと思います。