Portal Community
No network call: Both operations on this page run entirely locally — they don't hit the Mirror Node, so they work regardless of network configuration and have no eventual-consistency delay.

convertUnits

Converts between HBAR and tinybar. 1 HBAR = 100,000,000 tinybar.

FieldTypeRequiredDefaultDescription
amountnumber✓ YesThe value to convert
fromUnitselectNohbarhbar or tinybar
toUnitselectNotinybarhbar or tinybar

Example: convert 2.5 HBAR to tinybar —

// Request
{ "amount": 2.5, "fromUnit": "hbar", "toUnit": "tinybar" }

// Response
{ "amount": 2.5, "fromUnit": "hbar", "toUnit": "tinybar", "result": 250000000 }

validateAddress

Validates that a string is a well-formed Hedera account/entity address.

FieldTypeRequiredDescription
addresstext✓ YesThe string to validate, e.g. 0.0.98
// Request
{ "address": "0.0.98" }

// Response
{ "address": "0.0.98", "isValid": true }
Tip: Run utility.validateAddress on user-entered account IDs before passing them to account.getBalance or any other network call — it's a free, instant guard against malformed input reaching the Mirror Node.