Skip to main content

inlayr

A modular, chain‑agnostic SDK for building and integrating crypto quoting and trading flows on DEXs.

Status: Experimental (v0.2.1). APIs may change before 1.0.

PyPI Python License Typing


inlayr aims to provide a clean, typed interface for quoting, routing and submitting swaps across multiple chains.

  • ✅ Pluggable backends — add providers without touching the core
  • ✅ No commission — avoid wallet-level commissions
  • ✅ Integration — build your own DEX trading bots

If you just want the docs: jump to Quickstart or Installation.


Disclaimer

This project is for informational and development purposes only and does not constitute financial advice.
The software is provided “as is” without warranties, and the authors/contributors assume no responsibility or liability for any losses, damages, or outcomes resulting from its use.
Use at your own risk and comply with applicable laws.

Installation

The base install:

pip install inlayr

Supported Python: 3.9+

Quickstart

The exact API surface may evolve before 1.0.
The snippets below show the intended usage patterns while staying dependency‑light.

Verify install

import inlayr
print (inlayr.__version__)

High‑level sketch (pseudocode)

# Illustrative only. Actual class and method names may differ in your version.

# 1) Import provider interface
from inlayr.provider import get_provider

# 2) Fetch your private key
solana_pk = open(r"solana_pk").read()

# 3) Configure Chain, RPC, and Aggregator
provider = get_provider(
	chain = "solana",
	chain_params = {"wallet_pk": solana_pk},
	rpc = "solana",
	rpc_params = {"chain_id": None},
	aggregator = "jupiter",
	aggregator_params = {}
)

# 4) Perform operations (e.g. request a quote)
quote = provider.get_quote(
	source_token = "4eDf52YYzL6i6gbZ6FXqrLUPXbtP61f1gPSFM66M4XHe",
	source_amount = 1_000_000_000,
	destination_token = "So11111111111111111111111111111111111111112",
	slippage = 1_000
)

Please refer to examples for more functional use cases.

Configuration

Common runtime knobs (RPC endpoints, routing preferences, etc) are typically supplied by you at construction time.

Currently supported configurations:

  • RPCs — ankr, 1rpc, solana
  • Chains — evm, solana
  • Aggregators — 0x, 1inch, jupiter, raydium

Security

Private keys are provided only at runtime. They are never logged, transmitted, or stored by us.

Type hints

  • The package includes py.typed so type checkers (mypy, pyright) understand the public API.
  • We aim to keep public call signatures stable across minor versions; experimental pieces will be marked in docstrings where applicable.

Contributing

PRs and issues are welcome! A few guidelines:

  • Discuss larger changes in an issue first.
  • Ensure python -m build && twine check dist/* succeeds.
  • Add or update tests (pytest).

To run tests:

pip install -e '.[test]'
pytest -q

Versioning

We use Semantic Versioning. Until 1.0.0, minor bumps may include small breaking changes as we refine the API.

License

Licensed under the Apache 2.0 license. See LICENSE for details.

Metadata

Release files for inlayr 0.2.1

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

Source distribution (sdist)

Source distribution for inlayr 0.2.1
File Size Uploaded
inlayr-0.2.1.tar.gz 24.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inlayr 0.2.1
File Interpreter ABI Platform
inlayr-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.1 kB

Release files / inlayr-0.2.1.tar.gz

Download URL inlayr-0.2.1.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7a745ee7bbd746016293fbc513d6e570bef887a584ea8d4b85a4ded829f49a46
BLAKE2b-256 checksum
How to use checksums
94350521f6506d93deebf00c61035ef437f571c31e5463767a16002649b00af5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / inlayr-0.2.1-py3-none-any.whl

Download URL inlayr-0.2.1-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c46f07381e893573b78820138a826cd8147ab929600e3831c6a89a465c26bd4
BLAKE2b-256 checksum
How to use checksums
239add2a6e23828ad6b7aa83c26b3b2d50b6917045aa2868d3cd30c807c70b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.21

2 release files

0.1.1

2 release files

0.1.0

2 release files

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