Skip to content

Account

JaapWijnen edited this page Feb 15, 2021 · 4 revisions

Account

public struct Account

Inheritance

Codable, CustomStringConvertible, ProtocolCodable

Initializers

init(from:)

public init(from decoder: Decoder) throws

Methods

encode(to:)

public func encode(to encoder: Encoder) throws

Requirements

address

var address: AccountAddress

set(address:​)

mutating func set(address: AccountAddress) throws

publicKey

var publicKey: PublicKey?

set(publicKey:​)

mutating func set(publicKey: PublicKey) throws

accountNumber

var accountNumber: UInt64

set(accountNumber:​)

mutating func set(accountNumber: UInt64) throws

sequence

var sequence: UInt64

set(sequence:​)

mutating func set(sequence: UInt64) throws

coins

var coins: Coins

set(coins:​)

mutating func set(coins: Coins) throws

spendableCoins(blockTime:​)

func spendableCoins(blockTime: TimeInterval) -> Coins

Clone this wiki locally