Solana error codes › Tensor

Tensor error codes

39 error codes defined by Tensor (program ID TSWAPaqyCSx2KABk68Shruf4rp7CxcNi8hAsbdwmHbN). In logs they appear as custom program error: 0x… after Program TSWAPaqyCSx2KABk68Shruf4rp7CxcNi8hAsbdwmHbN failed.

Custom errors start at 6000 (0x1770). If a code is below 6000 and not listed here, see the Anchor framework errors.

HexCodeError
0x17706000InvalidProof
invalid merkle proof, token not whitelisted
0x17716001WhitelistNotVerified
whitelist not verified -- currently only verified pools supported
0x17726002BadWhitelist
unexpected whitelist address
0x17736003WrongPoolType
operation not permitted on this pool type
0x17746004BadFeeAccount
fee account doesn't match that stored on pool
0x17756005BadEscrowAccount
escrow account doesn't match that stored on pool
0x17766006MissingFees
when setting up a Trade pool, must provide fee bps & fee vault
0x17776007FeesTooHigh
fees entered above allowed threshold
0x17786008DeltaTooLarge
delta too large
0x17796009ArithmeticError
arithmetic error
0x177a6010WrongPool
this nft doesnt belong to this pool
0x177b6011RoyaltiesEnabled
royalties are enabled always
0x177c6012PriceMismatch
specified price not within current price
0x177d6013ExistingNfts
cannot close pool with nfts in escrow -- withdraw all before closing
0x177e6014WrongMint
wrong mint passed for provided accounts
0x177f6015InsufficientTswapAccBalance
insufficient Tswap account balance
0x17806016BadOwner
bad owner
0x17816017FeesNotAllowed
fees not allowed for non-trade pools
0x17826018BadMetadata
metadata account does not match
0x17836019CreatorMismatch
provided creator address does not match metadata creator
0x17846020WrongPoolVersion
wrong pool version provided
0x17856021PoolsAreTheSame
new pool should not match old pool
0x17866022WrongAuthority
wrong nft authority account provided
0x17876023FrozenAmountMismatch
amount frozen doesnt match current price
0x17886024BadMintProof
mint proof account does not match
0x17896025BadCosigner
bad cosigner passed - either wrong key or no signature
The name points to a permission check: the wrong signer or owner account was passed.
0x178a6026PoolFrozen
pool is frozen and cannot execute normal operations
0x178b6027BadMargin
bad margin account passed
0x178c6028PoolNotMarginated
expected a marginated pool to be passed in
0x178d6029PoolMarginated
expected a non-marginated pool to be passed in
0x178e6030WrongOrderType
wrong order type
0x178f6031WrongFrozenStatus
wrong frozen status
0x17906032MarginInUse
margin account has pools open and is in use
0x17916033MaxTakerSellCountExceeded
max taker sell count exceeded, pool cannot buy anymore NFTs
0x17926034MaxTakerSellCountTooSmall
max taker sell count is too small
0x17936035BadRuleSet
rule set for programmable nft does not match
0x17946036PoolFeesCompounded
this pool compounds fees and they cannot be withdrawn separately
0x17956037BadRoyaltiesPct
royalties percentage passed in must be between 0 and 100
0x17966038StartingPriceTooSmall
starting price can't be smaller than 1 lamport

Decode an error

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.