Skip to content

Deposit SOL

  1. Send SOL to the System R treasury wallet on Solana mainnet.
  2. Submit the transaction signature to POST /v1/billing/deposit-sol.
  3. System R fetches the live SOL/USD price from CoinGecko.
  4. Your balance is credited at the current market price.

Treasury wallet: 9Nc6u9ft3uAr6DSaqHijFjQS53hZPDRL2LoVYvH4vK5H

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.

Terminal window
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"
}'
{
"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..."
}

The endpoint verifies:

  1. The transaction exists and is finalized on Solana mainnet.
  2. The transfer is a native SOL transfer (not SPL token).
  3. The destination is the treasury wallet.
  4. The transaction has not been previously processed.

SOL/USD price is fetched from the CoinGecko free API:

GET https://api.coingecko.com/api/v3/simple/price?ids=solana&vs_currencies=usd

If CoinGecko is temporarily unreachable, a fallback price is used. The fallback is conservative to protect both the agent and the platform.