Solana error codes › OKX DEX Aggregation Router V2
75 error codes defined by OKX DEX Aggregation Router V2 (program ID 6m2CDdhRgxpH4WjvdzxAYbGxwdGUz5MziiL5jek2kBma). In logs they appear as custom program error: 0x… after Program 6m2CDdhRgxpH4WjvdzxAYbGxwdGUz5MziiL5jek2kBma failed.
Custom errors start at 6000 (0x1770). If a code is below 6000 and not listed here, see the Anchor framework errors.
| Hex | Code | Error |
|---|---|---|
| 0x1770 | 6000 | TooManyHops Too many hops |
| 0x1771 | 6001 | MinReturnNotReached Min return not reached The name points to a slippage or minimum-output check: the price moved past the limit set in the transaction. |
| 0x1772 | 6002 | AmountInMustBeGreaterThanZero amount_in must be greater than 0 |
| 0x1773 | 6003 | MinReturnMustBeGreaterThanZero min_return must be greater than 0 The name points to a slippage or minimum-output check: the price moved past the limit set in the transaction. |
| 0x1774 | 6004 | InvalidExpectAmountOut invalid expect amount out |
| 0x1775 | 6005 | AmountsAndRoutesMustHaveTheSameLength amounts and routes must have the same length |
| 0x1776 | 6006 | TotalAmountsMustBeEqualToAmountIn total_amounts must be equal to amount_in |
| 0x1777 | 6007 | DexesAndWeightsMustHaveTheSameLength dexes and weights must have the same length |
| 0x1778 | 6008 | WeightsMustSumTo100 weights must sum to 100 |
| 0x1779 | 6009 | InvalidSourceTokenAccount Invalid source token account |
| 0x177a | 6010 | InvalidDestinationTokenAccount Invalid destination token account |
| 0x177b | 6011 | InvalidTokenAccount Invalid token account |
| 0x177c | 6012 | InvalidCommissionRate Invalid commission rate |
| 0x177d | 6013 | InvalidTrimRate Invalid trim rate |
| 0x177e | 6014 | InvalidCommissionTokenAccount Invalid commission token account |
| 0x177f | 6015 | InvalidCommissionTemporaryTokenAccount Invalid commission temporary token account |
| 0x1780 | 6016 | InvalidAccountsLength Invalid accounts length |
| 0x1781 | 6017 | InvalidHopAccounts Invalid hop accounts |
| 0x1782 | 6018 | InvalidHopFromAccount Invalid hop from account |
| 0x1783 | 6019 | SwapAuthorityIsNotSigner Swap authority is not signer The name points to a permission check: the wrong signer or owner account was passed. |
| 0x1784 | 6020 | InvalidAuthorityPda Invalid authority pda The name points to a permission check: the wrong signer or owner account was passed. |
| 0x1785 | 6021 | InvalidSwapAuthority Invalid swap authority |
| 0x1786 | 6022 | InvalidProgramId Invalid program id |
| 0x1787 | 6023 | InvalidPool Invalid pool |
| 0x1788 | 6024 | InvalidTokenMint Invalid token mint |
| 0x1789 | 6025 | CalculationError Calculation error |
| 0x178a | 6026 | InvalidSanctumLstStateListData Invalid sanctum lst state list data |
| 0x178b | 6027 | InvalidSanctumLstStateListIndex Invalid sanctum lst state list index |
| 0x178c | 6028 | InvalidSanctumSwapAccounts Invalid sanctum swap accounts |
| 0x178d | 6029 | InvalidSwapAuthorityAccounts Invalid swap authority account |
| 0x178e | 6030 | InvalidBridgeSeed Bridge Seed Error |
| 0x178f | 6031 | InvalidBundleInput Invalid accounts and instruction length |
| 0x1790 | 6032 | MissingSaAccount SA is required |
| 0x1791 | 6033 | InvalidPlatformFeeRate Invalid platform fee rate |
| 0x1792 | 6034 | AmountOutMustBeGreaterThanZero Amount out must be greater than 0 |
| 0x1793 | 6035 | InvalidDampingTerm Invalid DampingTerm |
| 0x1794 | 6036 | InvalidMint Invalid mint |
| 0x1795 | 6037 | InvalidPlatformFeeAmount Invalid platform fee amount |
| 0x1796 | 6038 | InvalidFeeTokenAccount Invalid fee token account |
| 0x1797 | 6039 | InvalidSaAuthority Invalid sa authority |
| 0x1798 | 6040 | CommissionAccountIsNone Commission account is none |
| 0x1799 | 6041 | PlatformFeeAccountIsNone Platform fee account is none |
| 0x179a | 6042 | TrimAccountIsNone Trim account is none |
| 0x179b | 6043 | InvalidFeeAccount Invalid fee account |
| 0x179c | 6044 | InvalidSourceTokenSa Invalid source token sa |
| 0x179d | 6045 | SaAuthorityIsNone Sa authority is none |
| 0x179e | 6046 | SourceTokenSaIsNone Source token sa is none |
| 0x179f | 6047 | SourceTokenProgramIsNone Source token program is none |
| 0x17a0 | 6048 | DestinationTokenSaIsNone Destination token sa is none |
| 0x17a1 | 6049 | DestinationTokenProgramIsNone Destination token program is none |
| 0x17a2 | 6050 | ResultMustBeGreaterThanZero Calculation result must be greater than zero |
| 0x17a3 | 6051 | InvalidAccountData Invalid account data |
| 0x17a4 | 6052 | InvalidRfqParameters Invalid RFQ parameters |
| 0x17a5 | 6053 | TobAuthorityPdaRequired TOB mode requires authority PDA |
| 0x17a6 | 6054 | TobWsolSaRequired TOB mode with WSOL fees requires wsol_sa account |
| 0x17a7 | 6055 | InvalidWsolSa Invalid WSOL SA account |
| 0x17a8 | 6056 | InvalidTrimAccount Invalid trim account |
| 0x17a9 | 6057 | InvalidCommissionAccount Invalid commission account |
| 0x17aa | 6058 | InvalidPlatformFeeAccount Invalid platform fee account |
| 0x17ab | 6059 | InvalidActualAmountIn Invalid actual amount in |
| 0x17ac | 6060 | UnexpectedSaTokenAccount Unexpected SA token account in CPI |
| 0x17ad | 6061 | InvalidSourceTokenSaMint Invalid source token sa mint |
| 0x17ae | 6062 | InvalidDestinationTokenSaMint Invalid destination token sa mint |
| 0x17af | 6063 | AdapterAbort Adapter abort |
| 0x17b0 | 6064 | InsufficientFunds Insufficient funds The name points to a balance check: an account holds less than the instruction needs. |
| 0x17b1 | 6065 | InvalidDiffLamports Invalid diff lamports |
| 0x17b2 | 6066 | InvalidTokenProgram Invalid token program |
| 0x17b3 | 6067 | InvalidSigner Invalid signer The name points to a permission check: the wrong signer or owner account was passed. |
| 0x17b4 | 6068 | InvalidAssociatedTokenProgram Invalid associated token program |
| 0x17b5 | 6069 | SolReceiverMustBeSystemAccount SOL receiver must be a system account |
| 0x17b6 | 6070 | InsufficientBalance Insufficient balance for transfer The name points to a balance check: an account holds less than the instruction needs. |
| 0x17b7 | 6071 | SolReceiverRequiresAccCloseFlag SOL receiver requires acc_close_flag to be true |
| 0x17b8 | 6072 | DestinationMustBeWsolForSolReceiver Destination must be wSOL when sol_receiver is specified |
| 0x17b9 | 6073 | InvalidGoonfiParameters Invalid Goonfi parameters |
| 0x17ba | 6074 | InvalidTrimAmount Invalid trim amount |
Free, no sign-up, nothing to connect. Works offline from a bundled list; we do not look anything up on-chain.
Swapping a token you do not know? A free Rugsight check shows mint and freeze authority, Token-2022 extensions, holder concentration and liquidity before you trade.
Source: solana-idls@1.2.1. Data: program error lists from published IDLs (solana-idls 1.2.1, MIT) and the System, SPL Token, Token-2022 and Associated Token Account source code, snapshot 2026-11-16. Programs can be upgraded and add or change errors; the failing program's current IDL is the final word.