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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ape_infura-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ecc25fedf4c5947e16e239b19c89734e1bb46328bf5847e503de51944f99474 |
|
MD5 | 67e29607394344d6ba72a4a74d357d26 |
|
BLAKE2b-256 | 19e359ae9a14afb409a51abad4fd4f0ab2bca2216ae4a4a4c292d634bae9a0f9 |