Class Wallet

Wallets are created from seeds, so they can have multiple addresses by changing the index. Use Wallets to "write" (send, receive, change rep) to the network

Constructors

  • Parameters

    • rpc: RPCInterface
    • Optional seed: string

      Seed for the wallet from which private keys are derived. 64 character hex string (32 bytes)

    • index: number = 0
    • try_work: boolean = false

    Returns Wallet

Properties

add_do_work: boolean = false
index: number
seed: string
try_work: boolean

Accessors

  • get public_key(): string
  • Returns string

Methods