ID
struct ID : FlowEntity, Equatable, Hashable
extension Flow.ID: Codable
extension Flow.ID: CustomStringConvertible
The ID in Flow chain, which can represent as transaction id, block id and collection id etc.
-
Declaration
Swift
public var data: Data
-
Undocumented
Declaration
Swift
public init(hex: String)
-
Undocumented
Declaration
Swift
public init(data: Data)
-
Undocumented
Declaration
Swift
public init(bytes: [UInt8])
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public var description: String { get }
-
onceFinalized()
AsynchronousGet notified when transaction’s status change to
.finalized
.Declaration
Swift
func onceFinalized() async throws -> Flow.TransactionResult
Return Value
A future that will receive the
Flow.TransactionResult
value. -
onceExecuted()
AsynchronousGet notified when transaction’s status change to
.executed
.Declaration
Swift
func onceExecuted() async throws -> Flow.TransactionResult
Return Value
A future that will receive the
Flow.TransactionResult
value. -
onceSealed()
AsynchronousGet notified when transaction’s status change to
.sealed
.Declaration
Swift
func onceSealed() async throws -> Flow.TransactionResult
Return Value
A future that will receive the
Flow.TransactionResult
value. -
once(status:
AsynchronousdelayInNanoSec: timeout: ) Get notified when transaction’s status changed.
Declaration
Swift
func once(status: Flow.Transaction.Status, delayInNanoSec: UInt64 = 2_000_000_000, timeout: TimeInterval = 60) async throws -> Flow.TransactionResult
Parameters
status
The status you want to monitor.
delay
Interval between two queries. Default is 2000 milliseconds.
timeout
Timeout for this request. Default is 60 seconds.
Return Value
A future that will receive the
Flow.TransactionResult
value.