py-builder-relayer-client
Python client library for interacting with the Polymarket Relayer infrastructure
What it is and what it does
py-builder-relayer-client is a thin Python wrapper around the Polymarket Relayer API, designed to simplify submitting transactions to Polymarket's infrastructure from Python applications. It handles Ethereum account management and signing via eth-account and eth-abi, manages API authentication with Builder credentials, and abstracts HTTP communication through requests.
The library is intended for developers building applications on Polymarket who need to relay transactions through Polymarket's infrastructure rather than submitting directly to the blockchain. It requires Python 3.9 or later and depends on a working Ethereum signing setup, making it most useful in contexts where you already have private keys and Builder API credentials configured.
Use it for:
- Submit prediction market orders to Polymarket via the relayer without managing raw HTTP requests.
- Automate transaction signing and relay submission in trading bots or market-making applications.
- Integrate Polymarket transaction submission into larger Python applications with minimal boilerplate.
- Test relayer integration during development using the staging relayer endpoint.
- Manage multiple transaction submissions with consistent authentication and error handling.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for submitting transactions and interacting with the Polymarket Relayer infrastructure, handling authentication and API communication with Ethereum-based signing.
Yes, if you are building on Polymarket and need to relay transactions through their infrastructure. The library has low install friction, active maintenance, MIT licensing, and no known vulnerabilities. It is narrow in scope—designed specifically for Polymarket Relayer interaction—so install only if that is your use case. The early version number (0.0.2) and small repository suggests it may still be evolving.
Install
py-builder-relayer-client on PyPI
pip
pip install py-builder-relayer-clientuv
uv add py-builder-relayer-clientpoetry
poetry add py-builder-relayer-clientInstalling py-builder-relayer-client
Before you install
Low friction install with seven runtime dependencies including eth-account, eth-utils, and requests. Active maintenance with a recent commit on 2026-05-29 and no archived status.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most deployment contexts.
Quickstart
pip install py-builder-relayer-client
from py_builder_relayer_client import RelayerClient
client = RelayerClient(
relayer_url="https://relayer-v2-staging.polymarket.dev/",
chain_id=80002,
private_key="your_private_key",
api_key="your_api_key",
api_secret="your_api_secret",
passphrase="your_passphrase"
)
Requires Python 3.9 or later; credentials must be provided via environment variables or constructor parameters (RELAYER_URL, CHAIN_ID, PK, BUILDER_API_KEY, BUILDER_SECRET, BUILDER_PASS_PHRASE).
Verify before relying
- Specific API methods and transaction types supported by the relayer client beyond basic submission.
- Error handling and retry behavior for failed relay submissions.
- Rate limiting or quota constraints imposed by the Polymarket Relayer service.
- Whether the library supports multiple blockchain networks or only Polygon (chain 80002).
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — eth-account, eth-abi, eth-utils, hexbytes, python-dotenv, requests, py-builder-signing-sdk |
| Maintenance | actively maintained — 77 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 140,061/month — #11,279 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: py_builder_relayer_client-0.0.2-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
polymarket-clientOfficial Python SDK for Polymarket that…
permissive · top 15,000 on PyPI
py-builder-signing-sdkGenerates cryptographically signed HTTP headers…
permissive · top 15,000 on PyPI
py-clob-client-v2Python client library for placing and managing…
permissive · top 15,000 on PyPI
web3web3.py is a Python library for interacting…
permissive · top 5,000 on PyPI
py-order-utilsGenerates and cryptographically signs orders…
permissive · top 5,000 on PyPI
py-clob-clientPython client library for trading on…
permissive · top 15,000 on PyPI
etherscan-pythonProvides a complete Python client for…
permissive · top 15,000 on PyPI
xrpl-pyA pure Python library for building applications…
permissive · top 15,000 on PyPI
cdp-sdkPython client library for the Coinbase…
permissive · top 15,000 on PyPI
signalwireSignalWire is a Python client library for…
permissive · top 15,000 on PyPI