Expose env property for backwards compatibility
addAccessToken Add a BitGo API Access Token to the current user account
{
otp: (required)
{
id:
created:
Add new user webhook
Login to the bitgo platform.
Synchronous method for activating an access token.
Login to the bitgo system using an authcode generated via Oauth
Get the blockchain object.
Calculate the HMAC for the given key and message
the key to use for the HMAC
the actual message to HMAC
Calculate the string that is to be HMACed for a certain HTTP request or response
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.
Calculate the HMAC for an HTTP request
Calculate request headers with HMAC
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.
Clear out all state from this BitGo object, effectively logging out the current user.
Create a basecoin object
Decrypt an encrypted string locally.
Utility function to encrypt locally.
Estimates approximate fee per kb needed for a tx to get into a block
Extend token, provided the current token is extendable
Receives a TTL and refetches as necessary
Deserialize a JSON serialized BitGo object.
Overwrites the properties on the current BitGo object with those of the deserialzed object.
Generate a random password
Number of 32-bit words
base58 random password
Get a target address for payment of a BitGo fee
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.
The client constants object
Construct an ECDH secret from a private key and other user's public key
Gets the user's private keychain, used for receiving shares
Return the current BitGo environment
Get a key for sharing a wallet with a user
Get a user by ID (name/email only)
Gets an address object (including the wallet id) for a given address.
Response body object
Password for the symmetric decryption
Get BitGo's guarantee using an instant id
Get the user's keychains object.
Get all the address labels on all of the user's wallets
listAccessTokens Get information on all of the BitGo access tokens on the user
{
id:
created:
Fetch list of webhook notifications for the user
Fetch list of user webhooks
Lock the session
Logout of BitGo
Get the latest bitcoin prices
(Deprecated: Will be removed in the future) use bitgo.markets().latest()
Get bitcoin market data
Get the current logged in user
Create a url for calling BitGo microservice APIs
A factory method to create a new Wallet object, initialized with the wallet params Can be used to reconstitute a wallet from cached data
Get pending approvals that can be approved/ or rejected
Test connectivity to the server
Reconstitute a secret which was sharded with splitSecret
.
Use refresh token to get new access token. If the refresh token is null/defined, then we use the stored token from auth
Helper function to return a rejected promise or call callback with error
Sets the expire time of an access token matching either the id or label to the current date, effectively deleting it
Params:
id:
Returns:
id:
created:
Remove user webhook
Trigger a push/sms for the OTP code
Get the current session
Set a request tracer to provide request IDs during multi-request workflows
Simulate a user webhook
Split a secret into shards using Shamir Secret Sharing.
Serialize this BitGo object to a JSON object.
Caution: contains sensitive data
Create a basecoin object for a virtual token
Get the travel rule object
Unlock the session by providing OTP
Create a url for calling BitGo platform APIs
Get the current user
Verify a Bitcoin address is a valid base58 address
Verify the HMAC for an HTTP response
Gets the version of the BitGoJS package
Get the user's wallets object.
Get market data from yesterday (Deprecated: Will be removed in the future) use bitgo.markets().yesterday()
Generated using TypeDoc
Constructor for BitGo Object