Skip to main content

Class: Inscription

inscription.Inscription

Constructors

constructor

new Inscription(tags?, body?): Inscription

Parameters

NameType
tags?Map\<number, Buffer>
body?Buffer

Returns

Inscription

Defined in

inscription.ts:42

Properties

body

body: Buffer

Defined in

inscription.ts:40


tags

tags: Map\<number, Buffer>

Defined in

inscription.ts:39

Methods

getContentEncoding

getContentEncoding(): string

Returns

string

Defined in

inscription.ts:55


getContentType

getContentType(): string

Returns

string

Defined in

inscription.ts:47


getTags

getTags(): [number, Buffer][]

Returns

[number, Buffer][]

Defined in

inscription.ts:71


setContentEncoding

setContentEncoding(contentEncoding): void

Parameters

NameType
contentEncodingstring

Returns

void

Defined in

inscription.ts:67


setContentType

setContentType(contentType): void

Parameters

NameType
contentTypestring

Returns

void

Defined in

inscription.ts:63


toScript

toScript(xOnlyPublicKey): (number | Buffer)[]

Parameters

NameType
xOnlyPublicKeyBuffer

Returns

(number | Buffer)[]

Defined in

inscription.ts:78