Base58.toBytes
Decodes a Base58-encoded string to a Bytes.Bytes
.
Imports
Named
import { Base58 } from 'ox'
Examples
import { Base58 } from 'ox'
const value = Base58.toBytes('2NEpo7TZRRrLZSi2U')
Uint8Array [ 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33 ]
Definition
function toBytes(
value: string,
): Bytes.Bytes
Source: src/Base58.ts
Parameters
value
- Type:
string
The Base58 encoded string.
Return Type
The decoded byte array.
Bytes.Bytes