Skip to content
Alchemy Logo

takeBytes

function takeBytes(bytes, opts): `0x${string}`;

Defined in: aa-sdk/core/src/utils/bytes.ts:17

Given a bytes string, returns a slice of the bytes

ParameterTypeDescription

bytes

`0x${string}`

the hex string representing bytes

opts

TakeBytesOpts

optional parameters for slicing the bytes

`0x${string}`

the sliced bytes

Was this page helpful?