Helios API/ API Reference/ Classes/

TxWitnesses

Represents the pubkey signatures, and datums/redeemers/scripts that are witnessing a transaction.

Hierarchy

Index

Constructors

constructor

new TxWitnesses()

Inherited from

CborData.constructor

Accessors

datums

get datums(): ListData

Returns

ListData

profileReport

get profileReport(): string

Compiles a report of each redeemer execution. Only works after the tx has been finalized.

Returns

string

redeemers

get redeemers(): Redeemer[]

Returns

Redeemer[]

scripts

get scripts(): (UplcProgram | NativeScript)[]

Returns all the scripts, including the reference scripts

Returns

(UplcProgram | NativeScript)[]

signatures

get signatures(): Signature[]

Gets the list of Signature instances contained in this witness set.

Returns

Signature[]

Methods

dump

dump(params?, body?): any

Parameters

NameType
params?null | NetworkParams
body?null | TxBody

Returns

any

isNativeScript

isNativeScript(h): boolean

Parameters

Returns

boolean

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

CborData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

CborData.toCborHex

fromCbor

Static fromCbor(bytes): TxWitnesses

Parameters

NameType
bytesnumber[]

Returns

TxWitnesses