Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BitGo

Hierarchy

  • BitGo

Index

Constructors

constructor

Properties

env

Expose env property for backwards compatibility

deprecated

Methods

addAccessToken

  • addAccessToken Add a BitGo API Access Token to the current user account

    Parameters

    Returns Bluebird<any>

    { id: token: label: user: enterprise client: scope: created: expires: origin: isExtensible: extensionAddress: <address whose private key's signature is necessary for extensions> unlock: }

addWebhook

authenticate

authenticateWithAccessToken

  • authenticateWithAccessToken(__namedParameters: object): void

authenticateWithAuthCode

blockchain

  • blockchain(): any

calculateHMAC

  • calculateHMAC(key: string, message: string): string
  • Calculate the HMAC for the given key and message

    Parameters

    • key: string

      the key to use for the HMAC

    • message: string

      the actual message to HMAC

    Returns string

    • the result of the HMAC operation

calculateHMACSubject

  • calculateHMACSubject(__namedParameters: object): string

calculateMinerFeeInfo

  • calculateMinerFeeInfo(params: any, callback?: NodeCallback<any>): Bluebird<any>
  • V1 method for calculating miner fee amounts, given the number and type of transaction inputs, along with a fee rate in satoshis per vkB.

    This method should not be used for new code.

    deprecated

    Parameters

    Returns Bluebird<any>

calculateRequestHMAC

  • calculateRequestHMAC(__namedParameters: object): string

calculateRequestHeaders

changePassword

  • changePassword(__namedParameters: object, callback?: NodeCallback<any>): Bluebird<any>
  • Change the password of the currently logged in user. Also change all v1 and v2 keychain passwords if they match the given oldPassword. Returns nothing on success.

    Parameters

    • __namedParameters: object
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

clear

  • clear(): void

coin

decrypt

del

encrypt

estimateFee

extendToken

fetchConstants

  • fetchConstants(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

fromJSON

generateRandomPassword

  • generateRandomPassword(numWords?: number): string

get

getBitGoFeeAddress

  • getBitGoFeeAddress(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

getConstants

  • getConstants(params?: undefined | __type): any
  • Synchronously get constants which are relevant to the client.

    Note: This function has a known race condition. It may return different values over time, especially if called shortly after creation of the BitGo object.

    New code should call fetchConstants() directly instead.

    deprecated

    Parameters

    • Optional params: undefined | __type

    Returns any

    The client constants object

getECDHSecret

  • getECDHSecret(__namedParameters: object): string

getECDHSharingKeychain

  • getECDHSharingKeychain(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

getEnv

getSharingKey

  • getSharingKey(__namedParameters: object, callback?: NodeCallback<any>): Bluebird<any>

getUser

  • getUser(__namedParameters: object, callback?: NodeCallback<any>): Bluebird<any>

getValidate

  • getValidate(): boolean

getWalletAddress

  • getWalletAddress(__namedParameters: object, callback?: NodeCallback<any>): Bluebird<any>

handleTokenIssuance

instantGuarantee

  • instantGuarantee(params: object, callback?: NodeCallback<any>): Bluebird<any>

keychains

  • keychains(): any

labels

  • labels(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

listAccessTokens

  • listAccessTokens(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>
  • listAccessTokens Get information on all of the BitGo access tokens on the user

    Parameters

    • Optional params: undefined | __type
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

    { id: label: user: enterprise client: scope: created: expires: origin: isExtensible: extensionAddress: <address whose private key's signature is necessary for extensions> unlock: }

listWebhookNotifications

listWebhooks

lock

  • lock(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

logout

  • logout(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

market

  • market(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>
  • Get the latest bitcoin prices (Deprecated: Will be removed in the future) use bitgo.markets().latest()

    deprecated

    Parameters

    • Optional params: undefined | __type
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

markets

  • markets(): any

me

  • me(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

microservicesUrl

  • microservicesUrl(path: string): string

newWalletObject

  • newWalletObject(walletParams: any): any
  • A factory method to create a new Wallet object, initialized with the wallet params Can be used to reconstitute a wallet from cached data

    deprecated

    Parameters

    • walletParams: any

    Returns any

patch

pendingApprovals

  • pendingApprovals(): any

ping

  • ping(__namedParameters?: object, callback?: NodeCallback<any>): Bluebird<any>

post

preprocessAuthenticationParams

put

reconstituteSecret

refreshToken

  • refreshToken(params?: object, callback?: NodeCallback<any>): Bluebird<any>
  • Use refresh token to get new access token. If the refresh token is null/defined, then we use the stored token from auth

    Parameters

    • Default value params: object = {}
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

registerPushToken

  • registerPushToken(params: any, callback?: NodeCallback<any>): Bluebird<any>
  • deprecated

    Parameters

    • params: any
      • operatingSystem: one of ios, android
      • pushToken: hex-formatted token for the respective native push notification service
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

reject

  • reject(msg: string, callback?: NodeCallback<never>): Bluebird<never>

removeAccessToken

  • removeAccessToken(__namedParameters: object, callback?: NodeCallback<any>): Bluebird<any>
  • Sets the expire time of an access token matching either the id or label to the current date, effectively deleting it

    Params: id: label:

    Returns: id: label: user: enterprise client: scope: created: expires: origin: isExtensible: extensionAddress: <address whose private key's signature is ne*cessary for extensions> unlock:

    Parameters

    • __namedParameters: object
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

removeWebhook

sendOTP

  • sendOTP(params?: object, callback?: NodeCallback<any>): Bluebird<any>

session

  • session(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>

setRequestTracer

  • setRequestTracer(reqTracer: IRequestTracer): void

setValidate

  • setValidate(validate: boolean): void

simulateWebhook

splitSecret

toJSON

token

travelRule

  • travelRule(): any

unlock

  • unlock(__namedParameters: object, callback?: NodeCallback<any>): Bluebird<any>

url

  • url(path: string, version?: number): string

user

  • user(): User | undefined

verifyAddress

verifyPassword

verifyPushToken

verifyResponse

  • verifyResponse(__namedParameters: object): object

verifyShards

  • verifyShards(__namedParameters: object): boolean

version

  • version(): string

wallets

  • wallets(): any

yesterday

  • yesterday(params?: undefined | __type, callback?: NodeCallback<any>): Bluebird<any>
  • Get market data from yesterday (Deprecated: Will be removed in the future) use bitgo.markets().yesterday()

    Parameters

    • Optional params: undefined | __type
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

Generated using TypeDoc