TransactionBuilderAccount

Specifies interface for Account object used in Transaction building.

This interface defines the minimum requirements for an account to be used when building Stellar transactions. Implementations must provide the account ID, a KeyPair for the account, and methods to manage the sequence number.

The sequence number is a critical component of transaction building:

  • Every transaction must have a sequence number equal to the current sequence number + 1

  • After a transaction is submitted and confirmed, the account's sequence number increases

  • Multiple transactions can be built with incrementing sequence numbers

See also

Inheritors

Properties

Link copied to clipboard
abstract val accountId: String

Returns the account ID (strkey encoded public key starting with 'G').

Link copied to clipboard
abstract val keypair: KeyPair

Returns the keypair associated with this account.

Link copied to clipboard
abstract val sequenceNumber: Long

Returns the current sequence number of this account.

Functions

Link copied to clipboard

Returns the sequence number incremented by one, but does not modify the internal counter.

Link copied to clipboard

Increments the sequence number in this object by one.

Link copied to clipboard
abstract fun setSequenceNumber(seqNum: Long)

Sets the current sequence number on this account.