SDK Errors
Account errors:Eip7702AccountMustHaveEoaError
: when using EIP-7702, you need to provide an EOA account by passingeoa
param.SigningNotSupportedForAccountError
: the account you provided does not support message signing.WalletClientNoConnectedAccountError
: theWalletClient
instance you provided is missing a default account. Ensure the wallet is connected and the client has an account.Eip7702NotSupportedForAccountError
: this account type does not support EIP-7702. Try using a different account implementation or submit a feature request.AccountConfigurationNotSupportedError
: your account setup is not currently supported. Try using a different account configuration or submit a feature request.FactoryArgsNotAvailableError
: factory data is not available for this type of account. Most likely an issue with the SDK itself. Please submit a bug report.SmartSessionsNotEnabledError
: smart session validator is not available. Most likely an issue with the SDK itself. Please submit a bug report.
SourceChainsNotAvailableForUserOpFlowError
: when using a UserOp flow (e.g., for account recovery), you need to provide a source chain.UserOperationRequiredForSmartSessionsError
: when using smart sessions, you need to use the UserOp flow.SessionChainRequiredError
: when using smart sessions, each session needs to define a chain where it is activated.IntentFailedError
: the intent failed (reverted onchain). A common reason is that a swap failed due to price action.SimulationNotSupportedForUserOpFlowError
:simulateTransaction
can only simulate intents.OrderPathRequiredForIntentsError
: when sending an intent, you need to first get the path. When usingsubmitTransaction
, make sure to callprepareTransaction
first.
InsufficientBalanceError
: the account doesn’t have enough funds. See Insufficient Balance.UnsupportedChainIdError
: this chain is not supported. See Unsupported chain id.UnsupportedChainError
: the target or the source chain is not supported. See Unsupported chain id.UnsupportedTokenError
: the token you’re requesting is not supported. Make sure you’re only using supported tokens when settingtokenRequests
. See Unsupported token addresses.TokenNotSupportedError
: the token you’re requesting is not supported. See Unsupported token addresses.AuthenticationRequiredError
: make sure you’re providing an API key when using mainnets by passingrhinestoneApiKey
param. See Authentication is required.InvalidApiKeyError
: the API key you’re using has expired or is invalid. See Invalid API key.InvalidIntentSignatureError
: Invalid bundle signature.OnlyOneTargetTokenAmountCanBeUnsetError
: when specifyingtokenRequests
, you need to provide the exact token amounts for all except one token.NoPathFoundError
: we couldn’t find a path for the intent you’ve provided. Try using a different set of token requests on the target chain.IntentNotFoundError
: can’t find the intent in the system. Please try again or use different input parameters.
Orchestrator Errors
Insufficient Balance
In most cases, getting this error means the account balance is not enough to cover the tokens required on the target chain, together with the gas costs.
Sometimes, you have enough balance, but the cost to claim it is too high (e.g., on Ethereum Mainnet).
You can also get the error if the contract is not deployed on any supported chain.
Make sure your account is deployed and funded.
Also, make sure you have enough funds for your transaction, taking gas costs into account. You can use the spendable amount utility to get an estimate of how much you can spend.
Unsupported chain id
This error could mean that your targetChain
is not supported.
It could also mean that you’re using testnet chains on a production environment, or mainnet chains on a dev environment.
Make sure the chain you’re using matches the environment.
Also, make sure that the chain you’re using is supported.