Skip to content

feat(infura): add Infura WASM FDW for blockchain data#547

Merged
burmecia merged 7 commits intosupabase:mainfrom
JohnCari:feat/infura-fdw
Jan 7, 2026
Merged

feat(infura): add Infura WASM FDW for blockchain data#547
burmecia merged 7 commits intosupabase:mainfrom
JohnCari:feat/infura-fdw

Conversation

@JohnCari
Copy link
Copy Markdown
Contributor

@JohnCari JohnCari commented Dec 29, 2025

Summary

  • Add new WebAssembly Foreign Data Wrapper for querying blockchain data via Infura JSON-RPC API
  • Support for Ethereum, Polygon, Arbitrum, Optimism, Base, Linea and other EVM-compatible networks
  • 5 resource types: blocks, transactions, balances, logs, chain_info
  • Query pushdown for block numbers, transaction hashes, and addresses
  • Vault integration for secure API key storage (api_key_id option)
  • Rate limit handling with exponential backoff retry (up to 5 retries)
  • Import foreign schema support for auto-generating tables

Test plan

  • WASM component builds successfully (cargo component build -p infura_fdw --release)
  • Mock server endpoints added for all 7 JSON-RPC methods
  • Smoke test added to wrappers/src/fdw/wasm_fdw/tests.rs
  • Manual testing with real Infura API key

Closes #394

JohnCari and others added 7 commits December 28, 2025 23:57
Add a new WebAssembly Foreign Data Wrapper for querying blockchain data
via Infura JSON-RPC API. Supports Ethereum, Polygon, and other EVM-compatible
networks.

Features:
- 5 resource types: blocks, transactions, balances, logs, chain_info
- Query pushdown for block numbers, transaction hashes, and addresses
- Vault integration for secure API key storage (api_key_id option)
- Rate limit handling with exponential backoff retry
- Import foreign schema support for auto-generating tables

Closes supabase#394
Copy link
Copy Markdown
Member

@burmecia burmecia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR! I made some bug fixing and improvements on the your code and docs, it is looking good.

@burmecia burmecia merged commit 80cc605 into supabase:main Jan 7, 2026
6 checks passed
@burmecia burmecia added wasm enhancement New feature or request labels Jan 8, 2026
@JohnCari JohnCari deleted the feat/infura-fdw branch January 13, 2026 14:39
DenisBessa pushed a commit to DenisBessa/wrappers that referenced this pull request Mar 12, 2026
* feat(infura): add Infura WASM FDW for blockchain data

Add a new WebAssembly Foreign Data Wrapper for querying blockchain data
via Infura JSON-RPC API. Supports Ethereum, Polygon, and other EVM-compatible
networks.

Features:
- 5 resource types: blocks, transactions, balances, logs, chain_info
- Query pushdown for block numbers, transaction hashes, and addresses
- Vault integration for secure API key storage (api_key_id option)
- Rate limit handling with exponential backoff retry
- Import foreign schema support for auto-generating tables

Closes supabase#394

* feat(infura): add documentation and source files

* feat(infura): add FDW implementation and tests

* test(infura): add mock server endpoints and smoke test

* test(infura): add Infura FDW smoke test

* fix issues and improve docs

* add missing columns in test case

---------

Co-authored-by: Bo Lu <lv.patrick@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: infura wasm wrapper

2 participants