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

    Class DOTAccount

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

    Hierarchy

    • Account
      • DOTAccount
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • pair: KeyringPair | InjectedExtension
      • address: string

      Returns DOTAccount

    Properties

    address: string

    Methods

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

      The sign method of the package 'polkadot' is used as the signature method.

      Parameters

      • message: SignableMessage

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

      Returns Promise<string>