ID
public struct ID : FlowEntity, Equatable, Hashable
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)
-
Declaration
Swift
public var description: String { get }
-
Get notified when transaction’s status change to
.finalized
.Declaration
Swift
public func onceFinalized() -> EventLoopFuture<Flow.TransactionResult>
Return Value
A future that will receive the
Flow.TransactionResult
value. -
Get notified when transaction’s status change to
.executed
.Declaration
Swift
public func onceExecuted() -> EventLoopFuture<Flow.TransactionResult>
Return Value
A future that will receive the
Flow.TransactionResult
value. -
Get notified when transaction’s status change to
.sealed
.Declaration
Swift
public func onceSealed() -> EventLoopFuture<Flow.TransactionResult>
Return Value
A future that will receive the
Flow.TransactionResult
value. -
Get notified when transaction’s status changed.
Declaration
Swift
public func once(status: Flow.Transaction.Status, delay: DispatchTimeInterval = .milliseconds(2000), timeout: TimeInterval = 60) -> EventLoopFuture<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.