MCPcopy Create free account
hub / github.com/Savjee/SavjeeCoin / constructor

Method constructor

src/blockchain.js:13–18  ·  view source on GitHub ↗

* @param {string} fromAddress * @param {string} toAddress * @param {number} amount

(fromAddress, toAddress, amount)

Source from the content-addressed store, hash-verified

11 * @param {number} amount
12 */
13 constructor(fromAddress, toAddress, amount) {
14 this.fromAddress = fromAddress;
15 this.toAddress = toAddress;
16 this.amount = amount;
17 this.timestamp = Date.now();
18 }
19
20 /**
21 * Creates a SHA256 hash of the transaction

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected