pg_chainutils
Blockchain utility types and functions for PostgreSQL, built with pgrx.
pg_chainutils · Blockchain utility types and functions for PostgreSQL, built with pgrx.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100841 | pg_chainutils | pg_chainutils | 0.2.4 | TYPE | MIT | Rust |
PostgreSQL · 17
Usage
Sources:
pg_chainutils is a pgrx extension for parsing and transforming blockchain values inside PostgreSQL. It supplies Ethereum-style H160, H256, and U256 types and helpers for event topics and payloads, including ERC-20, ERC-721, Uniswap, Sushiswap, and related formats.
Version 0.2.4 is built with pgrx and the reviewed manifest defaults to PostgreSQL 17. Input helpers expect exact ABI encodings; malformed lengths, prefixes, topic ordering, signedness, token decimals, and chain-specific conventions must be validated before ingestion. Treat decoded values as untrusted data and compare critical financial results with an independent decoder.