Get a price quote for buying or selling tokens. Automatically uses the appropriate protocol:
Supports flexible quoting:
Fee Structure:
Returns input/output amounts, protocol used, and graduation status.
JWT token or API key
Blockchain identifier. Supported chains: solana, solana-devnet, arbitrum, base, base-sepolia, avalanche, op-bnb, bnb, bnb-testnet, ethereum, monad, unichain, unichain-testnet, abstract, polygon, zksync, zksync-testnet
solana, solana-devnet, arbitrum, base, base-sepolia, avalanche, op-bnb, bnb, bnb-testnet, ethereum, monad, unichain, unichain-testnet, abstract, polygon, zksync, zksync-testnet "base-sepolia"
Token UUID (optional for new pool quotes - use poolTypeId instead)
"550e8400-e29b-41d4-a716-446655440000"
Amount to quote (interpretation depends on direction and inputToken)
x > 0100
Trade direction
buy, sell "buy"
Whether amount represents tokens or USDC
token, usdc "usdc"
Pool type for new pool quotes. Use this instead of tokenId for tokens that don't exist yet. Defaults to "meme".
meme, startup-preseed, test "meme"