Quick Start
Ecosystem Plugin for Optimism support in Ape.
Dependencies
- Python 3 version 3.10 or greater.
Installation
via ape
You can install this plugin using ape:
ape plugins install optimism
or via config file:
# ape-config.yaml
plugins:
- name: optimism
via pip
You can install the latest release via pip:
pip install ape-optimism
via source
You can clone the repository and install for development:
git clone https://github.com/ApeWorX/ape-optimism.git
cd ape-optimism
uv sync --group dev
uv run prek install
Quick Usage
Installing this plugin adds support for the Optimism ecosystem:
ape console --network optimism:sepolia
OP Stack
Use the optimism base-class in any custom networks using the OP stack.
For example, to configure a custom network for Fraxtal network, add the following to your pyproject.toml
[[tool.ape.networks.custom]]
name = "mainnet"
ecosystem = "fraxtal"
# Tell Ape to use optimism as the base plugin, instead of ethereum.
base_ecosystem_plugin = "optimism"
chain_id = 252
# (optional): Configure an RPC. Else, Ape will select a random one automatically.
[tool.ape.node.fraxtal.mainnet]
uri = "https://rpc.frax.com"
Or equivalent ape-config.yaml:
networks:
custom:
- name: mainnet
ecosystem: fraxtal
base_ecosystem_plugin: optimism
node:
fraxtal:
mainnet:
uri: https://rpc.frax.com
There are two main benefits of using Optimism as the base-class instead of Ethereum for networks using the OP stack:
- Closer defaults: The block time default is
2for Optimism networks, which may be a better default value than Ethereum's higher block time parameters. - Existence of System Transactions: The Optimism base-class is aware of system transactions, which are transactions invoked by the sequencer.
Development
Comments, questions, criticisms and pull requests are welcomed.
Metadata
Release files for ape-optimism 0.8.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ape_optimism-0.8.4.tar.gz | 16.7 kB | With provenance | Details for ape_optimism-0.8.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ape_optimism-0.8.4-py3-none-any.whl | Python 3 | none | any | Details for ape_optimism-0.8.4-py3-none-any.whl |
Total release size: 25.3 kB
Release files / ape_optimism-0.8.4.tar.gz
| Download URL | ape_optimism-0.8.4.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4af98e8354e99b93e694720c34d3c57361fe55d0c6c9ed5761bcc952308d638e
|
|
BLAKE2b-256 checksum How to use checksums |
186253e341fadb42daa6345c10701529fe8e96b0bf3a2cbc24b832f5ca4fa045
|
| 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 logRelease files / ape_optimism-0.8.4-py3-none-any.whl
| Download URL | ape_optimism-0.8.4-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
831bdfe5ab8badd9e5367eae663a7b2760e9bf9c6dddb0d85d666c9f2b3cdf3b
|
|
BLAKE2b-256 checksum How to use checksums |
585f399b42d9958dd22fe119e5aedb352f816f0914afe2a54d5e3316a3efe2d4
|
| 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 logSecurity for ape-optimism 0.8.4
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.
Attestation for ape_optimism-0.8.4.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 logA 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.