Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

adc2b5db3ab21b271d38648b44d997fc8dff332eb70be1185535c2aa5fbaabeb
Timestamp (utc)
2021-01-20 12:04:19
Fee Paid
0.00001144 BSV
(
0.02962982 BSV
-
0.02961838 BSV
)
Fee Rate
490.9 sat/KB
Version
1
Confirmations
320,821
Size Stats
2,328 B

2 Inputs

Total Input:
0.02962982 BSV
  • Q!XX$ösý…ßÉT…¥G2S“rHӝ”D֏ /QÆ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":["02585824f673fd85dfc95485a54732531b937248d3089d9444d68f092f18511ec6",10000,"57ee0f596e65720878cf8550363132422df8e5caba1fe8f72c94a1fba25e41bf:0","91ce47eff73bcbcf3fec0c68b98f15fc2e5d7c8c4f1968e877e2d6711af52bca:0","95a01bd43f3754e45a812cc3dd000bf1498298e054bf6d7c9a07c092d161a5d7:0"]}u
    https://whatsonchain.com/tx/undefined

3 Outputs

Total Output:
0.02961838 BSV
  • Q!XX$ösý…ßÉT…¥G2S“rHӝ”D֏ /QÆQ®>{"__index":{"obj":0,"res":1},"__func":"split","__args":[1000]}u
    https://whatsonchain.com/tx/adc2b5db3ab21b271d38648b44d997fc8dff332eb70be1185535c2aa5fbaabeb
  • Q!XX$ösý…ßÉT…¥G2S“rHӝ”D֏ /QÆQ®MC{"__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}"}u
    https://whatsonchain.com/tx/adc2b5db3ab21b271d38648b44d997fc8dff332eb70be1185535c2aa5fbaabeb