Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

tokenConfig

tokenConfig: OfcTokenConfig

Accessors

backingCoin

  • get backingCoin(): string

coin

  • get coin(): string

decimalPlaces

  • get decimalPlaces(): number

isFiat

  • get isFiat(): boolean

name

  • get name(): string

type

  • get type(): string

Static coinTokenPatternSeparator

  • get coinTokenPatternSeparator(): string

Methods

baseUnitsToBigUnits

  • baseUnitsToBigUnits(baseUnits: string | number): string
  • Convert a currency amount represented in base units (satoshi, wei, atoms, drops, stroops) to big units (btc, eth, rmg, xrp, xlm)

    Parameters

    • baseUnits: string | number

    Returns string

bigUnitsToBaseUnits

  • bigUnitsToBaseUnits(bigUnits: string | number): string
  • Convert a currency amount represented in big units (btc, eth, rmg, xrp, xlm) to base units (satoshi, wei, atoms, drops, stroops)

    Parameters

    • bigUnits: string | number

    Returns string

deriveKeyWithSeed

  • deriveKeyWithSeed(__namedParameters: object): object
  • The cold wallet tool uses this function to derive an extended key that is based on the passed key and seed

    Parameters

    • __namedParameters: object

    Returns object

enterprises

feeEstimate

generateKeyPair

  • generateKeyPair(seed?: Buffer): KeyPair

getBaseFactor

  • getBaseFactor(): string

getChain

  • getChain(): string

getExtraPrebuildParams

getFamily

  • getFamily(): string

getFullName

  • getFullName(): string

initiateRecovery

isValidAddress

  • isValidAddress(address?: undefined | string): boolean
  • Check if an address is valid for this ofc token.

    These addresses are either bg-, where public id is the internal address to send to, or are an address which is valid on the backing coin of this ofc token.

    Parameters

    • Optional address: undefined | string

      address to check for validity

    Returns boolean

isValidMofNSetup

  • isValidMofNSetup(__namedParameters: object): boolean

isValidPub

  • isValidPub(pub: string): boolean

keyIdsForSigning

  • keyIdsForSigning(): number[]

keychains

markets

newWalletObject

  • newWalletObject(walletParams: any): Wallet

parseTransaction

pendingApprovals

postProcessPrebuild

preCreateBitGo

presignTransaction

signMessage

  • signMessage(key: object, message: string): Buffer

signTransaction

supplementGenerateWallet

supportsBlockTarget

  • supportsBlockTarget(): boolean

transactionDataAllowed

  • transactionDataAllowed(): boolean

url

  • url(suffix: string): string

valuelessTransferAllowed

  • valuelessTransferAllowed(): boolean

verifyAddress

verifyRecoveryTransaction

verifyTransaction

wallets

webhooks

Static createInstance

Static createTokenConstructor

Generated using TypeDoc