Skip to main content

Parameters

object
Configuration object containing:
string
Commitment level (processed, confirmed, finalized)
boolean
Whether to exclude non-circulating accounts from the total supply

Response

object
Object containing:
number
Total supply in lamports
number
Circulating supply in lamports
number
Non-circulating supply in lamports
array
Array of non-circulating account addresses

Code Examples

Basic Request

Using web3.js

Notes

  1. Returns the current supply of SOL in lamports
  2. The supply is broken down into total, circulating, and non-circulating amounts
  3. The response is immediate as it reads from the current state
  4. The supply can change with network activity and inflation
  5. Non-circulating accounts are typically controlled by the Solana Foundation

Best Practices

  1. Use appropriate commitment level based on your needs
  2. Cache results when appropriate to reduce RPC load
  3. Monitor for changes in the supply
  4. Consider using websocket subscription for real-time updates
  5. Handle network errors and retry when appropriate

Common Errors

Use Cases

  1. Supply Analysis
  2. Supply Monitoring
  3. Supply Planning