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.TransactionResultvalue. -
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.TransactionResultvalue. -
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.TransactionResultvalue. -
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
statusThe status you want to monitor.
delayInterval between two queries. Default is 2000 milliseconds.
timeoutTimeout for this request. Default is 60 seconds.
Return Value
A future that will receive the
Flow.TransactionResultvalue.
View on GitHub
ID Structure Reference