Skip to content

ModuleAccount

JaapWijnen edited this page Mar 9, 2021 · 3 revisions

ModuleAccount

public struct ModuleAccount: GenesisAccount

Inheritance

GenesisAccount

Initializers

init(name:permissions:)

public init(name: String, permissions: [String])

init(from:)

public init(from decoder: Decoder) throws

Properties

metaType

var metaType: MetaType

address

var address: AccountAddress

coins

var coins: [Coin]

publicKey

var publicKey: PublicKeyProtocol?

accountNumber

var accountNumber: UInt64

sequence

var sequence: UInt64

description

var description: String

Methods

encode(to:)

public func encode(to encoder: Encoder) throws

set(address:)

public mutating func set(address: AccountAddress) throws

set(publicKey:)

public mutating func set(publicKey: PublicKeyProtocol) throws

set(accountNumber:)

public mutating func set(accountNumber: UInt64) throws

set(sequence:)

public mutating func set(sequence: UInt64) throws

set(coins:)

public mutating func set(coins: [Coin]) throws

validate()

public func validate() throws

spendableCoins(blockTime:)

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

moduleAddress(name:)

public static func moduleAddress(name: String) -> AccountAddress

Clone this wiki locally