Helios API/ API Reference/ Classes/
TxId
Represents the hash of a transaction.
This is also used to identify an UTxO (along with the index of the UTxO in the list of UTxOs created by the transaction).
Hierarchy
-
↳
TxId
Index
Constructors
constructor
• new TxId(props
)
Parameters
Name | Type |
---|---|
props | HashProps |
Inherited from
Properties
bytes
• Readonly
bytes: number
[]
Inherited from
Accessors
hex
• get
hex(): string
Hexadecimal representation.
Returns
string
Inherited from
Hash.hex
Methods
eq
▸ eq(other
): boolean
Parameters
Name | Type |
---|---|
other | Hash |
Returns
boolean
Inherited from
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toSchemaJson
▸ toSchemaJson(): string
Returns
string
Inherited from
compare
▸ Static
compare(a
, b
): number
Parameters
Returns
number
Inherited from
dummy
▸ Static
dummy(fill?
): TxId
Filled with 255 so that the internal show() function has max execution budget cost
Parameters
Name | Type |
---|---|
fill? | number |
Returns
fromCbor
▸ Static
fromCbor(bytes
): Hash
Used internally for metadataHash and scriptDataHash
Parameters
Name | Type |
---|---|
bytes | number [] |
Returns
Inherited from
fromHex
▸ Static
fromHex(str
): Hash
Might be needed for internal use
Parameters
Name | Type |
---|---|
str | string |
Returns
Inherited from
fromProps
▸ Static
fromProps(props
): Hash
Parameters
Returns
Inherited from
fromUplcCbor
▸ Static
fromUplcCbor(bytes
): TxId
Parameters
Name | Type |
---|---|
bytes | string | number [] |
Returns
fromUplcData
▸ Static
fromUplcData(data
): TxId
Parameters
Name | Type |
---|---|
data | UplcData |