Class: Inscription
inscription.Inscription
Constructors
constructor
• new Inscription(tags?
, body?
): Inscription
Parameters
Name | Type |
---|---|
tags? | Map \<number , Buffer > |
body? | Buffer |
Returns
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
Name | Type |
---|---|
contentEncoding | string |
Returns
void
Defined in
inscription.ts:67
setContentType
▸ setContentType(contentType
): void
Parameters
Name | Type |
---|---|
contentType | string |
Returns
void
Defined in
inscription.ts:63
toScript
▸ toScript(xOnlyPublicKey
): (number
| Buffer
)[]
Parameters
Name | Type |
---|---|
xOnlyPublicKey | Buffer |
Returns
(number
| Buffer
)[]
Defined in
inscription.ts:78