Rlp.toBytes
Decodes a Recursive-Length Prefix (RLP) value into a Bytes.Bytes
value.
Imports
Named
import { Rlp } from 'ox'
Examples
import { Rlp } from 'ox'
Rlp.toBytes('0x8b68656c6c6f20776f726c64')
// Uint8Array([139, 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100])
Definition
function toBytes(
value: Bytes.Bytes | Hex.Hex,
): RecursiveArray<Bytes.Bytes>
Source: src/Rlp.ts
Parameters
value
- Type:
Bytes.Bytes | Hex.Hex
The value to decode.
Return Type
The decoded Bytes.Bytes
value.
RecursiveArray<Bytes.Bytes>