Web3JS Online
Viem Online
Webhooks, Alerts, and a simple API.
fromBytes is a versatile function that can decode a byte array to various types, including strings, hex values, numbers, big integers, and booleans. It takes two parameters: value, which is the byte array to decode, and toOrOptions, which specifies the desired output type or options.
The toOrOptions parameter can be a string indicating the desired output type (e.g., "string", "hex", "number", "bigint", or "boolean"), or an object with options for the decode operation (e.g., size: 32 to specify the number of bytes to decode).
Here are some examples of using the fromBytes function: