takeBytes

1function 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

Parameters

ParameterTypeDescription

bytes

`0x${string}`

the hex string representing bytes

opts

TakeBytesOpts

optional parameters for slicing the bytes

Returns

`0x${string}`

the sliced bytes