hexDataSlice
hexDataSlice(
data,offset,endOffset?):string
Defined in: utils/bytes.ts:504
Slices a BytesLike to extract a certain part of the input
Parameters
Section titled “Parameters”the data to slice from
offset
Section titled “offset”number
the index to start extraction at
endOffset?
Section titled “endOffset?”number
the index to end extraction at
Returns
Section titled “Returns”string
the extracted data as a hex string
Example
Section titled “Example”hexDataSlice([20, 6, 48], 0, 2);// '0x1406'