Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SeedAccount

Implements methods for signing transactions from a single BitClout account private key

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new SeedAccount(mnemonic: string, net?: "mainnet" | "testnet"): SeedAccount
  • Construct a bitclout identity from a seed phrase

    Parameters

    • mnemonic: string

      The seed phrase

    • net: "mainnet" | "testnet" = 'mainnet'

      Which bitclout network to derive the public key for

    Returns SeedAccount

Properties

Readonly bitcloutPublicKey

bitcloutPublicKey: string

Public key shown on account's bitclout profile

Readonly canSign

canSign: true = true

Methods

signJWT

  • signJWT(): Promise<string>
  • Generates a signed JWT that can be used to authenticate this user to the backend, or other applications.

    Returns Promise<string>

signTransaction

  • signTransaction(transactionHex: string): Promise<string>
  • Signs a transaction hex

    Parameters

    • transactionHex: string

    Returns Promise<string>

    The signed transaction hex

Generated using TypeDoc