History and parsing
History and parsing in the Carbium Library: 14 working Solana examples, among them Incremental signature sync and Log truncation detector.
- Incremental signature sync HS0163
Keep a per-address signature checkpoint and read only new history with getSignaturesForAddress, using until and before, on Carbium RPC.
- Log truncation detector HS0162
Flag transactions whose program logs hit the runtime byte cap, using getTransaction on a program's newest signatures on Carbium RPC.
- Program event log query HS0161
List a program's newest signatures, then read each transaction's log lines in one read-only TypeScript file on Carbium RPC.
- Failed transaction history filter HS0160
List an address's recent failed Solana transactions from getSignaturesForAddress, with the error and program logs, on Carbium RPC in one TypeScript file.
- Skipped-slot-safe block scan HS0157
Scan a range of Solana slots with getBlock on Carbium RPC, tell skipped slots from real failures, and keep the run going to the end.
- Null blockTime handling HS0156
Handle a null blockTime on Solana transactions by listing recent signatures on Carbium RPC and filling each gap from its slot in one read-only file.
- SOL-transfer-only history HS0155
List an account's SOL transfers only: read its recent signatures, keep the System Program transfers, on Carbium RPC in one TypeScript file.
- Typed jsonParsed transactions HS0065
Read getTransaction with jsonParsed and no any: narrow each instruction once, then a checked decoder per program and type returns a typed record or null.
- Logs grouped by instruction HS0064
Attach each logMessages line to the instruction that wrote it with a small call stack parser, in read-only TypeScript on Carbium RPC.
- Program return data reader HS0063
Read a program's return data from a landed Solana transaction with getTransaction, and compare meta.returnData with every Program return log line.
- Slot to timestamp conversion HS0062
Convert a Solana slot to a timestamp with getBlockTime, handle slots that have no block, and estimate a time from measured slot time.
- Inner instruction tree HS0035
Rebuild the nested inner instruction view Solana Explorer shows from getTransaction with jsonParsed, in one read-only TypeScript file on Carbium RPC.
- Signature history pagination HS0034
Page through an address's signature history with a before cursor, then read chosen transactions in full, in one read-only TypeScript file.
- Memo instruction reader HS0033
Find the Memo instruction in a Solana transaction from getTransaction with jsonParsed, top level or inner, in one TypeScript file on Carbium RPC.