Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

e7daa2e6e52a06ecfb5b50a43798a2db62d2eae572e962b424c7362ec64af055
Timestamp (utc)
2020-12-29 15:03:24
Fee Paid
0.00001211 BSV
(
0.08833748 BSV
-
0.08832537 BSV
)
Fee Rate
500.2 sat/KB
Version
1
Confirmations
324,301
Size Stats
2,421 B

2 Outputs

Total Output:
0.08832537 BSV
  • Q!†‘i6Í©ÇCԉ_É)F;ƒ„Ž<ô“X–¾«BFÃèž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.setToZero();\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].facilityId.fundId !== this.fundId) {\r\n throw new Error(`Unable to merge positions`);\r\n }\r\n sendNumberOfShares += positions[i].numberOfShares;\r\n positions[i].setToZero();\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\r\n setToZero() {\r\n this.numberOfShares = 0;\r\n }\r\n}","__index":{"obj":0},"__func":"constructor","__args":["0386916936cda9c743d4895fc929463b83848e3cf493589617beab4246c3e89e07",1,"7a0c9d798e66bc94df1d403637a55238023e6328ffb1df553ece65f766bb92f1:0","80518b22b42b5a964d8783a7705bd10518bce14a073ee010afd840eab1bfd2bb:0","2b1026c588f6f1ac12417591842bcc45b685018cc29573b4a1f0fca81525ca91:0"]}u
    https://whatsonchain.com/tx/e7daa2e6e52a06ecfb5b50a43798a2db62d2eae572e962b424c7362ec64af055