Skip to main content

Quick Start

Use the Metamask Developer (F.K.A. Infura) provider plugin to interact with blockchains via APIs. This plugin supports the following ecosystems:

  • Arbitrum
  • Avalanche
  • Base
  • Blast
  • BSC
  • Celo
  • Ethereum
  • Linea
  • Mantle
  • Optimism
  • Palm
  • Polygon
  • Scroll
  • Starknet
  • Unichain
  • zkSync

Dependencies

Installation

via pip

You can install the latest release via pip:

pip install ape-infura

via source

You can clone the repository and install for development:

git clone https://github.com/ApeWorX/ape-infura.git
cd ape-infura
uv sync --group dev
uv run prek install

Quick Usage

First, make sure you have one of the following environment variables set (it doesn't matter which one):

  • WEB3_INFURA_PROJECT_ID
  • WEB3_INFURA_API_KEY

Either in your current terminal session or in your root RC file (e.g. .bashrc), add the following:

export WEB3_INFURA_PROJECT_ID=MY_API_TOKEN

# Multple tokens
export WEB3_INFURA_PROJECT_ID=MY_API_TOKEN1, MY_API_TOKEN2

Additionally, if your app requires an API secret as well, use either of the following environment variables:

  • WEB3_INFURA_PROJECT_ID
  • WEB3_INFURA_API_KEY

And each request will use the secret as a form of authentication.

To use the Infura provider plugin in most commands, set it via the --network option:

ape console --network ethereum:sepolia:infura

To connect to Infura from a Python script, use the networks top-level manager:

from ape import networks

with networks.parse_network_choice("ethereum:mainnet:infura") as provider:
    # Also, access the websocket URI:
    print(provider.ws_uri)

Metadata

Release files for ape-infura 0.8.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ape-infura 0.8.5
File Size Uploaded Provenance Actions
ape_infura-0.8.5.tar.gz 19.1 kB With provenance Details for ape_infura-0.8.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ape-infura 0.8.5
File Interpreter ABI Platform Actions
ape_infura-0.8.5-py3-none-any.whl Python 3 none any Details for ape_infura-0.8.5-py3-none-any.whl

Total release size: 30.3 kB

Release files / ape_infura-0.8.5.tar.gz

Download URL ape_infura-0.8.5.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e35fd7ee9d08c88a6265892c2284275196d392eda56aae6b9c6504a2ced25f6a
BLAKE2b-256 checksum
How to use checksums
fddc5369cefed35bd09ea17516e23e5eb4553aefe1f2fb6174ce5cfced8c1fa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / ape_infura-0.8.5-py3-none-any.whl

Download URL ape_infura-0.8.5-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08a52e661b1ff85cffb0998481714efaa0f45a69a46139d01da384f26a01a548
BLAKE2b-256 checksum
How to use checksums
af2489859128f6f398f4042548f301fb1f72f3bd071dd16ae8d31bdea819747e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for ape-infura 0.8.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ape_infura-0.8.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.5 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page