Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

76bcdf955bda50e5f4c1ba6dc155895756f94a3de994d8383b4eefa3ad412b74
Timestamp (utc)
2021-01-18 12:16:24
Fee Paid
0.00001220 BSV
(
0.08626240 BSV
-
0.08625020 BSV
)
Fee Rate
500.4 sat/KB
Version
1
Confirmations
325,592
Size Stats
2,438 B

2 Outputs

Total Output:
0.08625020 BSV
  • Q!Q"I½ ¡@î;ÑJ×ü÷ÊÃé+ s}†qA¸@ïQ®M’{"__cls":"class PositionSC {\r\n constructor(owner, numberOfShares = 0, dealId = '', facilityId = '', fundId = '') {\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 }\r\n\r\n split(newNumberOfShares) {\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);\r\n }\r\n throw new Error(`Cannot split current transaction`);\r\n }\r\n\r\n merge(...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);\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) {\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);\r\n }\r\n}","__index":{"obj":0},"__func":"constructor","__args":["03511b2249bd0b140ea140ee3bd14ad7fcf7cac3e92b1d0c737d867141b80140ef",1000,"877de0557471dd9b361adafaf21879f56cad0d44e63f21b5f754a9f54cf1ce6f:0","8c8d336396c25af47393bb0e387cecda32cdcb363fd9e3b73393c28a9f0a1e2a:0","342592e8aa46d99869597a20e81bffb8c5990dd89df4a952bbaa70f84929d159:0"]}u
    https://whatsonchain.com/tx/76bcdf955bda50e5f4c1ba6dc155895756f94a3de994d8383b4eefa3ad412b74