Skip to main content

Framework abort codes

Generated from the Sui source (MystenLabs/sui at commit e25770145) on 2026-11-16 by error_pages.py in MystenLabs/docs-data-dashboard. Do not edit this page by hand: the weekly run regenerates it from the source. To change a message, edit the constant's doc comment, or its #[error] string, in the package's sources directory under crates/sui-framework/packages.

Every const E... the framework packages declare, 389 constants in 5 packages, with the module that declares it. A transaction that aborts inside one of these modules fails with the MoveAbort execution error, which carries the module and the abort code, so this page maps the code back to the constant and its doc comment. A clever error (62 of them, marked #[error] in the source) carries its message instead of a number. The execution errors themselves are on Execution errors.

bridge​

bridge::bridge​

Defined in crates/sui-framework/packages/bridge/sources/bridge.move.

ConstantAbort codeMessage
EVM_ADDRESS_LENGTH20
EUnexpectedMessageType0
EUnauthorisedClaim1
EMalformedMessageError2
EUnexpectedTokenType3
EUnexpectedChainID4
ENotSystemAddress5
EUnexpectedSeqNum6
EWrongInnerVersion7
EBridgeUnavailable8
EUnexpectedOperation9
EInvariantSuiInitializedTokenTransferShouldNotBeClaimed10
EMessageNotFoundInRecords11
EUnexpectedMessageVersion12
EBridgeAlreadyPaused13
EBridgeNotPaused14
ETokenAlreadyClaimedOrHitLimit15
EInvalidBridgeRoute16
EMustBeTokenMessage17
EInvalidEvmAddress18
ETokenValueIsZero19

bridge::chain_ids​

Defined in crates/sui-framework/packages/bridge/sources/chain_ids.move.

ConstantAbort codeMessage
EInvalidBridgeRoute0

bridge::committee​

Defined in crates/sui-framework/packages/bridge/sources/committee.move.

ConstantAbort codeMessage
ESignatureBelowThreshold0
EDuplicatedSignature1
EInvalidSignature2
ENotSystemAddress3
EValidatorBlocklistContainsUnknownKey4
ESenderNotActiveValidator5
EInvalidPubkeyLength6
ECommitteeAlreadyInitiated7
EDuplicatePubkey8
ESenderIsNotInBridgeCommittee9
ECDSA_COMPRESSED_PUBKEY_LENGTH33

bridge::limiter​

Defined in crates/sui-framework/packages/bridge/sources/limiter.move.

ConstantAbort codeMessage
ELimitNotFoundForRoute0

bridge::message​

Defined in crates/sui-framework/packages/bridge/sources/message.move.

ConstantAbort codeMessage
ECDSA_ADDRESS_LENGTH20
ETrailingBytes0
EInvalidAddressLength1
EEmptyList2
EInvalidMessageType3
EInvalidEmergencyOpType4
EInvalidPayloadLength5
EMustBeTokenMessage6
EInvalidMessageVersion7

bridge::treasury​

Defined in crates/sui-framework/packages/bridge/sources/treasury.move.

ConstantAbort codeMessage
EUnsupportedTokenType1
EInvalidUpgradeCap2
ETokenSupplyNonZero3
EInvalidNotionalValue4

deepbook​

deepbook::clob​

Defined in crates/sui-framework/packages/deepbook/sources/clob.move.

ConstantAbort codeMessage
EInvalidOrderId3
EUnauthorizedCancel4
EInvalidQuantity6
EInvalidTickPrice11
EInvalidUser12

deepbook::clob_v2​

Defined in crates/sui-framework/packages/deepbook/sources/clob_v2.move.

ConstantAbort codeMessage
EIncorrectPoolOwner1
EInvalidOrderId3
EUnauthorizedCancel4
EInvalidQuantity6
EInvalidTickPrice11
EInvalidUser12
ENotEqual13
EInvalidExpireTimestamp19

deepbook::critbit​

Defined in crates/sui-framework/packages/deepbook/sources/critbit.move.

ConstantAbort codeMessage
EExceedCapacity2
ETreeNotEmpty3
EKeyAlreadyExist4
ELeafNotExist5
EIndexOutOfRange7
ENullParent8

deepbook::custodian_v2​

Defined in crates/sui-framework/packages/deepbook/sources/custodian_v2.move.

ConstantAbort codeMessage
EAdminAccountCapRequired2

deepbook::math​

Defined in crates/sui-framework/packages/deepbook/sources/math.move.

ConstantAbort codeMessage
EUnderflow1

move-stdlib​

std::ascii​

Defined in crates/sui-framework/packages/move-stdlib/sources/ascii.move.

ConstantAbort codeMessage
EInvalidASCIICharacter0x10000An invalid ASCII character was encountered when creating an ASCII string.
EInvalidIndex0x10001An invalid index was encountered when creating a substring.

std::bit_vector​

Defined in crates/sui-framework/packages/move-stdlib/sources/bit_vector.move.

ConstantAbort codeMessage
EINDEX0x20000The provided index is out of bounds
ELENGTH0x20001An invalid length of bitvector was given

std::fixed_point32​

Defined in crates/sui-framework/packages/move-stdlib/sources/fixed_point32.move.

ConstantAbort codeMessage
EDENOMINATOR0x10001The denominator provided was zero
EDIVISION0x20002The quotient value would be too large to be held in a u64
EMULTIPLICATION0x20003The multiplied value would be too large to be held in a u64
EDIVISION_BY_ZERO0x10004A division by zero was encountered
ERATIO_OUT_OF_RANGE0x20005The computed ratio when converting to a FixedPoint32 would be unrepresentable

std::option​

Defined in crates/sui-framework/packages/move-stdlib/sources/option.move.

ConstantAbort codeMessage
EOPTION_IS_SET0x40000The Option is in an invalid state for the operation attempted. The Option is Some while it should be None.
EOPTION_NOT_SET0x40001The Option is in an invalid state for the operation attempted. The Option is None while it should be Some.

std::string​

Defined in crates/sui-framework/packages/move-stdlib/sources/string.move.

ConstantAbort codeMessage
EInvalidUTF81An invalid UTF8 encoding.
EInvalidIndex2Index out of range.

std::type_name​

Defined in crates/sui-framework/packages/move-stdlib/sources/type_name.move.

ConstantAbort codeMessage
ENonModuleType0The type is not from a package/module. It is a primitive type.

std::uq32_32​

Defined in crates/sui-framework/packages/move-stdlib/sources/uq32_32.move.

ConstantAbort codeMessage
EDenominatorclever errorQuotient specified with a zero denominator
EQuotientTooSmallclever errorQuotient specified is too small, and is outside of the supported range
EQuotientTooLargeclever errorQuotient specified is too large, and is outside of the supported range
EOverflowclever errorOverflow from an arithmetic operation
EDivisionByZeroclever errorDivision by zero

std::uq64_64​

Defined in crates/sui-framework/packages/move-stdlib/sources/uq64_64.move.

ConstantAbort codeMessage
EDenominatorclever errorQuotient specified with a zero denominator
EQuotientTooSmallclever errorQuotient specified is too small, and is outside of the supported range
EQuotientTooLargeclever errorQuotient specified is too large, and is outside of the supported range
EOverflowclever errorOverflow from an arithmetic operation
EDivisionByZeroclever errorDivision by zero

std::vector​

Defined in crates/sui-framework/packages/move-stdlib/sources/vector.move.

ConstantAbort codeMessage
EINDEX_OUT_OF_BOUNDS0x20000The index into the vector is out of bounds

sui-framework​

sui::accumulator​

Defined in crates/sui-framework/packages/sui-framework/sources/accumulator.move.

ConstantAbort codeMessage
ENotSystemAddress0

sui::accumulator_metadata​

Defined in crates/sui-framework/packages/sui-framework/sources/accumulator_metadata.move.

ConstantAbort codeMessage
EInvariantViolation0

sui::accumulator_settlement​

Defined in crates/sui-framework/packages/sui-framework/sources/accumulator_settlement.move.

ConstantAbort codeMessage
ENotSystemAddress0
EInvalidSplitAmount1

sui::address​

Defined in crates/sui-framework/packages/sui-framework/sources/address.move.

ConstantAbort codeMessage
EAddressParseError0Error from from_bytes when it is supplied too many or too few bytes.

sui::address_alias​

Defined in crates/sui-framework/packages/sui-framework/sources/address_alias.move.

ConstantAbort codeMessage
ENotSystemAddressclever errorOnly the system can create the alias state object.
ENoSuchAliasclever errorGiven alias does not exist.
EAliasAlreadyExistsclever errorAlias already exists.
ECannotRemoveLastAliasclever errorCannot remove the last alias.
ETooManyAliasesclever errorThe number of aliases exceeds the maximum allowed.

sui::allowance​

Defined in crates/sui-framework/packages/sui-framework/sources/allowance.move.

ConstantAbort codeMessage
ENotSpenderclever error
EWrongAppclever error
EExpiredclever error
EExceedsLifetimeCapclever error
EExceedsRateLimitclever error
ENoLimitclever error
EWrongAllowanceclever error
EBadRateLimitclever error
ENotStartedclever error
EHasAppclever error
EWrongFunderclever error
EWrongCapclever error
ENameTooLongclever error
EZeroLifetimeCapclever error
EBadTimeWindowclever error
ENoExpirationclever error
ENotEnabledclever error
ESponsorWithdrawalNotEnabledclever error

sui::authenticator_state​

Defined in crates/sui-framework/packages/sui-framework/sources/authenticator_state.move.

ConstantAbort codeMessage
ENotSystemAddress0Sender is not @0x0 the system address.
EWrongInnerVersion1
EJwksNotSorted2

sui::bag​

Defined in crates/sui-framework/packages/sui-framework/sources/bag.move.

ConstantAbort codeMessage
EBagNotEmpty0

sui::balance​

Defined in crates/sui-framework/packages/sui-framework/sources/balance.move.

ConstantAbort codeMessage
ENonZero0For when trying to destroy a non-zero balance.
EOverflow1For when an overflow is happening on Supply operations.
ENotEnough2For when trying to withdraw more than there is.
ENotSystemAddress3Sender is not @0x0 the system address.
ENotSUI4System operation performed for a coin other than SUI

sui::bcs​

Defined in crates/sui-framework/packages/sui-framework/sources/bcs.move.

ConstantAbort codeMessage
EOutOfRange0For when bytes length is less than required for deserialization.
ENotBool1For when the boolean value different than 0 or 1.
ELenOutOfRange2For when ULEB byte is out of range (or not found).

sui::borrow​

Defined in crates/sui-framework/packages/sui-framework/sources/borrow.move.

ConstantAbort codeMessage
EWrongBorrow0The Borrow does not match the Referent.
EWrongValue1An attempt to swap the Referent.value with another object of the same type.

sui::clock​

Defined in crates/sui-framework/packages/sui-framework/sources/clock.move.

ConstantAbort codeMessage
ENotSystemAddress0Sender is not @0x0 the system address.
ETimestampDecreased1The test Clock was set to a timestamp earlier than its current one.

sui::coin​

Defined in crates/sui-framework/packages/sui-framework/sources/coin.move.

ConstantAbort codeMessage
EBadWitness0A type passed to create_supply is not a one-time witness.
EInvalidArg1Invalid arguments are passed to a function.
ENotEnough2Trying to split a coin more times than its balance allows.
EGlobalPauseNotAllowed3

sui::config​

Defined in crates/sui-framework/packages/sui-framework/sources/config.move.

ConstantAbort codeMessage
EAlreadySetForEpoch0
ENotSetForEpoch1
EBCSSerializationFailure2

sui::ecdsa_k1​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/ecdsa_k1.move.

ConstantAbort codeMessage
EFailToRecoverPubKey0Error if the public key cannot be recovered from the signature.
EInvalidSignature1Error if the signature is invalid.
EInvalidPubKey2Error if the public key is invalid.
EInvalidPrivKey3Error if the private key is invalid.
EInvalidHashFunction4Error if the given hash function does not exist.
EInvalidSeed5Error if the seed is invalid.

sui::ecdsa_r1​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/ecdsa_r1.move.

ConstantAbort codeMessage
EFailToRecoverPubKey0Error if the public key cannot be recovered from the signature.
EInvalidSignature1Error if the signature is invalid.

sui::ecvrf​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/ecvrf.move.

ConstantAbort codeMessage
EInvalidHashLength1
EInvalidPublicKeyEncoding2
EInvalidProofEncoding3

sui::groth16​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/groth16.move.

ConstantAbort codeMessage
EInvalidVerifyingKey0
EInvalidCurve1
ETooManyPublicInputs2
EInvalidScalar3

sui::group_ops​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/group_ops.move.

ConstantAbort codeMessage
ENotSupported0
EInvalidInput1
EInputTooLong2
EInvalidBufferLength3

sui::nitro_attestation​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/nitro_attestation.move.

ConstantAbort codeMessage
ENotSupportedError0Error that the feature is not available on this network.
EParseError1Error that the attestation input failed to be parsed.
EVerifyError2Error that the attestation failed to be verified.
EInvalidPCRsError3Error that the PCRs are invalid.

sui::poseidon​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/poseidon.move.

ConstantAbort codeMessage
ENonCanonicalInput0Error if any of the inputs are larger than or equal to the BN254 field size.
EEmptyInput1Error if an empty vector is passed as input.
ETooManyInputs2Error if more than MAX_INPUTS inputs are given.

sui::rangeproofs​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/rangeproofs.move.

ConstantAbort codeMessage
ENotSupported0
EInvalidProof1
EInvalidRange2
EInvalidBatchSize3
EUnsupportedVersion4
EInvalidDst5

sui::vdf​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/vdf.move.

ConstantAbort codeMessage
EInvalidInput0

sui::zklogin_verified_id​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/zklogin_verified_id.move.

ConstantAbort codeMessage
EFunctionDisabled0

sui::zklogin_verified_issuer​

Defined in crates/sui-framework/packages/sui-framework/sources/crypto/zklogin_verified_issuer.move.

ConstantAbort codeMessage
EInvalidInput0Error if the proof consisting of the inputs provided to the verification function is invalid.
EInvalidProof1Error if the proof consisting of the inputs provided to the verification function is invalid.

sui::deny_list​

Defined in crates/sui-framework/packages/sui-framework/sources/deny_list.move.

ConstantAbort codeMessage
ENotSystemAddress0Trying to create a deny list object when not called by the system address.
ENotDenied1The specified address to be removed is not already in the deny list.
EInvalidAddress1The specified address cannot be added to the deny list.

sui::derived_object​

Defined in crates/sui-framework/packages/sui-framework/sources/derived_object.move.

ConstantAbort codeMessage
EObjectAlreadyExistsclever errorDerived object is already claimed.
EObjectNotClaimedclever errorDerived object is not claimed by this parent.
ESharedObjectReleaseclever errorShared objects cannot be released.

sui::display​

Defined in crates/sui-framework/packages/sui-framework/sources/display.move.

ConstantAbort codeMessage
ENotOwner0For when T does not belong to the package Publisher.
EVecLengthMismatch1For when vectors passed into one of the multiple insert functions don't match in their lengths.
ENoLongerSupported2Creation of Display V1 is no longer available, see display_registry for options for creating Display V2.

sui::dynamic_field​

Defined in crates/sui-framework/packages/sui-framework/sources/dynamic_field.move.

ConstantAbort codeMessage
EFieldAlreadyExists0The object already has a dynamic field with this name (with the value and type specified)
EFieldDoesNotExist1Cannot load dynamic field. The object does not have a dynamic field with this name (with the value and type specified)
EFieldTypeMismatch2The object has a field with that name, but the value type does not match
EBCSSerializationFailure3Failed to serialize the field's name
ESharedObjectOperationNotSupported4The object added as a dynamic field was previously a shared object

sui::forwarding_address​

Defined in crates/sui-framework/packages/sui-framework/sources/forwarding_address.move.

ConstantAbort codeMessage
ENotSystemAddressclever errorOnly the system can create the forwarding address registry.

sui::funds_accumulator​

Defined in crates/sui-framework/packages/sui-framework/sources/funds_accumulator.move.

ConstantAbort codeMessage
EOverflow0
EInvalidSubLimitclever errorSub-limit exceeds current withdrawal limit
EOwnerMismatchclever errorWithdrawal owners do not match
EObjectFundsWithdrawNotEnabledclever errorObject funds withdraw is not enabled
EAccumulatorTypeTooLarge4
EObjectFundsInsufficient

sui::hex​

Defined in crates/sui-framework/packages/sui-framework/sources/hex.move.

ConstantAbort codeMessage
EInvalidHexLength0
ENotValidHexCharacter1

sui::kiosk​

Defined in crates/sui-framework/packages/sui-framework/sources/kiosk/kiosk.move.

ConstantAbort codeMessage
ENotOwner0Trying to withdraw profits and sender is not owner.
EIncorrectAmount1Coin paid does not match the offer price.
ENotEnough2Trying to withdraw higher amount than stored.
ENotEmpty3Trying to close a Kiosk and it has items in it.
EListedExclusively4Attempt to take an item that has a PurchaseCap issued.
EWrongKiosk5PurchaseCap does not match the Kiosk.
EAlreadyListed6Trying to exclusively list an already listed item.
EUidAccessNotAllowed7Trying to call uid_mut when allow_extensions set to false.
EItemLocked8Attempt to take an item that is locked.
EItemIsListed9Taking or mutably borrowing an item that is listed.
EItemMismatch10Item does not match Borrow in return_val.
EItemNotFound11An is not found while trying to borrow.
ENotListed12Delisting an item that is not listed.

sui::kiosk_extension​

Defined in crates/sui-framework/packages/sui-framework/sources/kiosk/kiosk_extension.move.

ConstantAbort codeMessage
ENotOwner0Trying to add an extension while not being the owner of the Kiosk.
EExtensionNotAllowed2Extension is trying to access a permissioned action while not having the required permission.
EExtensionNotInstalled3Extension is not installed in the Kiosk.

sui::transfer_policy​

Defined in crates/sui-framework/packages/sui-framework/sources/kiosk/transfer_policy.move.

ConstantAbort codeMessage
EPolicyNotSatisfied0The number of receipts does not match the TransferPolicy requirement.
EIllegalRule1A completed rule is not set in the TransferPolicy.
EUnknownRequirement2A Rule is not set.
ERuleAlreadySet3Attempting to create a Rule that is already set.
ENotOwner4Trying to withdraw or close_and_withdraw with a wrong Cap.
ENotEnough5Trying to withdraw more than there is.

sui::linked_table​

Defined in crates/sui-framework/packages/sui-framework/sources/linked_table.move.

ConstantAbort codeMessage
ETableNotEmpty0
ETableIsEmpty1

sui::object​

Defined in crates/sui-framework/packages/sui-framework/sources/object.move.

ConstantAbort codeMessage
ENotSystemAddress0Sender is not @0x0 the system address.

sui::object_bag​

Defined in crates/sui-framework/packages/sui-framework/sources/object_bag.move.

ConstantAbort codeMessage
EBagNotEmpty0

sui::object_table​

Defined in crates/sui-framework/packages/sui-framework/sources/object_table.move.

ConstantAbort codeMessage
ETableNotEmpty0

sui::package​

Defined in crates/sui-framework/packages/sui-framework/sources/package.move.

ConstantAbort codeMessage
ENotOneTimeWitness0Tried to create a Publisher using a type that isn't a one-time witness.
ETooPermissive1Tried to set a less restrictive policy than currently in place.
EAlreadyAuthorized2This UpgradeCap has already authorized a pending upgrade.
ENotAuthorized3This UpgradeCap has not authorized an upgrade.
EWrongUpgradeCap4Trying to commit an upgrade to the wrong UpgradeCap.
EUpgradeInProgress5Trying to read the current package ID from the UpgradeCap while an upgrade is in progress.
EInvalidPackageVersion6Invalid package version in the UpgradeCap, or there was a mismatch between the package ID and version supplied (in the native).

sui::pay​

Defined in crates/sui-framework/packages/sui-framework/sources/pay.move.

ConstantAbort codeMessage
ENoCoins0For when empty vector is supplied into join function.

sui::priority_queue​

Defined in crates/sui-framework/packages/sui-framework/sources/priority_queue.move.

ConstantAbort codeMessage
EPopFromEmptyHeap0For when heap is empty and there's no data to pop.
ELengthMismatch1For when the value vector and priority vector have mismatched lengths
EIndexOutOfBounds2For when access a node of a priority_queue at an invalid index

sui::random​

Defined in crates/sui-framework/packages/sui-framework/sources/random.move.

ConstantAbort codeMessage
ENotSystemAddress0
EWrongInnerVersion1
EInvalidRandomnessUpdate2
EInvalidRange3
EInvalidLength4

sui::coin_registry​

Defined in crates/sui-framework/packages/sui-framework/sources/registries/coin_registry.move.

ConstantAbort codeMessage
EMetadataCapAlreadyClaimedclever errorMetadata cap already claimed
ENotSystemAddressclever errorOnly the system can create the registry.
ECurrencyAlreadyExistsclever errorCurrency for this coin type already exists.
EDenyListStateAlreadySetclever errorCannot set the deny list state as it has already been set.
ECannotUpdateManagedMetadataclever errorCannot update metadata whose `MetadataCap` has already been claimed
EInvalidSymbolclever errorSymbol has to be ASCII printable
EDenyCapAlreadyCreatedclever errorCannot claim the deny cap twice
ECurrencyAlreadyRegisteredclever errorCurrency already registered
EEmptySupplyclever errorSupply cannot be empty
ESupplyNotBurnOnlyclever errorCannot burn on a non burn-only supply
EInvariantViolationclever errorCode invariant violation
EDeletionNotSupportedclever errorDeleting legacy metadata is not supported
ENotOneTimeWitnessclever errorType is expected to be OTW
EBorrowLegacyMetadataclever errorCannot borrow legacy metadata for migrated currency
EDuplicateBorrowclever errorAttempt to return duplicate borrowed CoinMetadata

sui::display_registry​

Defined in crates/sui-framework/packages/sui-framework/sources/registries/display_registry.move.

ConstantAbort codeMessage
ENotSystemAddressclever errorThis is only callable from system address.
EDisplayAlreadyExistsclever errorDisplay for the supplied type already exists.
ECapAlreadyClaimedclever errorCap for this display object has already been claimed.
ENotValidPublisherclever errorThe publisher is not valid for the supplied type.
EFieldDoesNotExistclever errorField does not exist in the display.
ECapNotClaimedclever errorCap for this display object has not been claimed so you cannot delete the legacy display yet.

sui::scratch​

Defined in crates/sui-framework/packages/sui-framework/sources/scratch.move.

ConstantAbort codeMessage
EEntryAlreadyExists0The scratch store already has an entry for this key.
EEntryDoesNotExist1The scratch store does not have an entry for this key.
EEntryTypeMismatch2The scratch store has an entry for this key, but the value type does not match.
EBorrowMarkerMismatch3A borrow-style macro found a different BorrowMarker than it left in the slot.

sui::sui​

Defined in crates/sui-framework/packages/sui-framework/sources/sui.move.

ConstantAbort codeMessage
EAlreadyMinted0
ENotSystemAddress1Sender is not @0x0 the system address.

sui::table​

Defined in crates/sui-framework/packages/sui-framework/sources/table.move.

ConstantAbort codeMessage
ETableNotEmpty0

sui::table_vec​

Defined in crates/sui-framework/packages/sui-framework/sources/table_vec.move.

ConstantAbort codeMessage
EIndexOutOfBound0
ETableNonEmpty1

sui::test_scenario​

Defined in crates/sui-framework/packages/sui-framework/sources/test/test_scenario.move.

ConstantAbort codeMessage
ECouldNotGenerateEffects0the transaction failed when generating these effects. For example, a circular ownership of objects was created
EInvalidSharedOrImmutableUsage1Transaction ended without all shared and immutable objects being returned or with those objects being transferred or wrapped
ECantReturnObject2Attempted to return an object to the inventory that was not previously removed from the inventory during the current transaction. Can happen if the user attempts to call return_to_address on a locally constructed object rather than one returned from a test_scenario function such as take_from_address.
EEmptyInventory3Attempted to retrieve an object of a particular type from the inventory, but it is empty. Can happen if the user already transferred the object or a previous transaction failed to transfer the object to the user.
EObjectNotFound4Object of that ID was not found in that inventory. It was possibly already taken
EUnableToAllocateReceivingTicket5Unable to allocate a receiving ticket for the object
EReceivingTicketAlreadyAllocated6A receiving ticket for the object was already allocated in the transaction
EUnableToDeallocateReceivingTicket7Unable to deallocate the receiving ticket
EInsufficientFunds8The funds withdrawals reserved from an address in this transaction exceed its settled funds
EBalanceOverflow9The settled Balance<T> of an owner exceeds u64::MAX, which a real balance cannot
EZeroWithdrawal10A funds withdrawal from an address must be for a non-zero amount, as a transaction's funds withdrawal input must
EUnbackedWithdrawal11A transaction withdrew more funds from an owner than it had, through a withdrawal that was not reserved against those funds (for example one kept from an earlier transaction)
EClockTimestampNotIncreased12A TxContextBuilder set the Clock to a timestamp that is not later than its current one

sui::token​

Defined in crates/sui-framework/packages/sui-framework/sources/token.move.

ConstantAbort codeMessage
EUnknownAction0The action is not allowed (defined) in the policy.
ENotApproved1The rule was not approved.
ENotAuthorized2Trying to perform an admin action with a wrong cap.
EBalanceTooLow3The balance is too low to perform the action.
ENotZero4The balance is not zero.
ECantConsumeBalance5The balance is not zero when trying to confirm with TransferPolicyCap.
ENoConfig6Rule is trying to access a missing config (with type).
EUseImmutableConfirm7Using confirm_request_mut without spent_balance. Immutable version of the function must be used instead.

sui::transfer​

Defined in crates/sui-framework/packages/sui-framework/sources/transfer.move.

ConstantAbort codeMessage
ESharedNonNewObject0Shared an object that was previously created. Shared objects must currently be constructed in the transaction they are created.
EBCSSerializationFailure1Serialization of the object failed.
EReceivingObjectTypeMismatch2The object being received is not of the expected type.
EUnableToReceiveObject3Represents both the case where the object does not exist and the case where the object is not able to be accessed through the parent that is passed-in.
ESharedObjectOperationNotSupported4Shared object operations such as wrapping, freezing, and converting to owned are not allowed.
ENotSupported5Operation is not yet supported by the network. The functionality might still be in development.
EInvalidPartyPermissionsclever errorParty transfer is currently limited to one party.

sui::tx_context​

Defined in crates/sui-framework/packages/sui-framework/sources/tx_context.move.

ConstantAbort codeMessage
EBadTxHashLength0Expected an tx hash of length 32, but found a different length

sui::vec_map​

Defined in crates/sui-framework/packages/sui-framework/sources/vec_map.move.

ConstantAbort codeMessage
EKeyAlreadyExists0This key already exists in the map
EKeyDoesNotExist1This key does not exist in the map
EMapNotEmpty2Trying to destroy a map that is not empty
EIndexOutOfBounds3Trying to access an element of the map at an invalid index
EMapEmpty4Trying to pop from a map that is empty
EUnequalLengths5Trying to construct a map from keys and values of different lengths

sui::vec_set​

Defined in crates/sui-framework/packages/sui-framework/sources/vec_set.move.

ConstantAbort codeMessage
EKeyAlreadyExists0This key already exists in the map
EKeyDoesNotExist1This key does not exist in the map

sui::versioned​

Defined in crates/sui-framework/packages/sui-framework/sources/versioned.move.

ConstantAbort codeMessage
EInvalidUpgrade0Failed to upgrade the inner object due to invalid capability or new version.

sui-system​

sui_system::genesis​

Defined in crates/sui-framework/packages/sui-system/sources/genesis.move.

ConstantAbort codeMessage
ENotCalledAtGenesis0The create function was called at a non-genesis epoch.
EDuplicateValidator1The create function was called with duplicate validators.
ENotAValidator2The validator address is not in the validator set.

sui_system::stake_subsidy​

Defined in crates/sui-framework/packages/sui-system/sources/stake_subsidy.move.

ConstantAbort codeMessage
ESubsidyDecreaseRateTooLarge0

sui_system::staking_pool​

Defined in crates/sui-framework/packages/sui-system/sources/staking_pool.move.

ConstantAbort codeMessage
EInsufficientPoolTokenBalance0
EWrongPool1
EWithdrawAmountCannotBeZero2
EInsufficientSuiTokenBalance3
EInsufficientRewardsPoolBalance4
EDestroyNonzeroBalance5
ETokenTimeLockIsSome6
EWrongDelegation7
EPendingDelegationDoesNotExist8
ETokenBalancesDoNotMatchExchangeRate9
EDelegationToInactivePool10
EDeactivationOfInactivePool11
EIncompatibleStakedSui12
EWithdrawalInSameEpoch13
EPoolAlreadyActive14
EPoolPreactiveOrInactive15
EActivationOfInactivePool16
EDelegationOfZeroSui17
EStakedSuiBelowThreshold18
ECannotMintFungibleStakedSuiYet19
EInvariantFailure20

sui_system::sui_system​

Defined in crates/sui-framework/packages/sui-system/sources/sui_system.move.

ConstantAbort codeMessage
ENotSystemAddress0
EWrongInnerVersion1

sui_system::sui_system_state_inner​

Defined in crates/sui-framework/packages/sui-system/sources/sui_system_state_inner.move.

ConstantAbort codeMessage
ENotValidator0
ELimitExceeded1
ENotSystemAddress2
ECannotReportOneself3
EReportRecordNotFound4
EBpsTooLarge5
ESafeModeGasNotProcessed7
EAdvancedToWrongEpoch8
EXTRA_FIELD_EXECUTION_TIME_ESTIMATES_KEY0
EXTRA_FIELD_EXECUTION_TIME_ESTIMATES_CHUNK_COUNT_KEY1

sui_system::validator​

Defined in crates/sui-framework/packages/sui-system/sources/validator.move.

ConstantAbort codeMessage
EInvalidProofOfPossession0Invalid proof_of_possession field in ValidatorMetadata
EMetadataInvalidPubkey1Invalid pubkey_bytes field in ValidatorMetadata
EMetadataInvalidNetPubkey2Invalid network_pubkey_bytes field in ValidatorMetadata
EMetadataInvalidWorkerPubkey3Invalid worker_pubkey_bytes field in ValidatorMetadata
EMetadataInvalidNetAddr4Invalid net_address field in ValidatorMetadata
EMetadataInvalidP2pAddr5Invalid p2p_address field in ValidatorMetadata
EMetadataInvalidPrimaryAddr6Invalid primary_address field in ValidatorMetadata
EMetadataInvalidWorkerAddr7Invalid worker_address field in ValidatorMetadata
ECommissionRateTooHigh8Commission rate set by the validator is higher than the threshold
EValidatorMetadataExceedingLengthLimit9Validator Metadata is too long
ENotValidatorCandidate10Intended validator is not a candidate one.
EInvalidStakeAmount11Stake amount is invalid or wrong.
ECalledDuringNonGenesis12Function called during non-genesis times.
ENewCapNotCreatedByValidatorItself100New Capability is not created by the validator itself
EInvalidCap101Capability code is not valid
EGasPriceHigherThanThreshold102Validator trying to set gas price higher than threshold.
EInvalidProtocolPubKeyLength16Invalid protocol public key length.

sui_system::validator_set​

Defined in crates/sui-framework/packages/sui-system/sources/validator_set.move.

ConstantAbort codeMessage
ENonValidatorInReportRecords0
EInvalidStakeAdjustmentAmount1
EDuplicateValidator2
ENoPoolFound3
ENotAValidator4
EMinJoiningStakeNotReached5
EAlreadyValidatorCandidate6
EValidatorNotCandidate7
ENotValidatorCandidate8
EStakingBelowThreshold10
EValidatorAlreadyRemoved11
ENotAPendingValidator12
EValidatorSetEmpty13
EInvalidCap101
EInvalidValidatorSelector14
EAlreadyValidator15

sui_system::validator_wrapper​

Defined in crates/sui-framework/packages/sui-system/sources/validator_wrapper.move.

ConstantAbort codeMessage
EInvalidVersion0

sui_system::voting_power​

Defined in crates/sui-framework/packages/sui-system/sources/voting_power.move.

ConstantAbort codeMessage
ETotalPowerMismatch1
ERelativePowerMismatch2
EVotingPowerOverThreshold3
EInvalidVotingPower4