Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

90febaa9cc94a354ca5beffe95f9c07146772e15c61eb1671af716a688e8e38e
Timestamp (utc)
2021-02-10 12:44:12
Fee Paid
0.00001144 BSV
(
0.01857865 BSV
-
0.01856721 BSV
)
Fee Rate
492 sat/KB
Version
1
Confirmations
322,320
Size Stats
2,325 B

2 Inputs

Total Input:
0.01857865 BSV
  • Q!Þòõ›×PÔðñyO‘,ã¯Ìm¯;èÞÒô$îÇäæÀ°ª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":["03def2f59bd750d4f0f179134f912ce3afcc6daf3be8ded2f424eec7e4e6c0b0aa",500,"ecad8379a7e0d8e62da3ef0de8ef6b56483814a4e1f2548550cc80466f41e1d5:0","ab37f884d7d1b3adffdf636a4ea1ede6b92bac73de9ed075b97bcff61ef20ea5:0","a079b3399b8c2acbe1c9f8c22fab26d1a9c2c2e5b79342165d14c9a5c7606e33:0"]}u
    https://whatsonchain.com/tx/undefined

3 Outputs

Total Output:
0.01856721 BSV
  • Q!Þòõ›×PÔðñyO‘,ã¯Ìm¯;èÞÒô$îÇäæÀ°ªQ®={"__index":{"obj":0,"res":1},"__func":"split","__args":[100]}u
    https://whatsonchain.com/tx/90febaa9cc94a354ca5beffe95f9c07146772e15c61eb1671af716a688e8e38e
  • Q!Þòõ›×PÔðñyO‘,ã¯Ìm¯;èÞÒô$îÇäæÀ°ª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/90febaa9cc94a354ca5beffe95f9c07146772e15c61eb1671af716a688e8e38e