OperationMetadata

public struct OperationMetadata : Codable

Structure representing the metadata needed by Operation‘s in order to comply with the RPC standards

  • The public key of the account managing the sender of this Operation

    Declaration

    Swift

    public let managerKey: String?
  • The current counter used by this account on the network. All future Operation‘s need to be 1 higher

    Declaration

    Swift

    public let counter: Int
  • The current Tezos network chainID to use for Operation‘s

    Declaration

    Swift

    public let chainID: String
  • The current branch used by the head block, used for estiamting and running preapply, to ensure the latest state information is available

    Declaration

    Swift

    public let branch: String
  • The current Tezos network protocol to use for Operation‘s

    Declaration

    Swift

    public let `protocol`: String
  • Create an OperationMetadata

    Declaration

    Swift

    public init(managerKey: String?, counter: Int, blockchainHead: BlockchainHead)

    Parameters

    managerKey

    The public key of the account managing the sender of this Operation

    counter

    The current counter used by this account on the network. All future Operation‘s need to be 1 higher

    blockchainHead

    Decoded response of the blockchainHead, containing only the pieces we need