From Wei

Convert any WEI value to a human readable result.

Useful when interacting with data received from a smart contract For example when getting a token rate

Parameters

Parameter name
Type
Description

Wei

Text

It can be only text type because the number is too big. "wei" are the smallest ether unit.

Decimals

Number

Optional. Token decimals. Useful for correct conversion when the token has different decimals than the standard 18.

States (result)

State name
Type
Description

From WEI result

Text

It is in text format to avoid errors when the result contains too many decimals. 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