@ecp.eth/sdk / comments / encodeBytesValue
Function: encodeBytesValue()
function encodeBytesValue(value): `0x${string}`;
Defined in: packages/sdk/src/comments/metadata.ts:718
Encodes a bytes value as bytes for metadata
Parameters
value
The bytes value to use
`0x${string}`
| Uint8Array
<ArrayBufferLike
>
Returns
`0x${string}`
The bytes as is if valid
Throws
If the value is not a valid hex string