concat

Learn about the concat utils method

Introduction

The concat method is used to concatenate multiple hex strings into a single Uint8Array. The input hex strings are passed as an array of strings.

Usage

This method can be used to combine multiple hex strings into a single Uint8Array. Here's an example of how to use it:

const { Utils } = require("alchemy-sdk");

let hexString1 = "0xabcd";
let hexString2 = "0xef01";

let concatenatedHex = Utils.concat([hexString1, hexString2]);
console.log(concatenatedHex); // Uint8Array(4) [ 171, 205, 239, 1 ]
ReadMe