Comments (1)
In terms of EVM there are no decimals in tokens at all. However, most of the tokens have 18 decimals, meaning if you want to send 1.555 tokens you need to send 1.555*10^18 value. To check how many decimans token you are interacting with has, simply navigate to etherscan and check "decimals()" function in read contract tab.
from web3.php.
Related Issues (20)
- Calling decode parameters but given this error, anyone can help?
- weird logic of enabling/disabling batch
- Fatal error: Uncaught Exception: cURL error 28: Failed to connect to data-seed-prebsc-1-s1.binance.org port 8545
- Failed to call smart contract method. HOT 1
- Failed to Transfer Token Between Wallet HOT 3
- Generate New Address Based On Private key or Public key HOT 2
- multicall error HOT 1
- Are there any cases where address[] is used for trading
- eth_sign的参数都是什么?一直报错 HOT 1
- Invalid signature v value HOT 1
- PancakeSwap HOT 1
- trouble trying to send data HOT 1
- Contracts/Types/Address.php issue
- Getting Null when i try to call contract function HOT 1
- phpseclib has CVE-2023-49316 HOT 2
- The examples haven't been updated in 5 years HOT 1
- Get "unknown account" when testing the sendTransaction function
- Unallowed rpc method: eth_chainId
- Why there is no private key in sending transaction code in Web3.php?
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 web3.php.