The default class of Signer interface implemented using Wallet class. When Ain class is initialized, DefaultSigner is set as its signer.

Implements

Constructors

Properties

provider: default

The network provider object.

wallet: default

The wallet object.

Methods

  • Builds a transaction body object from a transaction input object.

    Parameters

    Returns Promise<TransactionBody>

    The transaction body object.

  • Gets an account's checksum address. If the address is not given, the default account of the wallet is used.

    Parameters

    • Optional address: string

      The address of the account.

    Returns string

    The checksum address.

  • Sends a signed transaction to the network.

    Parameters

    • signature: string

      The signature.

    • txBody: TransactionBody

      The transaction body.

    • isDryrun: boolean = false

      The dryrun option.

    Returns Promise<any>

    The return value of the blockchain API.

  • Signs and sends a transaction to the network.

    Parameters

    • transactionObject: TransactionInput

      The transaction input object.

    • isDryrun: boolean = false

      The dryrun option.

    Returns Promise<any>

    The return value of the blockchain API.

  • Signs a message using an account. If an address is not given, the default account of the wallet is used.

    Parameters

    • message: string

      The message to sign.

    • Optional address: string

      The address of the account.

    Returns string | Promise<string>

    The signature.