Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/clarinet/clarityTypes.ts>buff

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
Latest
function buff
import { buff } from "https://deno.land/x/clarinet@v1.8.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