@aleph-sdk/monorepo
    Preparing search index...

    Class CosmosAccount

    CosmosAccount implements the Account class for the Cosmos protocol. It is used to represent a Cosmos account when publishing a message on the Aleph network.

    Hierarchy

    • Account
      • CosmosAccount
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • wallet: OfflineAminoSigner
      • address: string
      • accountNumber: number = 0

      Returns CosmosAccount

    Properties

    address: string

    Methods

    • The Sign method provides a way to sign a given Aleph message using a Cosmos account. The full message is not used as the payload, only fields of the BaseMessage type are.

      The signMessage method uses the amino SignDoc helpers to generate the signature

      Parameters

      • message: SignableMessage

        The Aleph message to sign, using some of its fields.

      Returns Promise<string>