Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Static hopTransactionSalt

hopTransactionSalt: string = "bitgoHopAddressRequestSalt"

Accessors

type

  • get type(): string

Static coinTokenPatternSeparator

  • get coinTokenPatternSeparator(): string

Methods

allowsAccountConsolidations

  • allowsAccountConsolidations(): boolean

baseUnitsToBigUnits

  • baseUnitsToBigUnits(baseUnits: string | number): string

bigUnitsToBaseUnits

  • bigUnitsToBaseUnits(bigUnits: string | number): string

createHopTransactionParams

  • createHopTransactionParams(buildParams: HopTransactionBuildOptions, callback?: NodeCallback<HopParams>): Bluebird<HopParams>

deriveKeyWithSeed

  • deriveKeyWithSeed(__namedParameters: object): object

enterprises

feeEstimate

formatForOfflineVault

  • formatForOfflineVault(txInfo: UnformattedTxInfo, ethTx: any, userKey: string, backupKey: string, gasPrice: Buffer, gasLimit: number, callback?: NodeCallback<OfflineVaultTxInfo>): Bluebird<OfflineVaultTxInfo>
  • Helper function for recover() This transforms the unsigned transaction information into a format the BitGo offline vault expects

    Parameters

    • txInfo: UnformattedTxInfo
    • ethTx: any
    • userKey: string
    • backupKey: string
    • gasPrice: Buffer
    • gasLimit: number
    • Optional callback: NodeCallback<OfflineVaultTxInfo>

    Returns Bluebird<OfflineVaultTxInfo>

    |{address: ({address, amount}|string), amount: string}|string)[]}}

generateKeyPair

  • generateKeyPair(seed: Buffer): KeyPair

getAddressNonce

  • getAddressNonce(address: string, callback?: NodeCallback<number>): Bluebird<number>

getBaseFactor

  • getBaseFactor(): string

getChain

  • getChain(): string

getDefaultExpireTime

  • getDefaultExpireTime(): number

getExtraPrebuildParams

  • getExtraPrebuildParams(buildParams: BuildOptions, callback?: NodeCallback<BuildOptions>): Bluebird<BuildOptions>

getFamily

  • getFamily(): string

getFullName

  • getFullName(): string

getOperation

  • getOperation(recipient: Recipient, expireTime: number, contractSequenceId: number): (string | Buffer)[][]

getOperationSha3ForExecuteAndConfirm

  • getOperationSha3ForExecuteAndConfirm(recipients: Recipient[], expireTime: number, contractSequenceId: number): string

getRecoveryGasLimit

  • getRecoveryGasLimit(): any

getRecoveryGasPrice

  • getRecoveryGasPrice(): any

getSendMethodArgs

  • getSendMethodArgs(txInfo: GetSendMethodArgsOptions): SendMethodArgs[]

initiateRecovery

isValidAddress

  • isValidAddress(address: string): boolean

isValidMofNSetup

  • isValidMofNSetup(__namedParameters: object): boolean

isValidPub

  • isValidPub(pub: string): boolean

keyIdsForSigning

  • keyIdsForSigning(): number[]

keychains

markets

newWalletObject

  • newWalletObject(walletParams: any): Wallet

parseTransaction

pendingApprovals

postProcessPrebuild

  • postProcessPrebuild(params: TransactionPrebuild, callback?: NodeCallback<TransactionPrebuild>): Bluebird<TransactionPrebuild>

preCreateBitGo

  • preCreateBitGo(params: PrecreateBitGoOptions): void

presignTransaction

  • presignTransaction(params: TransactionPrebuild, callback?: NodeCallback<TransactionPrebuild>): Bluebird<TransactionPrebuild>

queryAddressBalance

  • queryAddressBalance(address: string, callback?: NodeCallback<any>): Bluebird<any>

queryAddressTokenBalance

  • queryAddressTokenBalance(tokenContractAddress: string, walletContractAddress: string, callback?: NodeCallback<any>): Bluebird<any>

querySequenceId

  • querySequenceId(address: string, callback?: NodeCallback<number>): Bluebird<number>

recover

recoverToken

  • recoverToken(params: RecoverTokenOptions, callback?: NodeCallback<RecoverTokenTransaction>): Bluebird<RecoverTokenTransaction>
  • Recover an unsupported token from a BitGo multisig wallet This builds a half-signed transaction, for which there will be an admin route to co-sign and broadcast. Optionally the user can set params.broadcast = true and the half-signed tx will be sent to BitGo for cosigning and broadcasting

    Parameters

    • params: RecoverTokenOptions
    • Optional callback: NodeCallback<RecoverTokenTransaction>

    Returns Bluebird<RecoverTokenTransaction>

recoveryBlockchainExplorerQuery

  • recoveryBlockchainExplorerQuery(query: any, callback?: NodeCallback<any>): Bluebird<any>

signFinal

signMessage

  • signMessage(key: object, message: string, callback?: NodeCallback<Buffer>): Bluebird<Buffer>

signTransaction

supplementGenerateWallet

supportsBlockTarget

  • supportsBlockTarget(): boolean

transactionDataAllowed

  • transactionDataAllowed(): boolean

url

  • url(suffix: string): string

validateHopPrebuild

  • validateHopPrebuild(wallet: Wallet, hopPrebuild: HopPrebuild, originalParams?: undefined | object, callback?: NodeCallback<void>): Bluebird<void>
  • Validates that the hop prebuild from the HSM is valid and correct

    throws

    Error if The prebuild is invalid

    Parameters

    • wallet: Wallet

      The wallet that the prebuild is for

    • hopPrebuild: HopPrebuild

      The prebuild to validate

    • Optional originalParams: undefined | object

      The original parameters passed to prebuildTransaction

    • Optional callback: NodeCallback<void>

    Returns Bluebird<void>

    void

valuelessTransferAllowed

  • valuelessTransferAllowed(): boolean

verifyAddress

verifyRecoveryTransaction

verifyTransaction

wallets

webhooks

Static createInstance

Generated using TypeDoc