Solana AI Agent Payment Processing SDK - Non-custodial SOL/USDC payments for AI agents
Project description
coinrailz-solana
Solana AI Agent Payment Processing SDK by Coin Railz LLC - Non-custodial SOL/USDC payments for AI agents.
Installation
pip install coinrailz-solana
Get Your API Key
Instant API Key - Pay $1 (USDC/USDT on Base or Solana) and get your API key immediately. No account required!
- Visit https://coinrailz.com/api-keys
- Send $1 to the platform wallet
- Verify your transaction and receive your key + $5 starter credits
Key Persistence: Your API key is permanent and works across ALL Coin Railz services. One key = unlimited access (credits are deducted per use). You can top up credits anytime with the same key.
Quick Start
from coinrailz_solana import CoinRailzSolana, SendPaymentParams
client = CoinRailzSolana(api_key="your-api-key")
# Send USDC on Solana
result = client.send(SendPaymentParams(
to="9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
amount=10.00,
currency="USDC"
))
print(result)
# SendPaymentResult(
# success=True,
# transaction_id='sol_abc123',
# signature='5abc...',
# amount=Amount(gross=10.00, fee=0.16, net=9.84),
# explorer_url='https://solscan.io/tx/5abc...'
# )
Features
- SOL Transfers - Native SOL payments
- USDC Transfers - SPL Token USDC on Solana
- Wallet Creation - Generate new Solana wallets
- Balance Queries - Check SOL balances
- Transaction Status - Track payment confirmations
API Reference
Constructor
client = CoinRailzSolana(
api_key="your-api-key", # Required: Your API key
base_url="https://...", # Optional: API base URL
timeout=30.0 # Optional: Request timeout in seconds
)
Methods
send(params)
Send SOL or USDC payment.
from coinrailz_solana import SendPaymentParams
result = client.send(SendPaymentParams(
to="SolanaAddress...",
amount=10.00,
currency="USDC", # "SOL" or "USDC"
memo="Payment for service"
))
get_balance(address)
Get SOL balance for an address.
balance = client.get_balance("SolanaAddress...")
# BalanceResult(balance=Balance(sol=1.5, lamports=1500000000))
create_wallet()
Create a new Solana wallet.
wallet = client.create_wallet()
# WalletResult(wallet=WalletInfo(address='...'), private_key='...')
get_transaction(signature)
Get transaction status.
tx = client.get_transaction("5abc...")
# TransactionResult(signature='5abc...', status='confirmed')
status()
Check service status.
status = client.status()
# StatusResult(status='operational', network='mainnet-beta')
Context Manager
with CoinRailzSolana(api_key="your-api-key") as client:
result = client.send(SendPaymentParams(to="...", amount=10.00))
Pricing
| Tier | Volume | Processing Fee |
|---|---|---|
| Starter | $0-$10K/mo | 1.5% + $0.01 |
| Growth | $10K-$100K/mo | 1.25% + $0.01 |
| Platform | $100K+/mo | 0.9% + $0.01 |
Minimum transaction: $0.05
Use Cases
- AI Agent Payments - Autonomous agent-to-agent payments on Solana
- ElizaOS Integration - Payment processing for ElizaOS agents
- AgentKit - Coinbase AgentKit payment plugin
- MCP Tools - Model Context Protocol payment tools
Support
- Documentation: https://coinrailz.com/docs/sdk/solana
- Discord: https://discord.gg/coinrailz
- Email: support@coinrailz.com
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coinrailz_solana-1.0.1.tar.gz.
File metadata
- Download URL: coinrailz_solana-1.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a090df0c9c57e4e1946bb3b02c795af0ab042435a89eae02ed9d9311f9ab51
|
|
| MD5 |
09124e35ca5dc3ec58dc1fc42d7b8542
|
|
| BLAKE2b-256 |
424f273c7e3c0f887a97442fdd0bda58c96375d3a3f56bae1c1a25217916e8a9
|
File details
Details for the file coinrailz_solana-1.0.1-py3-none-any.whl.
File metadata
- Download URL: coinrailz_solana-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7ff5e0f2cf07360b79b9af2c4b3e9f224b62788a45a882a3f86e0808c4a271
|
|
| MD5 |
4a83481db89e9b37ed7ad2bdb729c265
|
|
| BLAKE2b-256 |
216ae5dc19a696b717524be95e9fb84e343fe266f2f110e25d502c22efabab1f
|