Get Decimals By Symbol Or Asset
obyte_get_decimals_by_symbol_or_assetRetrieve decimal places for a token symbol, asset, or base alias on Obyte. Returns 9 for GBYTE/base, 6 for MBYTE, and so on.
Instructions
Returns decimals for base aliases or a registry-known token symbol/asset. Symbols are uppercased before lookup. base and GBYTE use 9, MBYTE 6, KBYTE 3, BYTE 0. Registry data is untrusted metadata.
Network: this server serves both Obyte networks at once. Pass "network":"mainnet" or "network":"testnet" to choose; when omitted it defaults to mainnet. If the user has not made the network explicit, confirm which network they mean before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | ||
| symbol_or_asset | Yes | ||
| token_registry_address | No |