2023.12.07
almost 2 years ago
JavaScript SDK
Product Features and Enhancements
The JavaScript SDK upgrades the bitgo package to version 26.0.0, delivering the following:
- Adds a new method to get keys and sign MPC transactions
- Enables bulk UTXO consolidation
- Enables generating custody and self-custody cold MPC wallets
- Enables signing MPC transactions with an unencrypted private key
- Enables support for partially-signed bitcoin transactions (PSBTs)
- Updates TRON (TRX) consolidations to include receive addresses
- Updates MPC challenge by automatically applying a new admin signature if the admin resets their password
Bug Fixes
Version 26.0.0 of the SDK fixes the following:
- Checks if a transaction request is pending approval before attempting to sign during a send-to-many transaction
- Improves error handling for for
consolidateAccount - Improves token-fee estimate for TRON (TRX)
- Moves transaction builder from
sdk-coin-ethtoabstract-eth - Returns
falsefor uppercase bech32 and bech32m addresses - Updates
@types/nodeto ^16.18.46 - Uses whitelisted parameters when initiating a transaction
Breaking Changes
- Updates
abstract-ethin the following ways:- Creates a new class for all
EthLikemethods - Changes the
nextContractSequenceIdfield type inTransactionPrebuildinterface from string to number inAbstractEthLikeCoinandAbstractEthLikeNewCoinsclasses - Removes the
getCustomChainNamemethod from thePolygonclass and replaces it with a common method,getCustomChainCommon, in theAbstractEthLikeNewCoinsclass for allEthLikecoins - Requires
replayProtectionOptionsin thebuildTransactionmethod inAbstractEthLikeNewCoins(passing it also derives the ETH common object from thechainId - Changes the
signFinalPolygonmethod name in thePolygonclass tosignFinalEthLike, enabling it for use with otherEthLikeassets - Updates the
getBaseFactormethod inEthandPolygonclasses to return a number instead of string to align withAbstractEthLikeCoin
- Creates a new class for all
Change Log
For a comprehensive list of all changes, view the BitGoJS Change Log in GitHub. For a comprehensive list of all version updates, view the Commits.