Skip to content

Blobs.toHex

Transforms Ox-shaped Blobs.Blobs into the originating data.

Imports

Named
import { Blobs } from 'ox'

Examples

import { Blobs, Hex } from 'ox'
 
const blobs = Blobs.from('0xdeadbeef')
const data = Blobs.toHex(blobs)
'0xdeadbeef'

Definition

function toHex(
  blobs: Blobs<Hex.Hex> | Blobs<Bytes.Bytes>,
): toHex.ReturnType

Source: src/core/Blobs.ts

Parameters

blobs

  • Type: Blobs<Hex.Hex> | Blobs<Bytes.Bytes>

Return Type

toHex.ReturnType