Account
public class Account : TransactionAccount, @unchecked Sendable
Represents an account in Stellar network with it’s sequence number.
-
The keypair associated with this account.
Declaration
Swift
public let keyPair: KeyPair -
The current sequence number of the account.
Declaration
Swift
public var sequenceNumber: Int64 { get } -
Creates a new Account object.
Declaration
Swift
public init(keyPair: KeyPair, sequenceNumber: Int64)Parameters
keyPairKeyPair associated with this Account.
sequenceNumberCurrent sequence number of the account (can be obtained using the sdk or horizon server).
-
Creates an Account from account ID string and sequence number.
Declaration
Swift
public init(accountId: String, sequenceNumber: Int64) throws -
Returns sequence number incremented by one, but does not increment internal counter.
Declaration
Swift
public func incrementedSequenceNumber() -> Int64 -
Increments sequence number in this object by one.
Declaration
Swift
public func incrementSequenceNumber() -
Decrements sequence number in this object by one.
Declaration
Swift
public func decrementSequenceNumber() -
The Stellar account ID for this account.
Declaration
Swift
public var accountId: String { get }
View on GitHub
Install in Dash