I'm trying to send an EGLD value (e.g. 1.5 EGLD) to an account/smart contract but in some cases only BigUInt type seems to be allowed. How does this value work and how should I format it correctly?
How to format EGLD value send to SC/Account?
298 Views Asked by Brother Jder At
1
There are 1 best solutions below
Related Questions in MULTIVERSX
- Using the MultiversX SDK for JavaScript (TypeScript), how to sign (and verify) an arbitrary message?
- Consensus Mechanism Comparison
- Herotag script and how can a script can go over herotags and resolves them automatically to addresses
- xExchange API: the price of a LP token is 0
- Change dapp gateway
- Login via hooks
- Getting list with the MultiversX's ESDT tokens (and balances) from an address (a wallet)
- Unmet dependencies (venv & ensurepip) error when running erdpy-up
- Elrond Smart Contract call via JavaScript SDK returns a user error
- How do I limit the max supply of a MultiversX NFT collection?
- Elrond mandos test elrond_wasm_debug::mandos_rs pass however erdpy contract test fail
- How can I verify a signed message(not transaction) from a dApp (elrond)?
- How to top encode without allocating
- issue_and_set_all_roles responds with "token name is not human readable"
- How to view the exported functions of a smart contract in MultiversX
Related Questions in ERDPY
- Unmet dependencies (venv & ensurepip) error when running erdpy-up
- How can I verify a signed message(not transaction) from a dApp (elrond)?
- Triggering a function when a MultiversX's transaction has status "success"
- Measure time of execution of a MultiversX 's transaction
- Could not install erdpy - no module named 'ledgercomm'
- Cannot install erdpy on macOS - failed building wheel for pynacl
- Erdpy: Token issuance transaction fails with code: internal_issue
- Can’t build smart contract - error compiling elrond-wasm with erdpy build contract
- Maiar DEX: erdpy query to a smart contract response is empty
- How do I generate the content from the `wasm` folder?
- How to format EGLD value send to SC/Account?
- Smart contract deploy error: the feature lang_items is internal to the compiler or standard library
- How to encode List when deploying a smart contract through mxpy?
- Invalid chain ID after passing --chain=D to mxpy
- Dependency missing: rust nightly - Rust not installed
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In the MultiversX blockchain, each token is configured to have a specific number of decimals (between 0 and 18). EGLD is configured to have 18 decimals. So,
1EGLD is actually the denominated representation of the integer value of10^18actually.Using this example, if you have to send
1.5EGLD, the un-denominated integer value is1.5 * 10^18 = 1500000000000000000.If you send the tx from mxpy or most of any other programmatic way, you should pass the un-denominated value. If you send the tx from web wallet and such user-friendly interfaces, there's a good chance that the values are already denominated automatically, so
1.5EGLD will be automatically denominated to the actual1.5 * 10^18value, which is what the destination address/SC will receive as payment amount.