UNPKG

@aibtc/types

Version:

TypeScript types for AIBTC

8 lines (7 loc) 269 B
import { Cl } from "@stacks/transactions"; // helper to format the expected buffer format since stacks 7.X export function formatSerializedBuffer(value) { const serialized = Cl.serialize(value); const buffer = Cl.bufferFromHex(serialized); return buffer; }