Skip to main content

SOLTEX_ROUTER Agent SDK

Fund one treasury. Run 10,000 autonomous agents.

Solana's first zero-gas, MEV-protected intent router for AI Agents.

Stop manually funding hundreds of bot wallets with SOL dust. soltex router is a meta-routing SDK that completely abstracts gas fees and Jito tips, allowing your AI agents to execute swaps with 0.0000 SOL balance.

⚡ Why SOLTEX Router?

❌ The Old Way (Painful)

Managing 50 AI trading bots meant funding 50 separate Keypairs with SOL, calculating dynamic priority fees, guessing Jito tip percentiles, and handling RPC rate limits.

✅ The SOLTEX Way (Intent-Centric)

Deposit SOL into a single Treasury Dashboard. Your agents just sign the intent locally. The SOLTEX Backend sponsors the transaction, auto-injects the 75th-percentile priority fee, routes through Jito Block Engine, and broadcasts it.

🔥 Core Features

  • ⛽ Absolute Gas Abstraction: Bots can operate with completely empty wallets.
  • 🛡️ Default MEV Protection: 100% of transactions are routed via Jito Block Engine. Zero sandwich attacks.
  • 🔀 Jupiter API Native: Built-in wrapper for optimal swap routes and instant execution.
  • 🔒 Trustless Architecture: Your agent's private key never leaves the local environment. We only receive a locally partial_signed payload.

📦 Installation

pip install soltex-router

🚀 1-Minute Quick Start

Look how incredibly simple it is to swap tokens without worrying about gas fees.

⚠️ IMPORTANT NOTE: Your agent's wallet needs 0 SOL - SOLTEX automatically sponsors all gas fees and ATA rent. Your wallet only needs to hold the tokens you want to swap (e.g., 10 USDC). How Auto-Funding Works: If your bot wallet has less than 0.005 SOL, SOLTEX automatically deposits 0.005 SOL to cover transaction costs. This funding remains in your wallet until depleted. SOLTEX will not send additional SOL until your balance drops below the 0.005 SOL threshold again.

⚠️ First Swap Behavior: If your wallet starts with 0 SOL, the first swap may be dropped (not executed) while SOLTEX deposits the 0.005 SOL. Subsequent swaps will succeed normally. This is a one-time initialization cost.

import logging
from solders.keypair import Keypair
from soltex_router import AgentRouter

logging.basicConfig(level=logging.INFO)

# 1. Load your AI agent's wallet
# (Ensure this wallet holds the USDC you want to swap. 0 SOL is perfectly fine!)
# but receiving a BRAND NEW token type may require ~0.002 SOL for ATA creation rent!)
PRIVATE_KEY_BASE58 = "your_agent_private_key"
bot_wallet = Keypair.from_base58_string(PRIVATE_KEY_BASE58)
print(f"Agent Wallet: {bot_wallet.pubkey()}")

# 2. Connect to SOLTEX
router = AgentRouter(
    api_key="SOLTEX_your_actual_api_key",  # Issued via SOLTEX Dashboard
    payer=bot_wallet,
    rpc_url="https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY",
    server_url="https://api.soltex-router.com"
)

def main():
    # 3. Execute Swap via Jupiter (Zero SOL required for gas or tips!)
    print("\nSwapping 10 USDC → SOL...")
    result = router.swap(
        input_mint="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # USDC
        output_mint="So11111111111111111111111111111111111111112", # SOL
        amount=10_000_000, # 10 USDC
        slippage_bps=100   # 1% slippage
    )

    if result["success"]:
        print(f"\n✅ Gasless Swap Confirmed!")
        print(f"TX Hash: {result['tx_hash']}")
        print(f"Explorer: https://solscan.io/tx/{result['tx_hash']}")
    else:
        print(f"\n❌ Swap failed: {result['error']}")

if __name__ == "__main__":
    main()

🔒 Security & ToS By using this SDK, you agree to the SOLTEX Terms of Service. Open Source: This client SDK is 100% transparent. Inspect the code to verify that keys remain strictly on your machine.

Disclaimer: This software is provided "AS IS". Use at your own risk. Not financial advice. Not a custodial service.

contact: soltex_router@protonmail.com

Metadata

Release files for soltex-router 0.1.5

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

Source distribution (sdist)

Source distribution for soltex-router 0.1.5
File Size Uploaded
soltex_router-0.1.5.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for soltex-router 0.1.5
File Interpreter ABI Platform
soltex_router-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / soltex_router-0.1.5.tar.gz

Download URL soltex_router-0.1.5.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
383d6c7c7a45601bf289592fbd7897d1d0669e15408918258cd5c4568c478efe
BLAKE2b-256 checksum
How to use checksums
3c533f35782f34c8e6ca102f21da7781699d81889db71c3031feff13cfebb1e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / soltex_router-0.1.5-py3-none-any.whl

Download URL soltex_router-0.1.5-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82e7d629cdb906ae2ded5ba2a108d5a660ea19a68a45a4164a0fe24db2314914
BLAKE2b-256 checksum
How to use checksums
1e1fe9239c11f66518553a831076a3bf9e5148b73730d679153563ef691ba268
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

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