Skip to content
SwapKit is a powerful suite of tools for building blockchain applications.

SwapKitError

Defined in: packages/helpers/src/modules/swapKitError.ts:361

  • Error

new SwapKitError(errorOrErrorKey, sourceErrorOrInfo?): SwapKitError

Defined in: packages/helpers/src/modules/swapKitError.ts:364

"core_estimated_max_spendable_chain_not_supported" | "core_extend_error" | "core_inbound_data_not_found" | "core_approve_asset_address_or_from_not_found" | "core_plugin_not_found" | "core_plugin_swap_not_found" | "core_approve_asset_target_invalid" | "core_explorer_unsupported_chain" | "core_verify_message_not_supported" | "core_chain_halted" | "core_wallet_connection_not_found" | "core_wallet_ctrl_not_installed" | "core_wallet_evmwallet_not_installed" | "core_wallet_walletconnect_not_installed" | "core_wallet_keystore_not_installed" | "core_wallet_ledger_not_installed" | "core_wallet_trezor_not_installed" | "core_wallet_keplr_not_installed" | "core_wallet_okx_not_installed" | "core_wallet_keepkey_not_installed" | "core_wallet_talisman_not_installed" | "core_wallet_not_keypair_wallet" | "core_wallet_sign_message_not_supported" | "core_wallet_connection_failed" | "core_swap_invalid_params" | "core_swap_route_not_complete" | "core_swap_asset_not_recognized" | "core_swap_contract_not_found" | "core_swap_route_transaction_not_found" | "core_swap_contract_not_supported" | "core_swap_transaction_error" | "core_swap_quote_mode_not_supported" | "core_transaction_deposit_error" | "core_transaction_create_liquidity_base_error" | "core_transaction_create_liquidity_asset_error" | "core_transaction_create_liquidity_invalid_params" | "core_transaction_add_liquidity_invalid_params" | "core_transaction_add_liquidity_base_address" | "core_transaction_add_liquidity_base_error" | "core_transaction_add_liquidity_asset_error" | "core_transaction_withdraw_error" | "core_transaction_deposit_to_pool_error" | "core_transaction_deposit_insufficient_funds_error" | "core_transaction_deposit_gas_error" | "core_transaction_invalid_sender_address" | "core_transaction_deposit_server_error" | "core_transaction_user_rejected" | "core_transaction_failed" | "core_transaction_invalid_recipient_address" | "wallet_connection_rejected_by_user" | "wallet_missing_api_key" | "wallet_chain_not_supported" | "wallet_missing_params" | "wallet_provider_not_found" | "wallet_failed_to_add_or_switch_network" | "wallet_ledger_connection_error" | "wallet_ledger_connection_claimed" | "wallet_ledger_get_address_error" | "wallet_ledger_device_not_found" | "wallet_ledger_device_locked" | "wallet_ledger_transport_error" | "wallet_ledger_public_key_error" | "wallet_ledger_derivation_path_error" | "wallet_ledger_signing_error" | "wallet_ledger_app_not_open" | "wallet_ledger_invalid_response" | "wallet_ledger_method_not_supported" | "wallet_ledger_invalid_params" | "wallet_ledger_invalid_signature" | "wallet_ledger_no_provider" | "wallet_ledger_pubkey_not_found" | "wallet_ledger_transport_not_defined" | "wallet_ledger_webusb_not_supported" | "wallet_ledger_chain_not_supported" | "wallet_ledger_invalid_asset" | "wallet_ledger_invalid_account" | "wallet_ledger_address_not_found" | "wallet_ledger_failed_to_get_address" | "wallet_phantom_not_found" | "wallet_ctrl_not_found" | "wallet_ctrl_send_transaction_no_address" | "wallet_ctrl_contract_address_not_provided" | "wallet_ctrl_asset_not_defined" | "wallet_walletconnect_project_id_not_specified" | "wallet_walletconnect_connection_not_established" | "wallet_walletconnect_namespace_not_supported" | "wallet_walletconnect_chain_not_supported" | "wallet_walletconnect_invalid_method" | "wallet_walletconnect_method_not_supported" | "wallet_trezor_failed_to_sign_transaction" | "wallet_trezor_derivation_path_not_supported" | "wallet_trezor_failed_to_get_address" | "wallet_trezor_transport_error" | "wallet_trezor_method_not_supported" | "wallet_talisman_not_enabled" | "wallet_talisman_not_found" | "wallet_polkadot_not_found" | "wallet_radix_not_found" | "wallet_radix_transaction_failed" | "wallet_radix_invalid_manifest" | "wallet_radix_method_not_supported" | "wallet_radix_no_account" | "wallet_keepkey_not_found" | "wallet_keepkey_asset_not_defined" | "wallet_keepkey_contract_address_not_provided" | "wallet_keepkey_send_transaction_no_address" | "wallet_keepkey_derivation_path_error" | "wallet_keepkey_signing_error" | "wallet_keepkey_transport_error" | "wallet_keepkey_unsupported_chain" | "wallet_keepkey_invalid_response" | "wallet_keepkey_chain_not_supported" | "wallet_keepkey_signer_not_found" | "wallet_keepkey_no_accounts" | "wallet_keepkey_method_not_supported" | "wallet_keepkey_invalid_params" | "wallet_keepkey_config_not_found" | "wallet_keepkey_no_provider" | "wallet_keepkey_account_not_found" | "wallet_bitkeep_not_found" | "wallet_bitkeep_failed_to_switch_network" | "wallet_bitkeep_no_accounts" | "wallet_exodus_sign_transaction_error" | "wallet_exodus_not_found" | "wallet_exodus_no_address" | "wallet_exodus_request_canceled" | "wallet_exodus_signature_canceled" | "wallet_exodus_failed_to_switch_network" | "wallet_exodus_chain_not_supported" | "wallet_exodus_instance_missing" | "wallet_onekey_not_found" | "wallet_onekey_sign_transaction_error" | "wallet_okx_not_found" | "wallet_okx_chain_not_supported" | "wallet_okx_failed_to_switch_network" | "wallet_okx_no_accounts" | "wallet_keplr_not_found" | "wallet_keplr_chain_not_supported" | "wallet_keplr_signer_not_found" | "wallet_keplr_no_accounts" | "wallet_cosmostation_not_found" | "wallet_cosmostation_chain_not_supported" | "wallet_cosmostation_evm_provider_not_found" | "wallet_cosmostation_keplr_provider_not_found" | "wallet_cosmostation_no_accounts" | "wallet_cosmostation_no_evm_accounts" | "wallet_cosmostation_no_evm_address" | "wallet_cosmostation_signer_not_found" | "wallet_xdefi_not_found" | "wallet_xdefi_chain_not_supported" | "wallet_coinbase_not_found" | "wallet_coinbase_chain_not_supported" | "wallet_coinbase_method_not_supported" | "wallet_coinbase_no_accounts" | "wallet_evm_extensions_failed_to_switch_network" | "wallet_evm_extensions_no_provider" | "wallet_evm_extensions_not_found" | "wallet_keystore_invalid_password" | "wallet_keystore_unsupported_version" | "chainflip_channel_error" | "chainflip_unknown_asset" | "chainflip_broker_invalid_params" | "chainflip_broker_recipient_error" | "chainflip_broker_register" | "chainflip_broker_tx_error" | "chainflip_broker_withdraw" | "chainflip_broker_fund_only_flip_supported" | "chainflip_broker_fund_invalid_address" | "thorchain_chain_halted" | "thorchain_trading_halted" | "thorchain_swapin_router_required" | "thorchain_swapin_vault_required" | "thorchain_swapin_memo_required" | "thorchain_swapin_token_required" | "thorchain_preferred_asset_payout_required" | "toolbox_cosmos_account_not_found" | "toolbox_cosmos_invalid_fee" | "toolbox_cosmos_invalid_params" | "toolbox_cosmos_no_signer" | "toolbox_cosmos_not_supported" | "toolbox_cosmos_signer_not_defined" | "toolbox_cosmos_validate_address_prefix_not_found" | "toolbox_cosmos_verify_signature_no_pubkey" | "toolbox_evm_error_estimating_gas_limit" | "toolbox_evm_error_sending_transaction" | "toolbox_evm_gas_estimation_error" | "toolbox_evm_invalid_gas_asset_address" | "toolbox_evm_invalid_params" | "toolbox_evm_invalid_transaction" | "toolbox_evm_no_abi_fragment" | "toolbox_evm_no_contract_address" | "toolbox_evm_no_fee_data" | "toolbox_evm_no_from_address" | "toolbox_evm_no_gas_price" | "toolbox_evm_no_signer_address" | "toolbox_evm_no_signer" | "toolbox_evm_no_to_address" | "toolbox_evm_not_supported" | "toolbox_evm_provider_not_eip1193_compatible" | "toolbox_utxo_api_error" | "toolbox_utxo_broadcast_failed" | "toolbox_utxo_insufficient_balance" | "toolbox_utxo_invalid_address" | "toolbox_utxo_invalid_params" | "toolbox_utxo_invalid_transaction" | "toolbox_utxo_no_signer" | "toolbox_utxo_not_supported" | "toolbox_solana_no_signer" | "toolbox_solana_fee_estimation_failed" | "toolbox_substrate_not_supported" | "toolbox_radix_method_not_supported" | "toolbox_ripple_get_balance_error" | "toolbox_ripple_rpc_not_configured" | "toolbox_ripple_signer_not_found" | "toolbox_ripple_asset_not_supported" | "toolbox_ripple_broadcast_error" | "toolbox_tron_no_signer" | "toolbox_tron_invalid_token_identifier" | "toolbox_tron_token_transfer_failed" | "toolbox_not_supported" | "api_v2_invalid_response" | "api_v2_server_error" | "api_v2_invalid_method_key_hash" | "helpers_invalid_number_different_decimals" | "helpers_invalid_number_of_years" | "helpers_invalid_identifier" | "helpers_invalid_asset_url" | "helpers_invalid_asset_identifier" | "helpers_invalid_memo_type" | "helpers_failed_to_switch_network" | "helpers_not_found_provider" | "helpers_chain_not_supported" | "helpers_invalid_params" | "helpers_invalid_response" | "not_implemented" | { errorKey: "core_estimated_max_spendable_chain_not_supported" | "core_extend_error" | "core_inbound_data_not_found" | "core_approve_asset_address_or_from_not_found" | "core_plugin_not_found" | "core_plugin_swap_not_found" | "core_approve_asset_target_invalid" | "core_explorer_unsupported_chain" | "core_verify_message_not_supported" | "core_chain_halted" | "core_wallet_connection_not_found" | "core_wallet_ctrl_not_installed" | "core_wallet_evmwallet_not_installed" | "core_wallet_walletconnect_not_installed" | "core_wallet_keystore_not_installed" | "core_wallet_ledger_not_installed" | "core_wallet_trezor_not_installed" | "core_wallet_keplr_not_installed" | "core_wallet_okx_not_installed" | "core_wallet_keepkey_not_installed" | "core_wallet_talisman_not_installed" | "core_wallet_not_keypair_wallet" | "core_wallet_sign_message_not_supported" | "core_wallet_connection_failed" | "core_swap_invalid_params" | "core_swap_route_not_complete" | "core_swap_asset_not_recognized" | "core_swap_contract_not_found" | "core_swap_route_transaction_not_found" | "core_swap_contract_not_supported" | "core_swap_transaction_error" | "core_swap_quote_mode_not_supported" | "core_transaction_deposit_error" | "core_transaction_create_liquidity_base_error" | "core_transaction_create_liquidity_asset_error" | "core_transaction_create_liquidity_invalid_params" | "core_transaction_add_liquidity_invalid_params" | "core_transaction_add_liquidity_base_address" | "core_transaction_add_liquidity_base_error" | "core_transaction_add_liquidity_asset_error" | "core_transaction_withdraw_error" | "core_transaction_deposit_to_pool_error" | "core_transaction_deposit_insufficient_funds_error" | "core_transaction_deposit_gas_error" | "core_transaction_invalid_sender_address" | "core_transaction_deposit_server_error" | "core_transaction_user_rejected" | "core_transaction_failed" | "core_transaction_invalid_recipient_address" | "wallet_connection_rejected_by_user" | "wallet_missing_api_key" | "wallet_chain_not_supported" | "wallet_missing_params" | "wallet_provider_not_found" | "wallet_failed_to_add_or_switch_network" | "wallet_ledger_connection_error" | "wallet_ledger_connection_claimed" | "wallet_ledger_get_address_error" | "wallet_ledger_device_not_found" | "wallet_ledger_device_locked" | "wallet_ledger_transport_error" | "wallet_ledger_public_key_error" | "wallet_ledger_derivation_path_error" | "wallet_ledger_signing_error" | "wallet_ledger_app_not_open" | "wallet_ledger_invalid_response" | "wallet_ledger_method_not_supported" | "wallet_ledger_invalid_params" | "wallet_ledger_invalid_signature" | "wallet_ledger_no_provider" | "wallet_ledger_pubkey_not_found" | "wallet_ledger_transport_not_defined" | "wallet_ledger_webusb_not_supported" | "wallet_ledger_chain_not_supported" | "wallet_ledger_invalid_asset" | "wallet_ledger_invalid_account" | "wallet_ledger_address_not_found" | "wallet_ledger_failed_to_get_address" | "wallet_phantom_not_found" | "wallet_ctrl_not_found" | "wallet_ctrl_send_transaction_no_address" | "wallet_ctrl_contract_address_not_provided" | "wallet_ctrl_asset_not_defined" | "wallet_walletconnect_project_id_not_specified" | "wallet_walletconnect_connection_not_established" | "wallet_walletconnect_namespace_not_supported" | "wallet_walletconnect_chain_not_supported" | "wallet_walletconnect_invalid_method" | "wallet_walletconnect_method_not_supported" | "wallet_trezor_failed_to_sign_transaction" | "wallet_trezor_derivation_path_not_supported" | "wallet_trezor_failed_to_get_address" | "wallet_trezor_transport_error" | "wallet_trezor_method_not_supported" | "wallet_talisman_not_enabled" | "wallet_talisman_not_found" | "wallet_polkadot_not_found" | "wallet_radix_not_found" | "wallet_radix_transaction_failed" | "wallet_radix_invalid_manifest" | "wallet_radix_method_not_supported" | "wallet_radix_no_account" | "wallet_keepkey_not_found" | "wallet_keepkey_asset_not_defined" | "wallet_keepkey_contract_address_not_provided" | "wallet_keepkey_send_transaction_no_address" | "wallet_keepkey_derivation_path_error" | "wallet_keepkey_signing_error" | "wallet_keepkey_transport_error" | "wallet_keepkey_unsupported_chain" | "wallet_keepkey_invalid_response" | "wallet_keepkey_chain_not_supported" | "wallet_keepkey_signer_not_found" | "wallet_keepkey_no_accounts" | "wallet_keepkey_method_not_supported" | "wallet_keepkey_invalid_params" | "wallet_keepkey_config_not_found" | "wallet_keepkey_no_provider" | "wallet_keepkey_account_not_found" | "wallet_bitkeep_not_found" | "wallet_bitkeep_failed_to_switch_network" | "wallet_bitkeep_no_accounts" | "wallet_exodus_sign_transaction_error" | "wallet_exodus_not_found" | "wallet_exodus_no_address" | "wallet_exodus_request_canceled" | "wallet_exodus_signature_canceled" | "wallet_exodus_failed_to_switch_network" | "wallet_exodus_chain_not_supported" | "wallet_exodus_instance_missing" | "wallet_onekey_not_found" | "wallet_onekey_sign_transaction_error" | "wallet_okx_not_found" | "wallet_okx_chain_not_supported" | "wallet_okx_failed_to_switch_network" | "wallet_okx_no_accounts" | "wallet_keplr_not_found" | "wallet_keplr_chain_not_supported" | "wallet_keplr_signer_not_found" | "wallet_keplr_no_accounts" | "wallet_cosmostation_not_found" | "wallet_cosmostation_chain_not_supported" | "wallet_cosmostation_evm_provider_not_found" | "wallet_cosmostation_keplr_provider_not_found" | "wallet_cosmostation_no_accounts" | "wallet_cosmostation_no_evm_accounts" | "wallet_cosmostation_no_evm_address" | "wallet_cosmostation_signer_not_found" | "wallet_xdefi_not_found" | "wallet_xdefi_chain_not_supported" | "wallet_coinbase_not_found" | "wallet_coinbase_chain_not_supported" | "wallet_coinbase_method_not_supported" | "wallet_coinbase_no_accounts" | "wallet_evm_extensions_failed_to_switch_network" | "wallet_evm_extensions_no_provider" | "wallet_evm_extensions_not_found" | "wallet_keystore_invalid_password" | "wallet_keystore_unsupported_version" | "chainflip_channel_error" | "chainflip_unknown_asset" | "chainflip_broker_invalid_params" | "chainflip_broker_recipient_error" | "chainflip_broker_register" | "chainflip_broker_tx_error" | "chainflip_broker_withdraw" | "chainflip_broker_fund_only_flip_supported" | "chainflip_broker_fund_invalid_address" | "thorchain_chain_halted" | "thorchain_trading_halted" | "thorchain_swapin_router_required" | "thorchain_swapin_vault_required" | "thorchain_swapin_memo_required" | "thorchain_swapin_token_required" | "thorchain_preferred_asset_payout_required" | "toolbox_cosmos_account_not_found" | "toolbox_cosmos_invalid_fee" | "toolbox_cosmos_invalid_params" | "toolbox_cosmos_no_signer" | "toolbox_cosmos_not_supported" | "toolbox_cosmos_signer_not_defined" | "toolbox_cosmos_validate_address_prefix_not_found" | "toolbox_cosmos_verify_signature_no_pubkey" | "toolbox_evm_error_estimating_gas_limit" | "toolbox_evm_error_sending_transaction" | "toolbox_evm_gas_estimation_error" | "toolbox_evm_invalid_gas_asset_address" | "toolbox_evm_invalid_params" | "toolbox_evm_invalid_transaction" | "toolbox_evm_no_abi_fragment" | "toolbox_evm_no_contract_address" | "toolbox_evm_no_fee_data" | "toolbox_evm_no_from_address" | "toolbox_evm_no_gas_price" | "toolbox_evm_no_signer_address" | "toolbox_evm_no_signer" | "toolbox_evm_no_to_address" | "toolbox_evm_not_supported" | "toolbox_evm_provider_not_eip1193_compatible" | "toolbox_utxo_api_error" | "toolbox_utxo_broadcast_failed" | "toolbox_utxo_insufficient_balance" | "toolbox_utxo_invalid_address" | "toolbox_utxo_invalid_params" | "toolbox_utxo_invalid_transaction" | "toolbox_utxo_no_signer" | "toolbox_utxo_not_supported" | "toolbox_solana_no_signer" | "toolbox_solana_fee_estimation_failed" | "toolbox_substrate_not_supported" | "toolbox_radix_method_not_supported" | "toolbox_ripple_get_balance_error" | "toolbox_ripple_rpc_not_configured" | "toolbox_ripple_signer_not_found" | "toolbox_ripple_asset_not_supported" | "toolbox_ripple_broadcast_error" | "toolbox_tron_no_signer" | "toolbox_tron_invalid_token_identifier" | "toolbox_tron_token_transfer_failed" | "toolbox_not_supported" | "api_v2_invalid_response" | "api_v2_server_error" | "api_v2_invalid_method_key_hash" | "helpers_invalid_number_different_decimals" | "helpers_invalid_number_of_years" | "helpers_invalid_identifier" | "helpers_invalid_asset_url" | "helpers_invalid_asset_identifier" | "helpers_invalid_memo_type" | "helpers_failed_to_switch_network" | "helpers_not_found_provider" | "helpers_chain_not_supported" | "helpers_invalid_params" | "helpers_invalid_response" | "not_implemented"; info?: Record<string, any>; }

any

SwapKitError

Error.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

The cause of the error.

Error.cause


message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message


name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name


optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack


static ErrorCode: object = errorCodes

Defined in: packages/helpers/src/modules/swapKitError.ts:362

readonly api_v2_invalid_method_key_hash: 60003 = 60003

readonly api_v2_invalid_response: 60001 = 60001

SwapKit API

readonly api_v2_server_error: 60002 = 60002

readonly chainflip_broker_fund_invalid_address: 30107 = 30107

readonly chainflip_broker_fund_only_flip_supported: 30106 = 30106

readonly chainflip_broker_invalid_params: 30101 = 30101

Chainflip - Broker

readonly chainflip_broker_recipient_error: 30102 = 30102

readonly chainflip_broker_register: 30103 = 30103

readonly chainflip_broker_tx_error: 30104 = 30104

readonly chainflip_broker_withdraw: 30105 = 30105

readonly chainflip_channel_error: 30001 = 30001

Chainflip

readonly chainflip_unknown_asset: 30002 = 30002

core_approve_asset_address_or_from_not_found

Section titled “core_approve_asset_address_or_from_not_found”

readonly core_approve_asset_address_or_from_not_found: 10004 = 10004

readonly core_approve_asset_target_invalid: 10007 = 10007

readonly core_chain_halted: 10010 = 10010

core_estimated_max_spendable_chain_not_supported

Section titled “core_estimated_max_spendable_chain_not_supported”

readonly core_estimated_max_spendable_chain_not_supported: 10001 = 10001

Core

readonly core_explorer_unsupported_chain: 10008 = 10008

readonly core_extend_error: 10002 = 10002

readonly core_inbound_data_not_found: 10003 = 10003

readonly core_plugin_not_found: 10005 = 10005

readonly core_plugin_swap_not_found: 10006 = 10006

readonly core_swap_asset_not_recognized: 10203 = 10203

readonly core_swap_contract_not_found: 10204 = 10204

readonly core_swap_contract_not_supported: 10206 = 10206

readonly core_swap_invalid_params: 10201 = 10201

Core - Swap

readonly core_swap_quote_mode_not_supported: 10208 = 10208

readonly core_swap_route_not_complete: 10202 = 10202

readonly core_swap_route_transaction_not_found: 10205 = 10205

readonly core_swap_transaction_error: 10207 = 10207

core_transaction_add_liquidity_asset_error

Section titled “core_transaction_add_liquidity_asset_error”

readonly core_transaction_add_liquidity_asset_error: 10308 = 10308

core_transaction_add_liquidity_base_address

Section titled “core_transaction_add_liquidity_base_address”

readonly core_transaction_add_liquidity_base_address: 10306 = 10306

readonly core_transaction_add_liquidity_base_error: 10307 = 10307

core_transaction_add_liquidity_invalid_params

Section titled “core_transaction_add_liquidity_invalid_params”

readonly core_transaction_add_liquidity_invalid_params: 10305 = 10305

core_transaction_create_liquidity_asset_error

Section titled “core_transaction_create_liquidity_asset_error”

readonly core_transaction_create_liquidity_asset_error: 10303 = 10303

core_transaction_create_liquidity_base_error

Section titled “core_transaction_create_liquidity_base_error”

readonly core_transaction_create_liquidity_base_error: 10302 = 10302

core_transaction_create_liquidity_invalid_params

Section titled “core_transaction_create_liquidity_invalid_params”

readonly core_transaction_create_liquidity_invalid_params: 10304 = 10304

readonly core_transaction_deposit_error: 10301 = 10301

Core - Transaction

readonly core_transaction_deposit_gas_error: 10312 = 10312

core_transaction_deposit_insufficient_funds_error

Section titled “core_transaction_deposit_insufficient_funds_error”

readonly core_transaction_deposit_insufficient_funds_error: 10311 = 10311

readonly core_transaction_deposit_server_error: 10314 = 10314

readonly core_transaction_deposit_to_pool_error: 10310 = 10310

readonly core_transaction_failed: 10316 = 10316

core_transaction_invalid_recipient_address

Section titled “core_transaction_invalid_recipient_address”

readonly core_transaction_invalid_recipient_address: 10317 = 10317

readonly core_transaction_invalid_sender_address: 10313 = 10313

readonly core_transaction_user_rejected: 10315 = 10315

readonly core_transaction_withdraw_error: 10309 = 10309

readonly core_verify_message_not_supported: 10009 = 10009

readonly core_wallet_connection_failed: 10114 = 10114

readonly core_wallet_connection_not_found: 10101 = 10101

Core - Wallet

readonly core_wallet_ctrl_not_installed: 10102 = 10102

readonly core_wallet_evmwallet_not_installed: 10103 = 10103

readonly core_wallet_keepkey_not_installed: 10110 = 10110

readonly core_wallet_keplr_not_installed: 10108 = 10108

readonly core_wallet_keystore_not_installed: 10105 = 10105

readonly core_wallet_ledger_not_installed: 10106 = 10106

readonly core_wallet_not_keypair_wallet: 10112 = 10112

readonly core_wallet_okx_not_installed: 10109 = 10109

readonly core_wallet_sign_message_not_supported: 10113 = 10113

readonly core_wallet_talisman_not_installed: 10111 = 10111

readonly core_wallet_trezor_not_installed: 10107 = 10107

readonly core_wallet_walletconnect_not_installed: 10104 = 10104

readonly helpers_chain_not_supported: 70009 = 70009

readonly helpers_failed_to_switch_network: 70007 = 70007

readonly helpers_invalid_asset_identifier: 70005 = 70005

readonly helpers_invalid_asset_url: 70004 = 70004

readonly helpers_invalid_identifier: 70003 = 70003

readonly helpers_invalid_memo_type: 70006 = 70006

readonly helpers_invalid_number_different_decimals: 70001 = 70001

Helpers

readonly helpers_invalid_number_of_years: 70002 = 70002

readonly helpers_invalid_params: 70010 = 70010

readonly helpers_invalid_response: 70011 = 70011

readonly helpers_not_found_provider: 70008 = 70008

readonly not_implemented: 99999 = 99999

Anything else

readonly thorchain_chain_halted: 40001 = 40001

THORChain

readonly thorchain_preferred_asset_payout_required: 40105 = 40105

readonly thorchain_swapin_memo_required: 40103 = 40103

readonly thorchain_swapin_router_required: 40101 = 40101

THORChain - Swap

readonly thorchain_swapin_token_required: 40104 = 40104

readonly thorchain_swapin_vault_required: 40102 = 40102

readonly thorchain_trading_halted: 40002 = 40002

readonly toolbox_cosmos_account_not_found: 50101 = 50101

Toolboxes - Cosmos

readonly toolbox_cosmos_invalid_fee: 50102 = 50102

readonly toolbox_cosmos_invalid_params: 50103 = 50103

readonly toolbox_cosmos_no_signer: 50104 = 50104

readonly toolbox_cosmos_not_supported: 50105 = 50105

readonly toolbox_cosmos_signer_not_defined: 50106 = 50106

toolbox_cosmos_validate_address_prefix_not_found

Section titled “toolbox_cosmos_validate_address_prefix_not_found”

readonly toolbox_cosmos_validate_address_prefix_not_found: 50107 = 50107

readonly toolbox_cosmos_verify_signature_no_pubkey: 50108 = 50108

readonly toolbox_evm_error_estimating_gas_limit: 50201 = 50201

Toolboxes - EVM

readonly toolbox_evm_error_sending_transaction: 50202 = 50202

readonly toolbox_evm_gas_estimation_error: 50203 = 50203

readonly toolbox_evm_invalid_gas_asset_address: 50204 = 50204

readonly toolbox_evm_invalid_params: 50205 = 50205

readonly toolbox_evm_invalid_transaction: 50206 = 50206

readonly toolbox_evm_no_abi_fragment: 50207 = 50207

readonly toolbox_evm_no_contract_address: 50208 = 50208

readonly toolbox_evm_no_fee_data: 50209 = 50209

readonly toolbox_evm_no_from_address: 50210 = 50210

readonly toolbox_evm_no_gas_price: 50211 = 50211

readonly toolbox_evm_no_signer: 50213 = 50213

readonly toolbox_evm_no_signer_address: 50212 = 50212

readonly toolbox_evm_no_to_address: 50214 = 50214

readonly toolbox_evm_not_supported: 50215 = 50215

toolbox_evm_provider_not_eip1193_compatible

Section titled “toolbox_evm_provider_not_eip1193_compatible”

readonly toolbox_evm_provider_not_eip1193_compatible: 50216 = 50216

readonly toolbox_not_supported: 50801 = 50801

Toolboxes - General

readonly toolbox_radix_method_not_supported: 50601 = 50601

Toolboxes - Radix

readonly toolbox_ripple_asset_not_supported: 50704 = 50704

readonly toolbox_ripple_broadcast_error: 50705 = 50705

readonly toolbox_ripple_get_balance_error: 50701 = 50701

Toolboxes - Ripple

readonly toolbox_ripple_rpc_not_configured: 50702 = 50702

readonly toolbox_ripple_signer_not_found: 50703 = 50703

readonly toolbox_solana_fee_estimation_failed: 50402 = 50402

readonly toolbox_solana_no_signer: 50401 = 50401

Toolboxes - Solana

readonly toolbox_substrate_not_supported: 50501 = 50501

Toolboxes - Substrate

readonly toolbox_tron_invalid_token_identifier: 50802 = 50802

readonly toolbox_tron_no_signer: 50801 = 50801

Toolboxes - Tron

readonly toolbox_tron_token_transfer_failed: 50803 = 50803

readonly toolbox_utxo_api_error: 50301 = 50301

Toolboxes - UTXO

readonly toolbox_utxo_broadcast_failed: 50302 = 50302

readonly toolbox_utxo_insufficient_balance: 50303 = 50303

readonly toolbox_utxo_invalid_address: 50304 = 50304

readonly toolbox_utxo_invalid_params: 50305 = 50305

readonly toolbox_utxo_invalid_transaction: 50306 = 50306

readonly toolbox_utxo_no_signer: 50307 = 50307

readonly toolbox_utxo_not_supported: 50308 = 50308

readonly wallet_bitkeep_failed_to_switch_network: 21002 = 21002

readonly wallet_bitkeep_no_accounts: 21003 = 21003

readonly wallet_bitkeep_not_found: 21001 = 21001

Wallets - BitKeep/BitGet

readonly wallet_chain_not_supported: 20003 = 20003

readonly wallet_coinbase_chain_not_supported: 21702 = 21702

readonly wallet_coinbase_method_not_supported: 21703 = 21703

readonly wallet_coinbase_no_accounts: 21704 = 21704

readonly wallet_coinbase_not_found: 21701 = 21701

Wallets - Coinbase

readonly wallet_connection_rejected_by_user: 20001 = 20001

Wallets - General

readonly wallet_cosmostation_chain_not_supported: 21502 = 21502

wallet_cosmostation_evm_provider_not_found

Section titled “wallet_cosmostation_evm_provider_not_found”

readonly wallet_cosmostation_evm_provider_not_found: 21503 = 21503

wallet_cosmostation_keplr_provider_not_found

Section titled “wallet_cosmostation_keplr_provider_not_found”

readonly wallet_cosmostation_keplr_provider_not_found: 21504 = 21504

readonly wallet_cosmostation_no_accounts: 21505 = 21505

readonly wallet_cosmostation_no_evm_accounts: 21506 = 21506

readonly wallet_cosmostation_no_evm_address: 21507 = 21507

readonly wallet_cosmostation_not_found: 21501 = 21501

Wallets - Cosmostation

readonly wallet_cosmostation_signer_not_found: 21508 = 21508

readonly wallet_ctrl_asset_not_defined: 20304 = 20304

readonly wallet_ctrl_contract_address_not_provided: 20303 = 20303

readonly wallet_ctrl_not_found: 20301 = 20301

Wallets - Ctrl

readonly wallet_ctrl_send_transaction_no_address: 20302 = 20302

wallet_evm_extensions_failed_to_switch_network

Section titled “wallet_evm_extensions_failed_to_switch_network”

readonly wallet_evm_extensions_failed_to_switch_network: 21801 = 21801

Wallets - EVM Extensions

readonly wallet_evm_extensions_no_provider: 21802 = 21802

readonly wallet_evm_extensions_not_found: 21803 = 21803

readonly wallet_exodus_chain_not_supported: 21107 = 21107

readonly wallet_exodus_failed_to_switch_network: 21106 = 21106

readonly wallet_exodus_instance_missing: 21108 = 21108

readonly wallet_exodus_no_address: 21103 = 21103

readonly wallet_exodus_not_found: 21102 = 21102

readonly wallet_exodus_request_canceled: 21104 = 21104

readonly wallet_exodus_sign_transaction_error: 21101 = 21101

Wallets - Exodus

readonly wallet_exodus_signature_canceled: 21105 = 21105

readonly wallet_failed_to_add_or_switch_network: 20006 = 20006

readonly wallet_keepkey_account_not_found: 20917 = 20917

readonly wallet_keepkey_asset_not_defined: 20902 = 20902

readonly wallet_keepkey_chain_not_supported: 20910 = 20910

readonly wallet_keepkey_config_not_found: 20915 = 20915

wallet_keepkey_contract_address_not_provided

Section titled “wallet_keepkey_contract_address_not_provided”

readonly wallet_keepkey_contract_address_not_provided: 20903 = 20903

readonly wallet_keepkey_derivation_path_error: 20905 = 20905

readonly wallet_keepkey_invalid_params: 20914 = 20914

readonly wallet_keepkey_invalid_response: 20909 = 20909

readonly wallet_keepkey_method_not_supported: 20913 = 20913

readonly wallet_keepkey_no_accounts: 20912 = 20912

readonly wallet_keepkey_no_provider: 20916 = 20916

readonly wallet_keepkey_not_found: 20901 = 20901

Wallets - KeepKey

wallet_keepkey_send_transaction_no_address

Section titled “wallet_keepkey_send_transaction_no_address”

readonly wallet_keepkey_send_transaction_no_address: 20904 = 20904

readonly wallet_keepkey_signer_not_found: 20911 = 20911

readonly wallet_keepkey_signing_error: 20906 = 20906

readonly wallet_keepkey_transport_error: 20907 = 20907

readonly wallet_keepkey_unsupported_chain: 20908 = 20908

readonly wallet_keplr_chain_not_supported: 21402 = 21402

readonly wallet_keplr_no_accounts: 21404 = 21404

readonly wallet_keplr_not_found: 21401 = 21401

Wallets - Keplr

readonly wallet_keplr_signer_not_found: 21403 = 21403

readonly wallet_keystore_invalid_password: 21901 = 21901

Wallets - Keystore

readonly wallet_keystore_unsupported_version: 21902 = 21902

readonly wallet_ledger_address_not_found: 20122 = 20122

readonly wallet_ledger_app_not_open: 20110 = 20110

readonly wallet_ledger_chain_not_supported: 20119 = 20119

readonly wallet_ledger_connection_claimed: 20102 = 20102

readonly wallet_ledger_connection_error: 20101 = 20101

Wallets - Ledger

readonly wallet_ledger_derivation_path_error: 20108 = 20108

readonly wallet_ledger_device_locked: 20105 = 20105

readonly wallet_ledger_device_not_found: 20104 = 20104

readonly wallet_ledger_failed_to_get_address: 20123 = 20123

readonly wallet_ledger_get_address_error: 20103 = 20103

readonly wallet_ledger_invalid_account: 20121 = 20121

readonly wallet_ledger_invalid_asset: 20120 = 20120

readonly wallet_ledger_invalid_params: 20113 = 20113

readonly wallet_ledger_invalid_response: 20111 = 20111

readonly wallet_ledger_invalid_signature: 20114 = 20114

readonly wallet_ledger_method_not_supported: 20112 = 20112

readonly wallet_ledger_no_provider: 20115 = 20115

readonly wallet_ledger_pubkey_not_found: 20116 = 20116

readonly wallet_ledger_public_key_error: 20107 = 20107

readonly wallet_ledger_signing_error: 20109 = 20109

readonly wallet_ledger_transport_error: 20106 = 20106

readonly wallet_ledger_transport_not_defined: 20117 = 20117

readonly wallet_ledger_webusb_not_supported: 20118 = 20118

readonly wallet_missing_api_key: 20002 = 20002

readonly wallet_missing_params: 20004 = 20004

readonly wallet_okx_chain_not_supported: 21302 = 21302

readonly wallet_okx_failed_to_switch_network: 21303 = 21303

readonly wallet_okx_no_accounts: 21304 = 21304

readonly wallet_okx_not_found: 21301 = 21301

Wallets - OKX

readonly wallet_onekey_not_found: 21201 = 21201

Wallets - OneKey

readonly wallet_onekey_sign_transaction_error: 21202 = 21202

readonly wallet_phantom_not_found: 20201 = 20201

Wallets - Phantom

readonly wallet_polkadot_not_found: 20701 = 20701

Wallets - Polkadot

readonly wallet_provider_not_found: 20005 = 20005

readonly wallet_radix_invalid_manifest: 20803 = 20803

readonly wallet_radix_method_not_supported: 20804 = 20804

readonly wallet_radix_no_account: 20805 = 20805

readonly wallet_radix_not_found: 20801 = 20801

Wallets - Radix

readonly wallet_radix_transaction_failed: 20802 = 20802

readonly wallet_talisman_not_enabled: 20601 = 20601

Wallets - Talisman

readonly wallet_talisman_not_found: 20602 = 20602

wallet_trezor_derivation_path_not_supported

Section titled “wallet_trezor_derivation_path_not_supported”

readonly wallet_trezor_derivation_path_not_supported: 20502 = 20502

readonly wallet_trezor_failed_to_get_address: 20503 = 20503

readonly wallet_trezor_failed_to_sign_transaction: 20501 = 20501

Wallets - Trezor

readonly wallet_trezor_method_not_supported: 20505 = 20505

readonly wallet_trezor_transport_error: 20504 = 20504

readonly wallet_walletconnect_chain_not_supported: 20404 = 20404

wallet_walletconnect_connection_not_established

Section titled “wallet_walletconnect_connection_not_established”

readonly wallet_walletconnect_connection_not_established: 20402 = 20402

readonly wallet_walletconnect_invalid_method: 20405 = 20405

readonly wallet_walletconnect_method_not_supported: 20406 = 20406

wallet_walletconnect_namespace_not_supported

Section titled “wallet_walletconnect_namespace_not_supported”

readonly wallet_walletconnect_namespace_not_supported: 20403 = 20403

wallet_walletconnect_project_id_not_specified

Section titled “wallet_walletconnect_project_id_not_specified”

readonly wallet_walletconnect_project_id_not_specified: 20401 = 20401

Wallets - WalletConnect

readonly wallet_xdefi_chain_not_supported: 21602 = 21602

readonly wallet_xdefi_not_found: 21601 = 21601

Wallets - XDefi


static stackTraceLimit: number

Defined in: node_modules/@types/bun/node_modules/bun-types/globals.d.ts:963

The maximum number of stack frames to capture.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/bun/node_modules/bun-types/globals.d.ts:958

Create .stack property on a target object

object

Function

void

Error.captureStackTrace

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/bun-types/globals.d.ts:958

Create .stack property on a target object

object

Function

void

Error.captureStackTrace

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:146

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();

object

Function

void

Error.captureStackTrace


static isError(value): value is Error

Defined in: node_modules/@types/bun/node_modules/bun-types/globals.d.ts:953

Check if a value is an instance of Error

unknown

The value to check

value is Error

True if the value is an instance of Error, false otherwise

Error.isError

static isError(value): value is Error

Defined in: node_modules/bun-types/globals.d.ts:953

Check if a value is an instance of Error

unknown

The value to check

value is Error

True if the value is an instance of Error, false otherwise

Error.isError


static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:150

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace