Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

e3964cfb5a31d3f01ca0d82d296715268b9ec8e03bb9f31e24ff72a03e028df5
Timestamp (utc)
2021-01-20 17:17:52
Fee Paid
0.00001144 BSV
(
0.01801183 BSV
-
0.01800039 BSV
)
Fee Rate
491.8 sat/KB
Version
1
Confirmations
320,719
Size Stats
2,326 B

2 Inputs

Total Input:
0.01801183 BSV
  • Q!qùš„B‹ÑÞzDrò~¸é0Dž3"ïQ>¦¾FL?ïdEã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":["0271f99a84428bd1de7a4472f27eb8e930c7853322ef513ea6be464c3fef6445e3",1000,"ddd4b8745a736abb4d8da76173872e60b8471f5d890ece318821de4e8d96b1e0:0","00dc3a494d94f20137ad59b08a691415e49bcc9d03b6be7eda28e703f5eb6bf0:0","2b3ea11aeb8a82d66de9468c03b2ceb2f8b633b4b1b5ea698ffeddf608cc71cc:0"]}u
    https://whatsonchain.com/tx/undefined

3 Outputs

Total Output:
0.01800039 BSV
  • Q!qùš„B‹ÑÞzDrò~¸é0Dž3"ïQ>¦¾FL?ïdEãQ®={"__index":{"obj":0,"res":1},"__func":"split","__args":[500]}u
    https://whatsonchain.com/tx/e3964cfb5a31d3f01ca0d82d296715268b9ec8e03bb9f31e24ff72a03e028df5
  • Q!qùš„B‹ÑÞzDrò~¸é0Dž3"ïQ>¦¾FL?ïdEã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/e3964cfb5a31d3f01ca0d82d296715268b9ec8e03bb9f31e24ff72a03e028df5