Coinmonks
Published in

Coinmonks

The Rent is Too Damn High Part II

Further Explorations into Sending Money to Myself

Yes Dear…

In the previous article, I was discussing this transaction (as presented by the TrueBlocks front end in US dollars at the time of the transaction):

Transaction 13,071,849.239 in US Dollars

Getting Started with the TrueBlocks Command Line

This article is not the place for instruction on how to use a Linux command line. Nor how to download and install TrueBlocks. We’ll assume you follow these instructions: https://docs.trueblocks.io/docs/prologue/installing-trueblocks/. Do so now and return when you’re ready…

Playing Around…

Assuming you’ve completed the above installation instructions, let’s try the following command:

chifra names -c trueblocks
tags        address       name
00-Active 0xf50...79b TrueBlocks Wallet 0xf503
chifra transactions 13071849.239 --reconcile \
0xf503017d7baf7fbc0fff7492b751025c6a78179b --fmt json
{
"data": [
{
"blockNumber": 13071849,
"transactionIndex": 239,
"assetAddr": "0xf503017d7baf7fbc0fff7492b751025c6a78179b",
"assetSymbol": "ETH",
"begBal": "38.220952577792982227",
"gasCostOut": "0.004103324588246856",
"spotPrice": 3240.70642,
"priceSource": "uniswap",
"totalIn": "0.00000000000000000",
"totalOut": "0.004103324588246856",
"amountNet": "-0.004103324588246856",
"endBal": "38.216849253204735371",
"reconciled": true
},
{
"blockNumber": 13071849,
"transactionIndex": 239,
"assetAddr": "0x6b175474e89094c44da98b954eedeac495271d0f",
"assetSymbol": "DAI",
"begBal": "5188.943282141176871055",
"amountIn": "16003.446778836992430933",
"spotPrice": 1,
"priceSource": "stable-coin",
"endBalCalc": "21192.390060978169301988",
"totalIn": "16003.446778836992430933",
"totalOut": "",
"amountNet": "16003.446778836992430933",
"endBal": "21192.390060978169301988",
"reconciled": true
},
{
"blockNumber": 13071849,
"transactionIndex": 239,
"assetAddr": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"assetSymbol": "WETH",
"begBal": "44.165326226182661143",
"amountOut": "5.0000000",
"spotPrice": 3240.70642,
"priceSource": "uniswap",
"endBalCalc": "39.165326226182661143",
"totalOut": "5.0000000",
"totalOutLessGas": "5.0000000",
"amountNet": "-5.0000000",
"endBal": "39.165326226182661143",
"reconciled": true
}
]
}

Getting US Dollars from SpotPrice and Token Count

So, how do we get US dollars?

Where Exactly Did the Money Go?

Being anal retentive, like my father, it wasn’t enough for me to know that I had spent $200.00. I wanted to know exactly where it went.

chifra transactions 13071849.239 --uniq
bn.tx        addr
13071849.239 0xf503017d7baf7fbc0fff7492b751025c6a78179b
13071849.239 0x881d40237659c251811cec9c364ef91dc08d300c
13071849.239 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
13071849.239 0x6b175474e89094c44da98b954eedeac495271d0f
13071849.239 0x11ededebf63bef0ea2d2d071bdf88f71543ec6fb
13071849.239 0x74de5d4fcbf63e00296fd95d33236b9794016631
13071849.239 0x60594a405d53811d3bc4766596efd80fd545a270
13071849.239 0xdef1c0ded9bec7f1a1670819833240f027b25eff
13071849.239 0x3d1d55c23dfc759c5ae48500ca88ddf477b3c9e5
13071849.239 0x47f01db18a38261e4cb153bae6db7d3743acb33c
13071849.239 0xfffd8963efd1fc6a506488495d951d5263988d25
addr                                       name
0x11ededebf63bef0ea2d2d071bdf88f71543ec6fb Metamask Fees
0x6b175474e89094c44da98b954eedeac495271d0f Dai Stablecoin
0x60594a405d53811d3bc4766596efd80fd545a270 Uniswap V3: DAI
0x881d40237659c251811cec9c364ef91dc08d300c Metamask Swap Router
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 Wrapped Ether
0xdef1c0ded9bec7f1a1670819833240f027b25eff 0x Exchange Proxy
0xf503017d7baf7fbc0fff7492b751025c6a78179b TrueBlocks Wallet
No results for 0x74de5d4fcbf63e00296fd95d33236b9794016631
No results for 0x3d1d55c23dfc759c5ae48500ca88ddf477b3c9e5
No results for 0x47f01db18a38261e4cb153bae6db7d3743acb33c
No results for 0xfffd8963efd1fc6a506488495d951d5263988d25
chifra transactions 13071849.239 --reconcile \
0x11ededebf63bef0ea2d2d071bdf88f71543ec6fb --fmt json
{
"data": [
{
"blockNumber": 13071849,
"transactionIndex": 239,
"assetAddr": "0x11ededebf63bef0ea2d2d071bdf88f71543ec6fb",
"assetSymbol": "ETH",
"begBal": "1250.563288183878021420",
"amountIn": "",
"internalIn": "0.043750000000000000",
"spotPrice": 3240.70642,
"priceSource": "uniswap",
"totalIn": "0.043750000000000000",
"totalOut": "",
"amountNet": "",
"endBal": "1250.586983614757050983",
"reconciled": true
}
]
}

What About the Rest?

The above calculations leave 58.304415288007569 still unaccounted for. Where did money that go? Looking at the above image, you can see we paid $13.30 to the miner in gas fees, leaving 45.004415288007569 that went to UniSwap and its liquidity providers. I’ll leave it as an exercise for the interested reader to dig deeper.

Conclusion

Alright, we admit it we punted on the final resolution above, but you get the idea: TrueBlocks is amazing.

Support Our Work

If you like this article or you simply wish to support our work go to our GitCoin grant https://gitcoin.co/grants/184/trueblocks. Donate to the next matching round. We get the added benefit of a larger matching grant. Even small amounts have a big impact.

Join Coinmonks Telegram Channel and learn about crypto trading and investing

Also, Read

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Thomas Jay Rush

Blockchain Enthusiast, Founder TrueBlocks, LLC and Philadelphia Ethereum Meetup, MS Computer Science UPenn