Skip to main content

Module: inscription

Variables

PROTOCOL_ID

Const PROTOCOL_ID: Buffer

Defined in

inscription.ts:9

Functions

getContentEncoding

getContentEncoding(inscription): string | null

Parameters

NameType
inscriptionInscription

Returns

string | null

Defined in

inscription.ts:45


getContentType

getContentType(inscription): string | null

Parameters

NameType
inscriptionInscription

Returns

string | null

Defined in

inscription.ts:37


getInscriptionFromId

getInscriptionFromId(electrsClient, inscriptionId): Promise\<Inscription>

Parameters

NameType
electrsClientElectrsClient
inscriptionIdstring

Returns

Promise\<Inscription>

Defined in

inscription.ts:112


getTxInscriptions

getTxInscriptions(electrsClient, txid): Promise\<Inscription[]>

Parameters

NameType
electrsClientElectrsClient
txidstring

Returns

Promise\<Inscription[]>

Defined in

inscription.ts:106


parseInscriptions

parseInscriptions(tx): Inscription[]

Parameters

NameType
txTransaction

Returns

Inscription[]

Defined in

inscription.ts:53