Enumeration.SdkErrorTypes
Enum representing all possible SDK error types.
This enumeration defines the various error conditions that can occur within the Keyban SDK. Each error type is associated with a specific scenario, allowing developers to handle errors gracefully and provide meaningful feedback to users.
Enumeration Members
Enumeration Member | Value | Description |
---|---|---|
AddressInvalid | "AddressInvalid" | The provided address is invalid. Description: The Ethereum address does not conform to the expected format. Possible Cause: Typographical errors in the address or incorrect formatting. |
AmountInvalid | "AmountInvalid" | The provided amount is invalid. Description: The amount specified for a transaction is not acceptable. Possible Cause: Amount is zero, negative, or exceeds allowed limits. |
AmountIrrelevant | "AmountIrrelevant" | The amount provided is irrelevant and should not be provided. Description: An operation does not require an amount, but one was supplied. Possible Cause: Misuse of the API by providing unnecessary parameters. |
AmountRequired | "AmountRequired" | The amount is required for this operation. Description: An operation that requires a monetary amount did not receive one. Possible Cause: Missing amount parameter in the function call. |
EstimateGasExecution | "EstimateGasExecution" | Gas estimation failed during transaction processing. Description: The SDK was unable to estimate the gas required for a transaction. Possible Cause: Network issues, incorrect transaction parameters, or contract errors. |
InsufficientFunds | "InsufficientFunds" | The account has insufficient funds to perform the operation. Description: The user's account balance is too low to cover the transaction amount and associated fees. Possible Cause: Attempting a transaction with an amount exceeding the available balance. |
InvalidNftStandard | "InvalidNftStandard" | The NFT standard provided is invalid. Description: An unsupported NFT standard was specified. Possible Cause: Using an NFT standard other than ERC721 or ERC1155. |
NftNotFound | "NftNotFound" | The specified NFT was not found. Description: The NFT identified by the provided contract address and token ID does not exist. Possible Cause: Incorrect token ID, wrong contract address, or the NFT has been burned. |
RecipientAddressEqualsSender | "RecipientAddressEqualsSender" | The recipient address is the same as the sender address. Description: A transaction was attempted where the sender and recipient are identical. Possible Cause: User error in specifying addresses or attempting redundant transactions. |
UnknownIframeRpcError | "UnknownIframeRpcError" | An unknown error during iframe RPC call. |