Skip to content

Account

JaapWijnen edited this page Mar 9, 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: PublicKeyProtocol?

set(publicKey:​)

mutating func set(publicKey: PublicKeyProtocol) 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: [Coin]

set(coins:​)

mutating func set(coins: [Coin]) throws

spendableCoins(blockTime:​)

func spendableCoins(blockTime: TimeInterval) -> [Coin]

Clone this wiki locally