OperationActivateAccount

public class OperationActivateAccount : Operation

Operation subclass for revealing a publickey to the network.

  • Declaration

    Swift

    public let publicKey: String
  • Declaration

    Swift

    public let secret: String
  • Create an OperationActivateAccount.

    Declaration

    Swift

    public init(wallet: Wallet, andSecret: String)

    Parameters

    wallet

    The Wallet object, whose publicKey will be used to activate on the network

    andSecret

    The secret supplied in JSON file

  • Create a base operation.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    from

    A decoder used to convert a data fromat (such as JSON) into the model object.

  • Convert the object into a data format, such as JSON.

    Declaration

    Swift

    public override func encode(to encoder: Encoder) throws

    Parameters

    to

    An encoder that will allow conversions to multipel data formats.

  • A function to check if two operations are equal.

    Declaration

    Swift

    public func isEqual(_ op: OperationActivateAccount) -> Bool

    Parameters

    _

    An Operation to compare against

    Return Value

    A Bool indicating the result.