Skip to main content

Module: ordinals

Interfaces

Functions

createInscription

createInscription(contentType, content): Inscription

Create an inscription.

Parameters

NameType
contentTypestring
contentBuffer

Returns

Inscription

Defined in

ordinals/commit.ts:26


createTextInscription

createTextInscription(text): Inscription

Create a basic text inscription.

Parameters

NameType
textstring

Returns

Inscription

Defined in

ordinals/commit.ts:16


inscribeData

inscribeData(signer, toAddress, feeRate, inscription, postage?): Promise\<Transaction>

Inscribe some data on Bitcoin using the remote signer.

Parameters

NameTypeDefault valueDescription
signerRemoteSignerundefinedImplementation to interact with Bitcoin and sign the PSBT.
toAddressstringundefinedThe address to receive the inscription.
feeRatenumberundefinedFee rate of the Bitcoin network (satoshi / byte).
inscriptionInscriptionundefinedData to inscribe in the witness of the reveal transaction.
postagenumber10000Amount of postage to include in the inscription.

Returns

Promise\<Transaction>

Promise which resolves to the reveal transaction.

Defined in

ordinals/index.ts:54