SOCI4L

Build a wallet report

Step 1 of 2
0 of 2 goals

Gather the pieces

You now have everything needed to describe a wallet without an explorer and without an API:

- its native balance, from getBalance - what it holds of a token, from readContract - what it has actually *done*, from getLogs

Pull all three for Bruno. Count both directions of his transfer history — logs where he is from, and logs where he is to.

// Bruno: 0x2222222222222222222222222222222222222222
//
// Build one object describing him, using what you already know:
// getBalance, readContract, getLogs.

Press Run, or hit the button above. Output lands here.

Goals

The code runs without throwing
run the code to check this
Use all three read methods
run the code to check this
Run the code to load this lesson’s chain.