Skip to main content

ape-infura: Infura Provider plugins for Ethereum-based networks

Project description

Quick Start

Use the Infura provider plugin to interact with blockchains via APIs. This plugin supports the following ecosystems:

  • Ethereum
  • Polygon
  • Arbitrum
  • Optimism

Dependencies

  • python3 version 3.8 or greater, python3-dev

Installation

via pip

You can install the latest release via pip:

pip install ape-infura

via setuptools

You can clone the repository and use setuptools for the most up-to-date version:

git clone https://github.com/ApeWorX/ape-infura.git
cd ape-infura
python3 setup.py 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

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

ape console --network ethereum:goerli: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:
    ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ape-infura-0.5.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

ape_infura-0.5.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file ape-infura-0.5.2.tar.gz.

File metadata

  • Download URL: ape-infura-0.5.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for ape-infura-0.5.2.tar.gz
Algorithm Hash digest
SHA256 0c8d243eb9dd2b6a678c54bb4638a0536ebd3aa2f68c16358b6efbd8edffc001
MD5 4a32bf670dfcbe4e1fb71888a9059be3
BLAKE2b-256 908889fa07eb329324354b30a029c502cf3c3bef486b0beece7e3021526d6ddd

See more details on using hashes here.

File details

Details for the file ape_infura-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: ape_infura-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for ape_infura-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1520fae75b7e83adbfa85e1aca19808c71dd4f3d3e8fa97633cc7922776a928
MD5 037dd733f17e48de9e5a15d9de02a6d1
BLAKE2b-256 242656e83aa6e0c12687956f9fa29d9a5bd81e7228ccbbcda5c202f18d91b94a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page