Module: inscription
Variables
PROTOCOL_ID
• Const
PROTOCOL_ID: Buffer
Defined in
inscription.ts:9
Functions
getContentEncoding
▸ getContentEncoding(inscription
): string
| null
Parameters
Name | Type |
---|---|
inscription | Inscription |
Returns
string
| null
Defined in
inscription.ts:45
getContentType
▸ getContentType(inscription
): string
| null
Parameters
Name | Type |
---|---|
inscription | Inscription |
Returns
string
| null
Defined in
inscription.ts:37
getInscriptionFromId
▸ getInscriptionFromId(electrsClient
, inscriptionId
): Promise
\<Inscription
>
Parameters
Name | Type |
---|---|
electrsClient | ElectrsClient |
inscriptionId | string |
Returns
Promise
\<Inscription
>
Defined in
inscription.ts:112
getTxInscriptions
▸ getTxInscriptions(electrsClient
, txid
): Promise
\<Inscription
[]>
Parameters
Name | Type |
---|---|
electrsClient | ElectrsClient |
txid | string |
Returns
Promise
\<Inscription
[]>
Defined in
inscription.ts:106
parseInscriptions
▸ parseInscriptions(tx
): Inscription
[]
Parameters
Name | Type |
---|---|
tx | Transaction |
Returns
Inscription
[]
Defined in
inscription.ts:53