To Wei
Converts any number value value into WEI
WEI is often used when interacting with smart contracts.
Avoid doing the WEI calculation directly in the input fields, doing so may result in errors because of big numbers. Use To Wei or From Wei action instead.
Parameters
Number
Number
The amount to be converted
Decimals
Number
Optional. Token decimals. Useful for correct calculation when the token has different decimals than the standard 18
States (result)
To WEI result
Text
Result of the conversion. Note that the result isn't instantly available, so when using the result in the same workflow where the action is run, add a small pause (200 ms) between this action and the next one where the result is used
Demo for how to use To Wei and From Wei features: https://web3-demo.bubbleapps.io/version-test/wei
Last updated