chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
24 lines • 671 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Transaction = void 0;
class Transaction {
fromAddress;
toAddress;
amount;
constructor(fromAddress, toAddress, amount) {
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.Transaction = Transaction;
//# sourceMappingURL=Transaction.js.map