Deposit SOL
How it works
Section titled “How it works”- Send SOL to the System R treasury wallet on Solana mainnet.
- Submit the transaction signature to
POST /v1/billing/deposit-sol. - System R fetches the live SOL/USD price from CoinGecko.
- Your balance is credited at the current market price.
Treasury wallet: 9Nc6u9ft3uAr6DSaqHijFjQS53hZPDRL2LoVYvH4vK5H
Conversion
Section titled “Conversion”SOL is converted to USD at the live CoinGecko spot price at the time the deposit is processed.
Example: If SOL is trading at $140 and you deposit 1 SOL, you receive $140.00 in compute credits.
Request
Section titled “Request”curl -X POST https://agents.systemr.ai/v1/billing/deposit-sol \ -H "X-API-Key: sr_agent_..." \ -H "Content-Type: application/json" \ -d '{ "tx_signature": "5xYz...your_solana_tx_signature" }'Response
Section titled “Response”{ "agent_id": "agt_a1b2c3d4", "currency": "SOL", "amount": "1.000000000", "sol_price_usd": "140.25", "compute_credits": "140.25", "balance_after": "182.75", "tx_id": "tx_def456", "tx_signature": "5xYz..."}Verification
Section titled “Verification”The endpoint verifies:
- The transaction exists and is finalized on Solana mainnet.
- The transfer is a native SOL transfer (not SPL token).
- The destination is the treasury wallet.
- The transaction has not been previously processed.
Price source
Section titled “Price source”SOL/USD price is fetched from the CoinGecko free API:
GET https://api.coingecko.com/api/v3/simple/price?ids=solana&vs_currencies=usdIf CoinGecko is temporarily unreachable, a fallback price is used. The fallback is conservative to protect both the agent and the platform.