chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
20 lines • 536 B
JavaScript
export 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;
}
}
}
//# sourceMappingURL=Transaction.js.map