Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Wallet

Hierarchy

  • Wallet

Index

Constructors

constructor

  • new Wallet(wif: string): Wallet

Properties

Protected _envelopes

_envelopes: Envelopes = ...

Protected _indexclient

_indexclient: IndexClient

Protected _keypair

_keypair: KeyPair

Protected _proofs

_proofs: {}

Type declaration

  • [key: string]: any

Accessors

Address

  • get Address(): any

Balance

  • get Balance(): number

Envelopes

  • get Envelopes(): Envelopes

PublicKey

  • get PublicKey(): string

Unspents

  • get Unspents(): any[]
  • set Unspents(val: any[]): void

Methods

decode

  • decode(rawtx: string): any

getProofs

  • getProofs(txid: string): Promise<void>
  • Parameters

    • txid: string

    Returns Promise<void>

sleep

  • sleep(delay?: number): Promise<void>
  • Parameters

    • delay: number = 350

    Returns Promise<void>

spend

  • spend(to: string, amount: number, utxo?: any): { rawhex: any; txid: any }
  • Parameters

    • to: string
    • amount: number
    • Optional utxo: any

    Returns { rawhex: any; txid: any }

    • rawhex: any
    • txid: any

utxofetch

  • utxofetch(): Promise<any>

Generated using TypeDoc