Quick Answer: A unified market event log stores trades from Solana, Robinhood Chain, and brokerage CSV files in one record format, with each row carrying a hash and a proof reference. Ebti, an MIT-licensed open-source project, builds this log from the command line. Its
verifycommand recomputes each record's hash, so you can tell whether a row was edited after it was sealed.
A swap on Solana, a mint on Robinhood Chain, and a buy line in a brokerage export describe the same kind of event. They're stored in three incompatible shapes, though. Most people end up with a spreadsheet, a block explorer tab, and a guess. Building a unified market event log from these sources is harder than it looks, because the details that matter sit in units, decimals, and timestamps. Ebti reads all three and writes one sentence per event, with a proof you can recompute. Here's how it works, where it bends, and what it doesn't promise.
Why merging raw exports in a spreadsheet goes wrong
The lazy approach is to download each export and paste the rows together. That fails quietly. Solana reports token amounts in base units, not human units. USDC uses 6 decimals, so 250 USDC appears as 250000000. SOL uses 9 decimals, so 2 SOL appears as 2000000000 lamports. Sum those with a human-readable brokerage figure like 25000 and the total looks plausible while being wrong by orders of magnitude.
When a column mixes base units and display units, the error is cause and effect: an unlabeled decimal mismatch flows into every total, average, and reconciliation downstream. You won't see an error message. You'll see a P&L number that's off and no clue why.
Ebti's answer is to keep the raw integer in the record and render the human unit only in the sentence. The sample output shows 2 SOL and 250 USDC, while the JSON keeps "amount": "250000000". That separation is the first thing to get right in any unified log.
How a Solana swap becomes one sentence
Ebti reads Solana wallet balance changes, not just instruction names. If one asset leaves the wallet and a different asset arrives, that's a swap. The tool ignores a tiny SOL fee so it doesn't show up as a separate event, and it skips failed transactions entirely. Here's the sequence the pipeline follows for each Solana transaction:
- Read the balance changes for the watched account.
- Confirm the transaction succeeded. Failed transactions are dropped.
- Strip the network fee in SOL so it isn't mistaken for a trade leg.
- If exactly one asset went out and one came in, classify the event as a
swap. - Write the record with
amountandquoteAmountas base-unit strings, plus the transaction signature inproof.ref.
This is where most homegrown scripts break. They treat every SOL movement as a transfer, so a fee becomes a fake sale. Ebti's rule is narrower and easier to audit, which is the point. The trade-off is that a transaction with three or more asset legs won't be cleanly classified as one swap, so you'll need to review those yourself.
Robinhood Chain and file imports
Robinhood Chain events use chain id 4663 and cover mints, swaps, and explicit list, cancel, or fill actions. File imports use a CSV, and the venue column names the source, such as a brokerage export. Amounts in files are whole base units by default. If you want the sentence spoken in human units, add an asset_decimals column.
The three sources don't handle units, identity, or proofs the same way. The table below shows the practical differences you'll hit when you build a log.
| Source | Amount format | Action detection | Proof reference |
|---|---|---|---|
| Solana | Base units (lamports for SOL, 6 decimals for USDC) | Balance changes; one asset in, one out is a swap | Transaction signature |
| Robinhood Chain | Base units on chain id 4663 | Mints, swaps, explicit list/cancel/fill | Chain transaction |
| Brokerage CSV | Whole units unless asset_decimals is set | Taken from the file's action column | file:line |
The file row is the one people underestimate. A brokerage line like "acct-1 bought 10 AAPL for 25000 USD" has no transaction hash to check against. Its proof is a pointer to the file and line number. That's a weaker proof than a chain signature, and you should treat it that way. If the file itself was edited before import, Ebti can't detect that, because the hash only seals what Ebti read.
The record underneath the sentence
Every line in the log maps to one JSON object. The fields map directly to the sentence: account is who, action is what they did (swapped, bought, sold, minted, moved, or listed), asset and amount are what they received or moved, quoteAsset and quoteAmount are what they gave, time is when in UTC, and proof points to the source.
The id field is a 64-character hex hash of the record. The sample record's id and proof.contentHash are the same value, which is how the verifier knows the row hasn't changed. Hash rules are documented in docs/event-format.md in the repository.
Two details are worth knowing before you rely on this:
- Field order and value formatting affect the hash. Changing a trailing space in a CSV-derived field can produce a different record, so normalize your inputs before building.
- The
timefield is stored in UTC with millisecond precision. If your source uses local time without an offset, convert it before import.
What verify proves and what it doesn't
ebti verify recomputes the hash of each record and compares it to the stored id. If someone changes an amount, an account, or a timestamp after the log was built, the hash no longer matches. That's the tamper check.
Here's the counter-intuitive part. A matching hash doesn't prove the trade happened. It proves the row still matches what Ebti read from the source when it sealed the record. If the source was wrong when Ebti read it, the hash faithfully seals wrong data. Verification tells you the log is intact, not that the chain or the brokerage was right.
verify also doesn't re-run the chain. It doesn't ask Solana or Robinhood Chain whether a signature is still valid. If you need that, check the signature against an explorer separately. Keep that distinction in your head when you show the log to an auditor or a colleague, because "verified" means one specific thing here.
Running the demo and your own files
You need Node 22 or newer. Clone the repository, then run:
npm install
npm test
npm run demo
The demo builds one log from three sample sources and checks it. The output ends with All 8 records match their proof. That line is the one to trust only after you've seen the records it describes.
For your own data, you'll use the build, show, report, and verify commands in sequence:
ebti buildwith--solana,--robinhood, and--fileinputs to write a JSONL log.ebti showto read the log as sentences, optionally filtered with--asset USDC.ebti reportfor a short count by source and by action, plus the sentences.ebti verifyto confirm no row was edited since the build.ebti querywhen you need the raw records, filtered with flags such as--action swap.
Start with show and verify. Most people only need those two. Use query when you're debugging a specific amount or checking whether a decimal was applied.
Here's where the workflow gets fiddly. If show output looks right but a total looks wrong, the problem is almost always a missing asset_decimals value in a CSV, not the tool. Check the raw record with query before you blame the parser.
Frequently Asked Questions
What is a unified market event log?
A unified market event log is a single record format that holds trades and transfers from different sources, such as blockchains and brokerage files. Each entry records who acted, what action they took, which asset and amount were involved, when it happened, and a proof that points back to the source. Ebti is one open-source tool that builds this kind of log.
How to check a trade log was not edited?
Run ebti verify --events your-file.jsonl. It recomputes each record's hash and compares it to the stored id. A mismatch means the row changed after it was sealed. A pass only confirms the row matches what was read at build time, not that the original source was correct.
Why does a Solana swap show amounts in lamports?
Solana stores token and SOL amounts as integers in base units. SOL uses 9 decimals, so 1 SOL equals 1,000,000,000 lamports. USDC uses 6 decimals. Ebti keeps the integer in the raw record and converts to human units only in the printed sentence, which avoids rounding errors in totals.
Can Ebti confirm a Solana or Robinhood Chain transaction is real?
Not by itself. Ebti records the transaction reference and hashes the row, but verify does not query the chain again. To confirm a signature is valid and finalized, look it up in a block explorer for that network. Use Ebti's verify step to check the log hasn't changed since it was built.
Start with one real export this week
A unified market event log is only as trustworthy as its inputs and its units, so the first step is to clean up one source before you merge anything. Ebti makes the sealing and checking part cheap, but the decimals and the proof references still need your attention. The most useful takeaway is simple: keep base units in the record, render human units only in the output, and treat verify as a tamper check, not a truth check.
Clone the repository, run npm run demo, then point ebti build at one real Solana wallet export and note whether verify passes. Pass this to anyone reconciling Solana and brokerage files who's tired of guessing which decimal is wrong.