Skip to content
LogoLogo

fromBlobs

Transforms Viem-shaped blobs into the originating data.

Import

import {  } from 'viem'

Usage

example.ts
import {  } from 'viem'
 
const  = ({ : ['0x...'] })

Returns

Hex | ByteArray

Data extracted from blobs.

Parameters

blobs

  • Type: Hex[] | ByteArray[]

Transforms blobs into the originating data.

import {  } from 'viem'
 
const  = ({ 
  : ['0x...'] 
})

to

  • Type: "bytes" | "hex"

The output type.

import {  } from 'viem'
 
const  = ({ 
  : ['0x...'],
  : 'bytes'
})