Skip to content

Transaction

Extends: RefCounted

Description

Constants Descriptions

TransactionStatus

enum TransactionStatus{SUCCESS = 0, EVALUATION_ERROR = 1, DESERIALIZE_ERROR = 2}

Method Descriptions

_init

func _init(tx: _Transaction, input_utxos: Array[Utxo] = null) -> Transaction

bytes

func bytes() -> PackedByteArray

to_json

func to_json() -> Dictionary

add_signature

func add_signature(signature: Signature) -> void

Add a signature to the witness set

evaluate

func evaluate(utxos: Array[Utxo]) -> EvaluationResult

Try to evaluate the transaction

to_hash

func to_hash() -> TransactionHash

Get the unique hash of the transaction

input_utxos

func input_utxos() -> Array[Utxo]

outputs

func outputs() -> Array[Utxo]

Sub-classes

EvaluationResult

Property Descriptions

value

var value: _EvaluationResult
  • Getter: @value_getter

WARNING: This function may fail! First match on tag or call is_ok.

error

var error: String
  • Getter: @error_getter

WARNING: This function may fail! First match on tag or call is_err.