chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
30 lines • 957 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrencyPreparedTransaction = void 0;
class CurrencyPreparedTransaction {
api;
currencyProviders;
currencyInfo;
fromAddress;
toAddress;
amount;
constructor(api, currencyProviders, currencyInfo, fromAddress, toAddress, amount) {
this.api = api;
this.currencyProviders = currencyProviders;
this.currencyInfo = currencyInfo;
this.fromAddress = fromAddress;
this.toAddress = toAddress;
this.amount = amount;
}
_suggestedFees;
async getSuggestedFees() {
if (this._suggestedFees)
return this._suggestedFees;
else {
this._suggestedFees = await this.buildSuggestedFees();
return this._suggestedFees;
}
}
}
exports.CurrencyPreparedTransaction = CurrencyPreparedTransaction;
//# sourceMappingURL=CurrencyPreparedTransaction.js.map