fromOpaqueData
Decodes opaque deposit data found in the TransactionDeposited
event log data.
Import
ts
import { fromOpaqueData } from 'viem'
import { fromOpaqueData } from 'viem'
Usage
ts
import { fromOpaqueData } from 'viem'
const data = fromOpaqueData('0x00000000000000000000000000000000000000000000000000000000000001a40000000000000000000000000000000000000000000000000000000000000045000000000000526c01deadbeef')
import { fromOpaqueData } from 'viem'
const data = fromOpaqueData('0x00000000000000000000000000000000000000000000000000000000000001a40000000000000000000000000000000000000000000000000000000000000045000000000000526c01deadbeef')
Returns
{
mint: bigint
value: bigint
gas: bigint
isCreation: boolean
data: Hex
}
{
mint: bigint
value: bigint
gas: bigint
isCreation: boolean
data: Hex
}
The decoded opaque data.
Parameters
opaqueData
- Type:
Hex
The ABI (packed) encoded opaque data.