Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines the necessary methods that must be implemented by a TurtleCoind interface

Hierarchy

  • ITurtleCoind

Implemented by

Index

Methods

Abstract block

  • block(block: string | number): Promise<IBlock>

Abstract blockCount

  • blockCount(): Promise<number>

Abstract blockHeaders

  • blockHeaders(height: number): Promise<IBlock[]>

Abstract blockTemplate

  • blockTemplate(address: string, reserveSize: number): Promise<IBlockTemplate>

Abstract fee

  • fee(): Promise<IFee>

Abstract height

Abstract indexes

Abstract info

Abstract lastBlock

  • lastBlock(): Promise<IBlock>

Abstract peers

Abstract randomIndexes

  • randomIndexes(amounts: number[], count: number): Promise<IRandomOutput[]>

Abstract rawBlock

  • rawBlock(block: string | number): Promise<IRawBlock>

Abstract rawSync

  • rawSync(checkpoints: string[], height: number, timestamp: number, skipCoinbaseTransactions: boolean, count: number): Promise<IRawSync>
  • Parameters

    • checkpoints: string[]
    • height: number
    • timestamp: number
    • skipCoinbaseTransactions: boolean
    • count: number

    Returns Promise<IRawSync>

Abstract rawTransaction

  • rawTransaction(hash: string): Promise<string>

Abstract rawTransactionPool

  • rawTransactionPool(): Promise<string[]>

Abstract submitBlock

  • submitBlock(block: string): Promise<string>

Abstract submitTransaction

  • submitTransaction(transaction: string): Promise<string>

Abstract sync

  • sync(checkpoints: string[], height: number, timestamp: number, skipCoinbaseTransactions: boolean, count: number): Promise<ISync>
  • Parameters

    • checkpoints: string[]
    • height: number
    • timestamp: number
    • skipCoinbaseTransactions: boolean
    • count: number

    Returns Promise<ISync>

Abstract transaction

Abstract transactionPool

Abstract transactionPoolChanges

Abstract transactionsStatus

Generated using TypeDoc