Skip to main content
Module

x/clarinet/clarityTypes.ts>buff

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
Go to Latest
function buff
import { buff } from "https://deno.land/x/clarinet@v1.6.0/clarityTypes.ts";

Transforms an Uint8Array into a Clarity buffer value

Examples

types.buff(Uint8Array.from([98, 116, 99]) // returns "0x627463"

Parameters

val: Uint8Array

Returns

string

Transforms an Uint8Array into a Clarity buffer value

Examples

types.buff(Uint8Array.from([98, 116, 99]) // returns "0x627463"

Parameters

val: ArrayBuffer

Returns

string

Transforms an Uint8Array into a Clarity buffer value

Examples

types.buff(Uint8Array.from([98, 116, 99]) // returns "0x627463"

Parameters

val: string

Returns

string