serializeModuleEntity
Serializes a module entity into a hexadecimal format by concatenating the module address and entity ID.
Import
import { serializeModuleEntity } from "@account-kit/smart-contracts";
Usage
import { serializeModuleEntity } from "@account-kit/smart-contracts";
import { Address } from "viem";
const moduleAddress: Address = "0x1234";
const entityId: number = 1234;
const moduleEntityHex = serializeModuleEntity({
moduleAddress,
entityId,
});
Parameters
config
ModuleEntity
The module entity configuration containing the module address and entity ID
Returns
Hex
A hexadecimal string representation of the serialized module entity