Pinax
    Iceberg REST · Delta Lake · Parquet
    Resources & endpoints
    Datasets uses the production gateway. This stack's keys are refused there; use a project from app.pinax.network. The examples always show the production endpoint.

    Connect with S3

    The default way to read Datasets: point any S3 client or query engine at the endpoint and sign with your Pinax Project ID and API key. Run these examples locally or on your server.

    Connection details

    Endpoint
    https://datasets.s3.pinax.network
    Region
    us-east-1
    Bucket
    eth, base, bsc
    Addressing
    Path style

    Loading your project…

    Examples use placeholders. Find your Project ID and API key on the API keys page.

    Access key ID = Project ID
    <your Pinax Project ID>
    Secret access key = API key
    <your Pinax API key>

    Putting the API key in the Access key ID field reverses the mapping and returns 403 unauthenticated.

    DuckDB example

    DuckDB 1.5 or newer
    1-- DuckDB 1.5 or newer. Your Pinax Project ID is the S3 access key,
    2-- your Pinax API key the secret.
    3INSTALL delta; LOAD delta;
    4CREATE SECRET pinax (
    5 TYPE s3,
    6 KEY_ID '<your Pinax Project ID>',
    7 SECRET '<your Pinax API key>',
    8 REGION 'us-east-1',
    9 ENDPOINT 'datasets.s3.pinax.network',
    10 URL_STYLE 'path'
    11);
    12
    13-- To keep the key out of SQL and history, export AWS_ACCESS_KEY_ID (Project ID)
    14-- and AWS_SECRET_ACCESS_KEY (API key) before starting DuckDB, then:
    15-- INSTALL aws; LOAD aws;
    16-- CREATE SECRET pinax (TYPE s3, PROVIDER credential_chain, CHAIN 'env',
    17-- REGION 'us-east-1', ENDPOINT 'datasets.s3.pinax.network', URL_STYLE 'path');
    18
    19-- Read through the Delta log, filtered by date.
    20SELECT block_num, block_id, timestamp, num_transactions
    21FROM delta_scan('s3://eth/blocks')
    22WHERE date = DATE '2020-01-01'
    23ORDER BY block_num
    24LIMIT 10;

    Python and Node.js read credentials from environment variables. Run the commented export line in your shell before starting the example. Keep credentials out of shared files and shell history.

    To let a query engine discover tables through the catalog, see Connect with Iceberg. To hand one file to a browser or to someone without your API key, see Presigned URLs.