AutoHedge Wrapped SOL and USDC Mint Addresses: A Complete Guide
The Wrapped SOL mint address is So11111111111111111111111111111111111111112 and the USDC mint address is EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v in the AutoHedge codebase.
AutoHedge, an open-source Solana trading framework maintained by The-Swarm-Corporation, relies on these standard SPL token mint addresses to execute swaps and manage liquidity positions. Understanding these constants is essential for developers integrating with AutoHedge's Jupiter aggregator tools or building custom trading strategies on Solana.
Standard SPL Token Mint Addresses in AutoHedge
AutoHedge references the canonical Solana Program Library (SPL) mint addresses for Wrapped SOL and USDC throughout its tooling infrastructure. These addresses represent the unique identifiers for token accounts on the Solana blockchain.
Wrapped SOL (WSOL) Mint Address
The Wrapped SOL token—an SPL-compatible representation of native SOL—uses the mint address:
So11111111111111111111111111111111111111112
This address is the protocol-standard wrapper for native SOL, allowing it to be treated as an SPL token in decentralized exchange interactions. In autohedge/tools/jupiter_search.py, AutoHedge automatically maps the "SOL" symbol to this mint address when querying Jupiter for pricing data.
USDC Mint Address
The USD Coin (USDC) stablecoin on Solana is identified by the mint address:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
According to the source code comments in autohedge/tools/ultra_tools.py, this mint address is explicitly documented as the reference for USDC operations within the AutoHedge ecosystem.
Implementation in AutoHedge Source Code
The AutoHedge repository implements these mint addresses across several utility modules, ensuring consistent token identification during trade execution.
Token Lookup in ultra_tools.py
The autohedge/tools/ultra_tools.py file contains helper utilities that resolve token symbols to their respective mint addresses. The USDC mint address is hardcoded in comments within this module, serving as the authoritative reference for stablecoin operations.
Jupiter Integration in jupiter_search.py and jupiter_price.py
In autohedge/tools/jupiter_search.py, the system implements token lookup logic that substitutes the WSOL mint address whenever native SOL is requested. Similarly, autohedge/tools/jupiter_price.py utilizes both mint constants when constructing price quote requests to the Jupiter aggregator API.
Practical Code Examples
Developers working with AutoHedge can reference these mint addresses directly when building trading payloads or initializing tool helpers.
Querying Jupiter Prices with Mint Addresses
This example demonstrates how to use the standard mint addresses when fetching swap quotes through AutoHedge's Jupiter integration:
from autohedge.tools.jupiter_price import get_price
# Define the standard token mint addresses
WSOL_MINT = "So11111111111111111111111111111111111111112"
USDC_MINT = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
# Get a price quote for swapping WSOL to USDC
quote = get_price(
input_mint=WSOL_MINT,
output_mint=USDC_MINT,
amount=1_000_000 # amount in lamports (0.001 SOL)
)
print(f"USDC received: {quote['outputAmount']} (≈ ${quote['outputAmountUsd']:.2f})")
Using UltraTools for Token Resolution
The UltraTools class provides a convenient interface for retrieving mint addresses programmatically:
from autohedge.tools.ultra_tools import UltraTools
tools = UltraTools()
usdc_address = tools.get_token_mint("USDC") # Returns EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
wsol_address = tools.get_token_mint("SOL") # Returns So11111111111111111111111111111111111111112
print(f"USDC mint address: {usdc_address}")
print(f"WSOL mint address: {wsol_address}")
Summary
- Wrapped SOL (WSOL) uses the mint address
So11111111111111111111111111111111111111112throughout the AutoHedge codebase. - USDC uses the mint address
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, explicitly referenced inautohedge/tools/ultra_tools.py. - The
autohedge/tools/jupiter_search.pymodule automatically resolves "SOL" queries to the WSOL mint address when interacting with Jupiter. - Both addresses follow the Solana protocol standards and are hardcoded as constants in the price querying utilities.
Frequently Asked Questions
What is the Wrapped SOL mint address used in AutoHedge?
AutoHedge uses So11111111111111111111111111111111111111112 as the mint address for Wrapped SOL. This is the standard SPL token representation of native SOL used across the Solana ecosystem, implemented in autohedge/tools/jupiter_search.py to handle SOL-denominated trades.
Where does AutoHedge reference the USDC mint address?
The USDC mint address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v is documented in the source code comments of autohedge/tools/ultra_tools.py. The UltraTools class provides the get_token_mint() method, which returns this address when queried for "USDC".
How does AutoHedge handle native SOL vs Wrapped SOL?
AutoHedge treats native SOL as Wrapped SOL internally by mapping the "SOL" symbol to the WSOL mint address So11111111111111111111111111111111111111112 in autohedge/tools/jupiter_search.py. This allows the system to interact with Jupiter's SPL-token-based liquidity pools while accepting native SOL as input.
Can I use different mint addresses with AutoHedge tools?
Yes, while AutoHedge provides constants for WSOL and USDC, the get_price() function in autohedge/tools/jupiter_price.py accepts any valid SPL token mint address as the input_mint or output_mint parameter. However, for standard trading operations, you should use the canonical addresses to ensure proper decimal handling and liquidity routing.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →