Skip to content

TransactionHash

Extends: RefCounted

Description

The transaction hash is used to uniquely identify a transaction, which can be useful for many operations.

The transaction hash is used to uniquely identify a transaction, which can be useful for many operations.

Constants Descriptions

Status

enum Status{SUCCESS = 0, INVALID_HASH = 1}

Method Descriptions

_init

func _init(transaction_hash: _TransactionHash) -> TransactionHash

to_hex

func to_hex() -> String

Obtain a hex-encoding of the hash.

from_hex (static)

func from_hex(hash: String) -> FromHexResult

Tries to parse a TransactionHash.

Sub-classes

FromHexResult

Property Descriptions

value

var value: TransactionHash
  • Getter: @value_getter

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

error

var error: String
  • Getter: @error_getter

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