Comments (1)
Hi, the answers are yes.
I am looking for a php library that will allow me to convert Wei token transaction values to human readable values like the ones seen in the block explorer.
The Utils class has some "toString" functions that transform string numbers and Big numbers to human readable strings, like:
Get average-human readable string representation from a value conversion:
$s_val = Utils::fromWeiToString('1001', 'kwei'); // "1.001"
$s_val2 = Utils::toEtherString('100000000000000000', 'wei'); // "0.1"
Is it also compatible with the Binance smart chain? thank you
Yes, Simple Web3 Php works with all chains using EVM (Ethereum virtual machine), and BSC does.
BTW, for next non-issue questions, is more desirable to use other channels as Gitter. It's faster and we leave the issues for real feature requests or library problems.
from simple-web3-php.
Related Issues (20)
- Error on hex BN convert HOT 5
- 合约解析 数组元组模式出现错误 HOT 3
- 请问有 使用 eth.subscribe的方法吗? HOT 1
- null result from $sweb3->getTransactionReceipt($txHash);
- ERROR: estimateGas error: execution reverted: Ownable: caller is not an owner HOT 3
- error when call $result = $sweb3->send($sendParams); HOT 1
- countryBlocked! HOT 1
- Send array parameters HOT 1
- Attemps to read property "inputs" on null HOT 2
- \drlecks\simple-web3-php\Core\ABI.php:272 Error type HOT 6
- Tuple compilation data is not the same HOT 1
- Call to a member function toHex() on array HOT 11
- Signature is not correct for a complex contract HOT 2
- Passt Tuple parameters to contract HOT 1
- [Conflicts] Can't install via composer require HOT 1
- Get Balance HOT 5
- Автовыввод HOT 3
- How to estimate gas for contract method call HOT 1
- Add custom convert value HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-web3-php.