Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

c7016a773681f11a994a8f597cfd32a293a9d3724a43812abecdc3023922011f
Timestamp (utc)
2021-03-08 18:34:19
Fee Paid
0.00001293 BSV
(
0.04926556 BSV
-
0.04925263 BSV
)
Fee Rate
500.1 sat/KB
Version
1
Confirmations
318,887
Size Stats
2,585 B

2 Outputs

Total Output:
0.04925263 BSV
  • Q!X~Øe™CËÆ“ÿšCÌ& ìáB8±``‹1æH5Q®M% {"__cls":"class PositionSC {\r\n constructor(owner, numberOfShares = 0, dealId = '', facilityId = '', fundId = '', dateCreated = '') {\r\n this._owners = [owner];\r\n this.numberOfShares = numberOfShares;\r\n this.dealId = dealId\r\n this.facilityId = facilityId;\r\n this.fundId = fundId;\r\n this.dateCreated = dateCreated;\r\n }\r\n\r\n split(newNumberOfShares, dateCreated) {\r\n if (newNumberOfShares === this.numberOfShares) {\r\n return this;\r\n }\r\n if (newNumberOfShares < this.numberOfShares) {\r\n this.numberOfShares -= newNumberOfShares;\r\n return new PositionSC(this._owners[0], newNumberOfShares, this.dealId, this.facilityId, this.fundId, dateCreated);\r\n }\r\n throw new Error(`Cannot split current transaction`);\r\n }\r\n\r\n merge(dateCreated, ...positions) {\r\n try {\r\n if (positions.length === 0) return this;\r\n let sendNumberOfShares = this.numberOfShares;\r\n this.numberOfShares = 0;\r\n for (let i = 0; i < positions.length; i += 1) {\r\n if (positions[i].dealId !== this.dealId || positions[i].facilityId !== this.facilityId || positions[i].fundId !== this.fundId) {\r\n throw new Error(`Unable to merge, positions don't originate from the same facility or don't belong to the same fund`);\r\n }\r\n sendNumberOfShares += positions[i].numberOfShares;\r\n positions[i].numberOfShares = 0;\r\n }\r\n return new PositionSC(this._owners[0], sendNumberOfShares, this.dealId, this.facilityId, this.fundId, dateCreated);\r\n } catch (err) {\r\n throw new Error(`Unable to merge positions`);\r\n }\r\n }\r\n\r\n send(to, fundId, numberOfShares, dateCreated) {\r\n if (this.numberOfShares < numberOfShares) throw new Error(`Insufficient funds`);\r\n this.numberOfShares = this.numberOfShares - numberOfShares;\r\n return new PositionSC(to, numberOfShares, this.dealId, this.facilityId, fundId, dateCreated);\r\n }\r\n}","__index":{"obj":0},"__func":"constructor","__args":["03587ed865991643cbc693ff9a151f43cc261c20ece14238b160608b1131e64835",100,"c664c3ecd5626c165ab843814dd5d504102e2f72bf5e9d930438d740e5111056:0","be4945180b05753028d8e89da5759398aa182af608a4fc63d2b48c19c68c63d1:0","357c7f17be1d4609ad857900ffa5cd9fdba2a9d7c65aa68dc3c53e84e8e8966f:0","1615227985"]}u
    https://whatsonchain.com/tx/c7016a773681f11a994a8f597cfd32a293a9d3724a43812abecdc3023922011f