diff --git a/modules/bitgo/src/v2/wallet.ts b/modules/bitgo/src/v2/wallet.ts index ee74938c1c..1cef0c0202 100644 --- a/modules/bitgo/src/v2/wallet.ts +++ b/modules/bitgo/src/v2/wallet.ts @@ -445,9 +445,11 @@ export interface WalletData { balance: number; confirmedBalance: number; spendableBalance: number; + trsBalance: number; balanceString: string; confirmedBalanceString: string; spendableBalanceString: string; + trsBalanceString: string; coin: string; label: string; keys: string[]; @@ -663,6 +665,15 @@ export class Wallet { return this._wallet.spendableBalanceString; } + /** + * Get a string representation of the TRS balance of this wallet + * + * This is useful when balances have the potential to overflow standard javascript numbers + */ + trsBalanceString(): string { + return this._wallet.trsBalanceString; + } + /** * Get the coin identifier for the type of coin this wallet holds */