Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

0cd94e9f022a18efdd2f2e2ab4b9b97683350095fbb4b801184fe1bd347da85e
Timestamp (utc)
2020-12-31 15:30:34
Fee Paid
0.00001160 BSV
(
0.05658482 BSV
-
0.05657322 BSV
)
Fee Rate
500.4 sat/KB
Version
1
Confirmations
324,167
Size Stats
2,318 B

2 Outputs

Total Output:
0.05657322 BSV
  • Q!§™I{_ÝzvVû%>üW–ÜūѤP¹AºâZß?Q®M{"__cls":"class PositionSC {\n constructor(owner, numberOfShares = 0, dealId = '', facilityId = '', fundId = '') {\n this._owners = [owner];\n this.numberOfShares = numberOfShares;\n this.dealId = dealId\n this.facilityId = facilityId;\n this.fundId = fundId;\n }\n\n split(newNumberOfShares) {\n if (newNumberOfShares === this.numberOfShares) {\n return this;\n }\n if (newNumberOfShares < this.numberOfShares) {\n this.numberOfShares -= newNumberOfShares;\n return new PositionSC(this._owners[0], newNumberOfShares, this.dealId, this.facilityId, this.fundId);\n }\n throw new Error(`Cannot split current transaction`);\n }\n\n merge(...positions) {\n try {\n if (positions.length === 0) return this;\n let sendNumberOfShares = this.numberOfShares;\n this.setToZero();\n for (let i = 0; i < positions.length; i += 1) {\n if (positions[i].dealId !== this.dealId || positions[i].facilityId !== this.facilityId || positions[i].fundId !== this.fundId) {\n throw new Error(`Unable to merge positions`);\n }\n sendNumberOfShares += positions[i].numberOfShares;\n positions[i].setToZero();\n }\n return new PositionSC(this._owners[0], sendNumberOfShares, this.dealId, this.facilityId, this.fundId);\n } catch (err) {\n throw new Error(`Unable to merge positions`);\n }\n }\n\n send(to, fundId, numberOfShares) {\n if (this.numberOfShares < numberOfShares) throw new Error(`Insufficient funds`);\n this.numberOfShares = this.numberOfShares - numberOfShares;\n return new PositionSC(to, numberOfShares, this.dealId, this.facilityId, fundId);\n }\n\n setToZero() {\n this.numberOfShares = 0;\n }\n}","__index":{"obj":0},"__func":"constructor","__args":["03a799497b5fc39d7a765601fb253efc5796dc14c5abd1a450b94113bae25adf3f",300,"4aa441213d5ad3567dd6fce599a7921ff91f65b4302447d3d5fd43bd460264d2:0","95a0ed9525675abfdd8311b5fca17b1c2368249f46c9204c77d31c651b41ac8b:0","a237c47305408bc4b13f111629ca453064ad582975f00ac3c396c605a2e64585:0"]}u
    https://whatsonchain.com/tx/0cd94e9f022a18efdd2f2e2ab4b9b97683350095fbb4b801184fe1bd347da85e