# poidh v3 wallet data: Ethereum, Arbitrum, Base

One CSV row per wallet: ETH paid into **successfully completed** poidh v3 bounties, ETH earned from them (gross, before the 2.5% fee) and poidh v3 claim NFTs currently held, per chain and in total. Built only from on-chain events and contract state read at a fixed block per chain. No indexer, no poidh API, no API keys.

## Files

| file | what |
|---|---|
| [`poidh_v3_wallets.csv`](poidh_v3_wallets.csv) | **the deliverable**: 1436 wallets, exactly the 13 requested columns |
| [`poidh_v3_protocol_nft_holdings.csv`](poidh_v3_protocol_nft_holdings.csv) | NFTs held by the protocol contracts themselves (kept out of the wallet rows) |
| [`completed_bounties.csv`](completed_bounties.csv) | all 461 completed bounties: type, how accepted, winner, gross, sum of contributions, tx |
| [`poidh_v3_wallets_detail.csv`](poidh_v3_wallets_detail.csv) | per wallet and chain: bounties created / funded-and-completed / won, claims submitted |
| [`summary.json`](summary.json) | per-chain totals, counts, cutoff blocks, check results |
| [`sample_checks.json`](sample_checks.json) | receipt-level spot checks (tx hashes) |
| `preview.png` | claim image |
| `data/` | raw inputs: `cutoff.json` (blocks), `<chain>_logs.json` (all events), `<chain>_state.json` (state at the cutoff) — `build.py` reruns offline from these |
| `control.txt` | output of the positive control (see below) |

## Snapshot

Cutoff = creation time of poidh bounty #1540: **2026-11-08T03:59:54Z** (unix 1794110394). Per chain, the last block with timestamp <= cutoff (found by binary search over block headers, `cutoff.py`). All state reads are `eth_call` pinned to that block and all events are fetched up to and including it.

| chain | core contract | NFT contract | cutoff block | block time | events from block |
|---|---|---|---|---|---|
| Ethereum | [`0xe731dfadbff20542e10d09d26fc71445c70d4232`](https://etherscan.io/address/0xe731dfadbff20542e10d09d26fc71445c70d4232) | [`0x9c5f45d5e1382e4058d334d93c6c01442012a4d9`](https://etherscan.io/address/0x9c5f45d5e1382e4058d334d93c6c01442012a4d9) | [26367617](https://etherscan.io/block/26367617) | 2026-11-08 03:59:47 UTC | 25088348 (deploy) |
| Arbitrum | [`0x5555fa783936c260f77385b4e153b9725fef1719`](https://arbiscan.io/address/0x5555fa783936c260f77385b4e153b9725fef1719) | [`0x27e117cc9a8da363442e7bd0618939e3eeeacf6a`](https://arbiscan.io/address/0x27e117cc9a8da363442e7bd0618939e3eeeacf6a) | [522271780](https://arbiscan.io/block/522271780) | 2026-11-08 03:59:54 UTC | 423059286 (deploy) |
| Base | [`0x5555fa783936c260f77385b4e153b9725fef1719`](https://basescan.org/address/0x5555fa783936c260f77385b4e153b9725fef1719) | [`0x27e117cc9a8da363442e7bd0618939e3eeeacf6a`](https://basescan.org/address/0x27e117cc9a8da363442e7bd0618939e3eeeacf6a) | [54600096](https://basescan.org/block/54600096) | 2026-11-08 03:59:54 UTC | 41026079 (deploy) |

## Results and reconciliation

Every completed bounty's gross amount is credited once to its winner (`eth_earned`) and split across the wallets whose ETH was in it at acceptance (`eth_paid`). `check_csv.py` re-reads the CSV and confirms its column sums equal these totals.

| chain | completed bounties (solo / open) | accepted by vote | ETH paid (contributors) | ETH earned (winners) | equal | 2.5% fee | NFTs minted | in user wallets | in protocol escrow |
|---|---|---|---|---|---|---|---|---|---|
| Ethereum | 27 (1 / 26) | 19 | 3.381683 | 3.381683 | yes | 0.084542075 | 407 | 27 | 380 |
| Arbitrum | 113 (14 / 99) | 37 | 2.969041 | 2.969041 | yes | 0.074226025 | 732 | 113 | 619 |
| Base | 321 (36 / 285) | 177 | 6.01943544252522 | 6.01943544252522 | yes | 0.1504858860631305 | 4166 | 321 | 3845 |
| **all** | **461** | | **12.37015944252522** | **12.37015944252522** | **yes** | | 5305 | **461** | 4844 |

In wei: paid 12370159442525220000 = earned 12370159442525220000. Per bounty, the sum of attributed contributions equals the gross payout for **all 461** completed bounties (column `reconciled` in `completed_bounties.csv`; bounties that do not reconcile: 0).

Wallet rows: 1436 = 276 with ETH paid, 257 with ETH earned, 151 holding NFTs (overlapping), and 966 with all zeros (see *Which wallets are rows*).

Other bounties at the cutoff (not counted): Ethereum 12 cancelled, 7 still open; Arbitrum 36 cancelled, 12 still open; Base 137 cancelled, 97 still open.

### Top 10 wallets

| wallet | ETH paid | ETH earned | NFTs |
|---|---|---|---|
| `0x4200aC338555e25B20C8fe82AC02a5C8D4e5A5b4` | 2.7199 | 0 | 71 |
| `0xc5f2D0A16146725ce62F8f67D7036650E7Bf6218` | 0 | 1.53575 | 0 |
| `0xc0163E58648b247c143023CFB26C2BAA42C9d9A9` | 1.527 | 0 | 0 |
| `0xcebe15E70Fad55c0245d9Add4d13CC1F91236ade` | 0.0045 | 1.3735 | 0 |
| `0x10Fc964Ef70C8467CD8c53e9eD9347422AdF96A8` | 1.165887 | 0.003 | 117 |
| `0x34aA3F359A9D614239015126635CE7732c18fDF3` | 0 | 1 | 0 |
| `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045` | 1 | 0 | 0 |
| `0x293F2BB46d15d6a496300a03E68EbA21e17A0213` | 0 | 0.6644 | 0 |
| `0x864405169b4AbCa041dDa945D2a028703B70585A` | 0.35 | 0 | 0 |
| `0xc5412b7a321F4b459B534257cC6C1C3C03e18eAD` | 0.00603 | 0.333633 | 1 |

### NFTs held by the protocol contracts (not attributed to users)

| chain | address | what | NFTs |
|---|---|---|---|
| Ethereum | `0xE731dFadBFf20542E10D09D26Fc71445C70d4232` | poidh v3 core contract (claim NFT escrow) | 380 |
| Arbitrum | `0x5555Fa783936C260f77385b4E153B9725feF1719` | poidh v3 core contract (claim NFT escrow) | 619 |
| Base | `0x5555Fa783936C260f77385b4E153B9725feF1719` | poidh v3 core contract (claim NFT escrow) | 3845 |

These are claim NFTs for claims that were never accepted (rejected, losing or still pending). `createClaim` mints every claim NFT to the core contract as escrow; only `_acceptClaim` moves one out (to the bounty issuer). So escrow + wallets = minted, and wallets = accepted claims plus any later user-to-user transfers.

## Method

Contract logic is the verified `PoidhV3` / `PoidhClaimNFT` source on Sourcify (identical logic on all three chains; the mainnet file differs only in comments).

1. **Events** (`fetch_logs.py`): every log of the core contract and every `Transfer` of the NFT contract from the deploy block to the cutoff block. Sources: Ethereum: eth_getLogs https://mainnet.gateway.tenderly.co (1000-block windows); Arbitrum: eth_getLogs https://arb1.arbitrum.io/rpc (100000-block windows); Base: eth_getLogs https://base.gateway.tenderly.co (1000-block windows).
2. **State** (`fetch_state.py`): at the cutoff block, via Multicall3: `bountyCounter`, every `bounties(i)`, every `getParticipants(i)` (addresses + amounts), every `claims(i)`, `ownerOf(id)` for every claim NFT id, `balanceOf` for every holder.
3. **Replay + cross-check** (`build.py`): events are replayed in block/log order.
   - `BountyCreated`: the issuer's stake = `amount` (solo and open). `BountyJoined`: + amount for that wallet. `WithdrawFromOpenBounty`: that wallet's stake -> 0 (checked equal to the logged amount). Cancels/refunds -> 0. After each join/withdraw the replayed bounty balance must equal the event's `latestBountyBalance`.
   - `ClaimAccepted(bountyId, claimId, claimIssuer, bountyIssuer, bountyAmount, payout, fee)`: completed. The stakes still in the bounty become `eth_paid` (must sum exactly to `bountyAmount`); `bountyAmount` (gross) becomes the winner's `eth_earned`; `payout + fee == bountyAmount` and `fee == 2.5%` are asserted.
   - State must agree: completed set from state (`claimer != 0 && claimer != issuer`) == set of `ClaimAccepted`; winner and claim id match; the claim is `accepted`; for open bounties the non-zero `participantAmounts` at the cutoff equal the replayed stakes wallet by wallet; still-open bounties' `amount` equals the replayed balance; event counts equal `bountyCounter` and `claimCounter`.
   - NFTs: the `Transfer` replay gives an owner per token; it must equal `ownerOf` at the cutoff for every token id; every mint goes to the core contract; token ids are exactly `[firstClaimId, claimCounter)` (ids just outside revert); burns = 0; per-holder counts equal `balanceOf`.
4. Wallets are merged across chains by address; amounts are summed in integer wei and printed as exact decimals (no floats).

### Definitions from the contract

- **Completed** = the bounty has a `ClaimAccepted` event, equivalently `bounty.claimer` is neither `0x0` (active) nor the issuer (cancelled). This happens only in `_acceptClaim`, reached by `acceptClaim` (solo bounty, or an open bounty that never had an outside contributor; issuer only) or by `resolveVote` after a passed contributor vote (yes weight > 50% of votes, weights = contributions snapshotted when the vote started; the issuer's stake votes yes). Failed votes and resets do not complete anything.
- **ETH paid**: solo bounty -> the issuer's whole amount (solo bounties cannot be topped up). Open bounty -> each contributor's stake at acceptance (the issuer's opening stake included). Joining is blocked during a vote, so the stakes at acceptance are exactly what funded the payout. Withdrawn stakes are 0 (a wallet that withdrew and rejoined counts only the rejoin). Cancelled bounties and bounties still open at the cutoff count 0.
- **ETH earned**: the gross `bountyAmount` of every accepted claim, before the 2.5% fee (the winner received 97.5% as a pull-payment credit; whether it has been withdrawn does not matter).
- **NFTs held**: `ownerOf` at the cutoff block, counted per current holder.

## Spot checks against receipts (`verify_sample.py`)

For 6 Ethereum, 6 Arbitrum, 6 Base completed bounties (always a solo one, an open one with a withdrawn contributor where one exists, a vote-resolved one, the largest, the one with most contributors, plus random), every related transaction and its receipt was re-fetched by hash from RPC, independently of the bulk download: the ETH `value` of each create/join tx sent directly to the contract equals the logged amount, and the rebuilt contributions sum to the accepted gross with the same winner.

| chain | bounty | why picked | gross (wei) | contributors | accept tx | result |
|---|---|---|---|---|---|---|
| Ethereum | 0 | solo bounty | 1000000000000000 | 1 | [`0x1a2dab7a1b…`](https://etherscan.io/tx/0x1a2dab7a1b71e152cac0232c8ba7326e29494b2d09040fddf91dc4247cedfc8a) | match |
| Ethereum | 24 | open bounty with a withdrawn contributor | 1000000000000000000 | 18 (1 withdrawal(s) excluded) | [`0xef0445ec6f…`](https://etherscan.io/tx/0xef0445ec6f3058467b4812f8f752023e8842e051f7467a02300191a36750f0d3) | match |
| Ethereum | 3 | accepted by contributor vote | 7660000000000000 | 2 | [`0x41661ab2cf…`](https://etherscan.io/tx/0x41661ab2cff6eb8d60366b9c84b04241b6332ef0edfb66372a1d2191029022f3) | match |
| Ethereum | 31 | largest completed bounty on the chain | 1535750000000000000 | 17 (1 withdrawal(s) excluded) | [`0x3ac177d1c3…`](https://etherscan.io/tx/0x3ac177d1c3eedee3725aa8122e4dc5bcdaa0fd74b1c60ce87baf91ffbb2c5245) | match |
| Ethereum | 43 | most contributors | 159237000000000000 | 13 | [`0x83389d93f1…`](https://etherscan.io/tx/0x83389d93f1678acd5f919cb7ab5177f7146dec88b5e165919ee8772ae9da07ea) | match |
| Ethereum | 1 | random | 2500000000000000 | 1 | [`0xa8ee3684dd…`](https://etherscan.io/tx/0xa8ee3684dd3c65b07ce1a7be4ecac4126a1ea908864a926c74ae42378609b852) | match |
| Arbitrum | 31 | solo bounty | 3000000000000000 | 1 | [`0xbb453ef737…`](https://arbiscan.io/tx/0xbb453ef737cba920f298059b44863613cad8d99926a773d164951f2733a518d1) | match |
| Arbitrum | 3 | accepted by contributor vote | 13000000000000000 | 5 | [`0xbf00aa3770…`](https://arbiscan.io/tx/0xbf00aa37705792df673758cd3b485c3724673da3f28213435c4da919fe444286) | match |
| Arbitrum | 143 | largest completed bounty on the chain | 1373500000000000000 | 3 | [`0xa354fa1a69…`](https://arbiscan.io/tx/0xa354fa1a696434393b49a129d6586d07ddbfe2daf9d44e430f2c4ae570c37362) | match |
| Arbitrum | 51 | most contributors | 57500000000000000 | 5 | [`0x3dcce4cf5e…`](https://arbiscan.io/tx/0x3dcce4cf5e91b20263a1fa712cc651a5e16e735837cbe205eedf660a23f6270d) | match |
| Arbitrum | 49 | random | 55000000000000000 | 1 | [`0xc2cef7ef22…`](https://arbiscan.io/tx/0xc2cef7ef2266dd2f31717e873244bf9f89ef7475885264cf9bbceb60ab3dcc0c) | match |
| Arbitrum | 113 | random | 7770000000000000 | 1 | [`0x1b87593f02…`](https://arbiscan.io/tx/0x1b87593f022db47ebd32cd277b9e766becc3dbdc0b1d92e122bee83e7d68c0f6) | match |
| Base | 16 | solo bounty | 1000000000000000 | 1 | [`0xebb4dd8498…`](https://basescan.org/tx/0xebb4dd8498cf8530466841648b3cef6e430b637fb91fa3441d3cce425b990906) | match |
| Base | 30 | open bounty with a withdrawn contributor | 2000000000000000 | 2 (2 withdrawal(s) excluded) | [`0x4ed790d25b…`](https://basescan.org/tx/0x4ed790d25b5801e3ffcf9b0b86564a662c715579e3961a29f9ffcd855dc1539d) | match |
| Base | 4 | accepted by contributor vote | 17700000000000000 | 2 | [`0x75ddef3bd4…`](https://basescan.org/tx/0x75ddef3bd42c069528b0a0699fd5fb73b4ac9dd1cd5e3ca6d0900a566a2824a9) | match |
| Base | 150 | largest completed bounty on the chain | 661900000000000000 | 25 (3 withdrawal(s) excluded) | [`0x03d4504f8d…`](https://basescan.org/tx/0x03d4504f8ddf6cb868ab85ef9ad3105c661c4b71db8a3c1848b2d65232426ba4) | match |
| Base | 391 | most contributors | 255936000000000000 | 24 (3 withdrawal(s) excluded) | [`0xa83a0620cd…`](https://basescan.org/tx/0xa83a0620cd4f2fbbb0f615396b0e3e7ae345551b6171f4d0f0a758c3ceb4e4cc) | match |
| Base | 344 | random | 23800000000000000 | 2 | [`0x4d6fb65587…`](https://basescan.org/tx/0x4d6fb65587843474258109ba709aaf7af8907ad4b7fc8dda75e9637b99205385) | match |

Example of the withdrawal rule: on Base bounty 30 one contributor joined, withdrew, rejoined with 0.0013 ETH, withdrew again and finally rejoined with 0.001 ETH; only the final 0.001 ETH is credited, and the bounty's 0.002 ETH reconciles.

All transaction hashes per bounty (create, joins, withdrawals, accept) are in `sample_checks.json`.

## Positive control

To prove the checks can fail, `build.py --drop-join 0` deletes a single `BountyJoined` event and rebuilds into a scratch folder:

```
$ python3 build.py --drop-join 0      # remove 1 BountyJoined event
POSITIVE CONTROL: dropped BountyJoined mainnet 0xe335b1517d4ce56e25f33e6e08fb1cfda4977609b74b34dd3a26256afdefbeb2
CHECK FAILED: mainnet: bounty 3: contributions 5160000000000000 != gross 7660000000000000
CHECK FAILED: mainnet: bounty 3: state participantAmounts != replayed contributions
CHECK FAILED: mainnet: paid 3379183000000000000 / earned 3381683000000000000 / gross 3381683000000000000 do not reconcile
CHECK FAILED: overall paid != earned
FAILED: 4 checks
(exit code 1; the unmodified data passes: "ALL CHECKS PASSED", exit 0)
```

## Which wallets are rows

Every address that appears in v3 activity on any of the three chains: bounty issuers, contributors (including ones who withdrew), claim submitters, winners and current NFT holders. Rows with all zeros are wallets whose only activity did not end in a completed bounty (e.g. issuers of cancelled bounties, claimants who never won). Filter with `eth_paid_total > 0 or eth_earned_total > 0 or nfts_held_total > 0` for active wallets only. The protocol contracts and `0x0` are not rows. Addresses are EIP-55 checksummed; ETH values are exact decimals.

## Limitations and edge cases

- Snapshot is at the cutoff block; anything after bounty #1540's creation is ignored by design.
- `eth_paid` is per wallet that called the contract. A contribution sent through a smart wallet or relayer is credited to that contract address, as on-chain. Bounty creation is EOA-only in v3 (`msg.sender == tx.origin`).
- A wallet can be both contributor and winner of the same bounty; both sides are credited, with no netting.
- An open bounty that never had an outside contributor is accepted directly by its issuer; its whole amount is that issuer's `eth_paid`.
- NFT counts include every claim NFT a wallet holds now, including ones received by plain transfer. Accepted-claim NFTs go to the bounty issuer (the funder), not to the claimant, so `nfts_held` mostly tracks bounty issuers.
- Explorer indexes can have gaps, so all events come from raw `eth_getLogs` against public RPC endpoints in fixed block windows (Arbitrum 100,000 blocks, Ethereum and Base 1,000 blocks). An earlier pull of Base events from a block explorer's API was rejected by the checks: compared with raw RPC logs for the same block range, the explorer's Base index was missing 212 of 6,651 core-contract logs (in 204 transactions) and 165 of 4,499 NFT Transfers, so BountyCreated (542) did not match `bountyCounter` (555) and 17 completed bounties had no ClaimAccepted. For Ethereum the explorer and raw RPC logs were identical (728 core logs, 435 Transfers). Every event set is also tied to contract state read at the cutoff block, so a missing or extra event fails the build.
- Bounty ids in this repo are on-chain ids (`bounties(i)`). The poidh website numbers bounties differently: bounty #1540 itself is on-chain id 554 on Base, created in the cutoff block, and counts as still open.
- Treasury fee withdrawals and users' `withdraw()` of pending balances move no attribution and are ignored.

## Reproduce

```
pip install -r requirements.txt   # eth-abi, eth-utils, eth-hash[pycryptodome], pillow (pinned)
./run_all.sh          # cutoff -> logs -> state -> build (all checks) -> sample checks -> image -> README
```

Individual steps: `cutoff.py`; `fetch_logs.py <chain>` (resumable; Base is about 13.6k requests); `compare_sources.py A.json B.json` (diff two log downloads); `fetch_state.py <chain>`; `build.py`; `verify_sample.py`; `render.py`; `report.py`. `build.py` exits non-zero if any check fails.
