Mainly

Overview

Conventions, base URLs, and the full endpoint catalogue.

Base URL

https://api.sarg.am/v1/solana        (mainnet)
https://api.sarg.am/v1/solana-devnet (devnet)
https://api.sarg.am/v1/ethereum      (mainnet)
https://api.sarg.am/v1/ethereum-sepolia (Sepolia)

The chain segment is part of the path by design. Solana and Ethereum share the same REST conventions, while chain-specific endpoint support depends on what the underlying network RPC can answer without an indexer.

Conventions

  • Auth: Authorization: Bearer <key> header on every request.
  • Bodies: JSON in, JSON out. Content-Type: application/json on POST.
  • Casing: all fields are camelCase.
  • Timestamps: ISO 8601 UTC strings ("2026-08-04T09:41:00Z").
  • Amounts: raw + human-readable, always. See Amounts & units.
  • Lists: cursor/limit in, items/nextCursor out. See Pagination.
  • Reads: optional confirmation query parameter, default confirmed. See Confirmation levels.
  • Failures: uniform error body. See Errors.

Endpoints

The Solana API currently implements the full catalogue below. Ethereum support is in MVP status; see Ethereum support for the route matrix and the indexed-data gaps.

Wallets

MethodPathDescription
GET/wallets/{address}/balanceSOL balance
GET/wallets/{address}/tokensAll tokens with metadata and prices
GET/wallets/{address}/nftsAll NFTs, including compressed
GET/wallets/{address}/transactionsParsed transaction history

Transactions

MethodPathDescription
GET/transactions/{signature}One parsed transaction
POST/transactions/sendSubmit a signed transaction
GET/transactions/{signature}/statusConfirmation status
POST/transactions/simulateDry-run a transaction

Tokens

MethodPathDescription
GET/tokens/{mint}Token metadata, supply, and price
GET/tokens/{mint}/holdersLargest holders

NFTs

MethodPathDescription
GET/nfts/{id}One NFT with full details
GET/collections/{address}Collection info and floor price
GET/collections/{address}/nftsNFTs in a collection

Programs (smart contracts)

MethodPathDescription
GET/programs/{programId}Program info and upgrade authority
GET/programs/{programId}/accountsQuery a program's accounts with filters
POST/programs/{programId}/viewRead-only program call with return value

Accounts (advanced)

MethodPathDescription
GET/accounts/{address}Raw account info, decoded
POST/accounts/batchUp to 100 accounts at once

Network

MethodPathDescription
GET/network/statusHealth, slot, epoch
GET/network/feesPriority fee estimates
GET/network/blockhashFresh blockhash for manual transaction building

Reading the reference pages

Each endpoint page documents parameters, a real request, a real response, and — in an Under the hood section — which raw Solana RPC calls the endpoint replaces. If you're migrating from hand-written JSON-RPC, that section is your mapping table.

On this page