Show / Hide Table of Contents

Enum ResponseCode

Pre-Check and Receipt Response Codes - 1to1 mapping with protobuf ResponseCodeEnum

Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public enum ResponseCode

Fields

Name Description
AccountAmountTransfersOnlyAllowedForFungibleCommon

An AccountAmount token transfers list referenced a token type other than FUNGIBLE_COMMON

AccountDeleted

the account has been marked as deleted

AccountDoesNotOwnWipedNft

An account did not own the NFT to be wiped

AccountExpiredAndPendingRemoval

The transaction references an account which has passed its expiration without renewal funds available, and currently remains in the ledger only because of the grace period given to expired entities

AccountFrozenForToken

Account is frozen and cannot transact with the token

AccountIdDoesNotExist

the account id passed has not yet been created.

AccountIsNotGenesisAccount

Special Account Operations should be performed by only Genesis account, return this code if it is not Genesis Account

AccountIsTreasury

An attempted operation is invalid because the account is a treasury

AccountKycNotGrantedForToken

KYC must be granted and account does not have KYC granted

AccountRepeatedInAccountAmounts

same accounts repeated in the transfer account list

AccountStillOwnsNfts

An account cannot be dissociated from a unique token if it owns NFTs for the token

AccountUpdateFailed

The update of the account failed

AuthorizationFailed

Violating one of these rules: 1) treasury account can update all entities below 0.0.1000, 2) account 0.0.50 can update all entities from 0.0.51 - 0.0.80, 3) Network Function Master Account A/c 0.0.50 - Update all Network Function accounts & perform all the Network Functions listed below, 4) Network Function Accounts: i) A/c 0.0.55 - Update Address Book files (0.0.101/102), ii) A/c 0.0.56 - Update Fee schedule (0.0.111), iii) A/c 0.0.57 - Update Exchange Rate (0.0.112).

AutorenewAccountNotAllowed

An adminKey was not specified on the topic, so there must not be an autoRenewAccount.

AutorenewDurationNotInRange

the duration is not a subset of [MINIMUM_AUTORENEW_DURATION,MAXIMUM_AUTORENEW_DURATION]

BadEncoding

Unsupported algorithm/encoding used for keys in the transaction

BatchSizeLimitExceeded

Repeated operations count exceeds the limit

BucketCapacityOverflow

The capacity needed to satisfy all opsPerSec groups in a bucket overflowed a signed 8-byte integral type

BucketHasNoThrottleGroups

A bucket was defined without any throttle groups

Busy

If API is throttled out

CannotWipeTokenTreasuryAccount

The target of a wipe operation was the token treasury account

ContractBytecodeEmpty

Bytecode for smart contract is of length zero

ContractDeleted

Contract is marked as deleted

ContractExecutionException

For any contract execution related error not handled by specific error codes listed above.

ContractFileEmpty

File to create a smart contract was of length zero

ContractNegativeGas

Negative gas was offered in smart contract call

ContractNegativeValue

Negative value / initial balance was specified in a smart contract call / create

ContractRevertExecuted

Contract REVERT OPCODE executed

ContractSizeLimitExceeded

contract byte code size is over the limit

ContractUpdateFailed

update of the contract failed

CurrentTreasuryStillOwnsNfts

The treasury for a unique token cannot be changed until it owns no NFTs

CustomFeeChargingExceededMaxAccountAmounts

More than 20 balance adjustments were to satisfy a CryptoTransfer and its implied custom fee payments

CustomFeeChargingExceededMaxRecursionDepth

The reference chain of custom fees for a transferred token exceeded the maximum length of 2

CustomFeeDenominationMustBeFungibleCommon

Only tokens of type FUNGIBLE_COMMON can be used to as fee schedule denominations

CustomFeeMustBePositive

Only positive fees may be assessed at this time

CustomFeeNotFullySpecified

A custom fee schedule entry did not specify either a fixed or fractional fee

CustomFeeOutsideNumericRange

A fractional custom fee exceeded the range of a 64-bit signed integer

CustomFeesListTooLong

More than 10 custom fees were specified

CustomFractionalFeeOnlyAllowedForFungibleCommon

Only tokens of type FUNGIBLE_COMMON can have fractional fees

CustomRoyaltyFeeOnlyAllowedForNonFungibleUnique

Only tokens of type NON_FUNGIBLE_UNIQUE can have royalty fees

CustomScheduleAlreadyHasNoFees

A fee schedule update tried to clear the custom fees from a token whose fee schedule was already empty

DuplicateTransaction

This transaction ID is a duplicate of one that was submitted to this node or reached consensus in the last 180 seconds (receipt period)

EmptyLiveHash

the livehash data is missing

EmptyLiveHashBody

the livehash body is empty

EmptyLiveHashKeys

the keys for a livehash are missing

EmptyLiveHashQuery

the crypto livehash query is empty

EmptyQueryBody

the query body is empty

EmptyTokenTransferAccountAmounts

TokenTransfersTransactionBody has a TokenTransferList with no AccountAmounts

EmptyTokenTransferBody

TokenTransfersTransactionBody has no TokenTransferList

EmptyTransactionBody

Transaction body provided is empty

EntityNotAllowedToDelete

Entities with Entity ID below 1000 are not allowed to be deleted

ErrorDecodingBytestring

Decoding the smart contract binary to a byte array failed. Check that the input is a valid hex string.

ExchangeRateChangeLimitExceeded

The change on Exchange Rate exceeds Exchange_Rate_Allowed_Percentage

ExistingAutomaticAssociationsExceedGivenLimit

Already existing automatic associations are more than the new maximum automatic associations.

ExpirationReductionNotAllowed

The expiration date/time on a smart contract may not be reduced

FailBalance

There was a system error while performing balance checks, reserved for future.

FailFee

There was a system error while performing fee calculation, reserved for future.

FailInvalid

There was a system error and the transaction failed because of invalid request parameters.

FeeScheduleFilePartUploaded

Fee Schedule Proto File Part uploaded

FileContentEmpty

The contents of file are provided as empty.

FileDeleted

the file has been marked as deleted

FileSystemException

Unexpected exception thrown by file system functions

FileUploadedProtoInvalid

Fee Schedule Proto uploaded but not valid (append or update is required)

FileUploadedProtoNotSavedToDisk

Fee Schedule Proto uploaded but not valid (append or update is required)

FractionalFeeMaxAmountLessThanMinAmount

Each fractional custom fee must have its maximum_amount, if specified, at least its minimum_amount

FractionDividesByZero

A custom fractional fee set a denominator of zero

FreezeTransactionBodyNotFound

FreezeTransactionBody does not exist

IdenticalScheduleAlreadyCreated

A schedule already exists with the same identifying fields of an attempted ScheduleCreate (that is, all fields other than scheduledPayerAccountID)

InsufficientAccountBalance

When the account balance is not sufficient for the transfer

InsufficientGas

Not enough gas was supplied to execute transaction

InsufficientLocalCallGas

Payment tendered for contract local call cannot cover both the fee and the gas

InsufficientPayerBalance

The payer account has insufficient cryptocurrency to pay the transaction fee

InsufficientPayerBalanceForCustomFee

The transaction payer could not afford a custom fee

InsufficientSenderAccountBalanceForCustomFee

The sender account in the token transfer transaction could not afford a custom fee

InsufficientTokenBalance

Token balance is not sufficient for the transaction

InsufficientTxFee

The fee provided in the transaction is insufficient for this type of transaction

InvalidAccountAmounts

The crypto transfer credit and debit do not sum equal to 0

InvalidAccountId

The account id is invalid or does not exist

InvalidAdminKey

A provided admin key was invalid.

InvalidAutorenewAccount

The autoRenewAccount specified is not a valid, active account.

InvalidChunkNumber

chunk number must be from 1 to total (chunks) inclusive.

InvalidChunkTransactionId

For every chunk, the payer account that is part of initialTransactionID must match the Payer Account of this transaction. The entire initialTransactionID should match the transactionID of the first chunk, but this is not checked or enforced by Hedera except when the chunk number is 1.

InvalidContractId

The contract id is invalid or does not exist

InvalidCustomFeeCollector

Any of the feeCollector accounts for customFees is invalid

InvalidCustomFeeScheduleKey

The provided custom fee schedule key was invalid

InvalidExchangeRateFile

Failed to update exchange rate file

InvalidExpirationTime

Expiration time provided in the transaction was invalid.

InvalidFeeFile

Failed to update fee file

InvalidFeeSubmitted

Invalid fee submitted

InvalidFileId

The file id is invalid or does not exist

InvalidFileWacl

File WACL keys are invalid

InvalidFreezeKey

The provided freeze key was invalid.

InvalidFreezeTransactionBody

FreezeTransactionBody is invalid

InvalidInitialBalance

Attempt to set negative initial balance

InvalidKeyEncoding

Provided key encoding was not supported by the system

InvalidKycKey

The provided KYC key was invalid.

InvalidLiveHashSize

the livehash data is not the output of a SHA-384 digest

InvalidNftId

Invalid nft id

InvalidNodeAccount

Node Account provided does not match the node account of the node the transaction was submitted to.

InvalidPayerAccountId

the response code when a smart contract id is passed for a crypto API request

InvalidPayerSignature

Payer signature is invalid

InvalidQueryHeader

the query header is invalid

InvalidQueryRange

The range of data to be gathered is out of the set boundaries

InvalidReceiveRecordThreshold

[Deprecated]. attempt to set negative receive record threshold

InvalidReceivingNodeAccount

In Query validation, account with +ve(amount) value should be Receiving node account, the receiver account should be only one account in the list

InvalidRenewalPeriod

auto renewal period is not a positive number of seconds

InvalidScheduleAccountId

The Schedule Create Transaction TransactionID account does not exist

InvalidScheduleId

The Scheduled entity does not exist; or has now expired, been deleted, or been executed

InvalidSchedulePayerId

The provided Scheduled Payer does not exist

InvalidSendRecordThreshold

[Deprecated]. attempt to set negative send record threshold

InvalidSignature

The transaction signature is not valid

InvalidSignatureCountMismatchingKey

the number of key (KeyList, or ThresholdKey) does not match that of signature (SignatureList, or ThresholdKeySignature). e.g. if a keyList has 3 base keys, then the corresponding signatureList should also have 3 base signatures.

InvalidSignatureTypeMismatchingKey

the type of key (base ed25519 key, KeyList, or ThresholdKey) does not match the type of signature (base ed25519 signature, SignatureList, or ThresholdKeySignature)

InvalidSolidityAddress

During an update transaction when the system is not able to find the Users Solidity address

InvalidSolidityId

The solidity id is invalid or entity with this solidity id does not exist

InvalidSubmitKey

A provided submit key was invalid.

InvalidSupplyKey

The provided supply key was invalid.

InvalidThrottleDefinitions

The new throttle definitions system file were invalid, and no more specific error could be divined

InvalidTokenBurnAmount

The requested token burn amount would cause an invalid total supply

InvalidTokenBurnMetadata

The requested token burn metadata was invalid

InvalidTokenDecimals

Invalid token decimals

InvalidTokenId

The token is invalid or does not exist

InvalidTokenIdInCustomFees

Any of the token Ids in customFees is invalid

InvalidTokenInitialSupply

Invalid token initial supply

InvalidTokenMaxSupply

Invalid token max supply

InvalidTokenMintAmount

The requested token mint amount would cause an invalid total supply

InvalidTokenMintMetadata

The requested token mint metadata was invalid

InvalidTokenNftSerialNumber

Invalid token nft serial number

InvalidTokenSymbol

Token Symbol is not UTF-8 capitalized alphabetical string

InvalidTopicId

The Topic ID specified is not in the system.

InvalidTopicMessage

A ConsensusService message is empty.

InvalidTransaction

For any error not handled by specific error codes listed below.

InvalidTransactionBody

Invalid transaction body provided

InvalidTransactionDuration

valid transaction duration is a positive non zero number that does not exceed 120 seconds

InvalidTransactionId

Transaction id is not valid

InvalidTransactionStart

Transaction start time is greater than current consensus time

InvalidTreasuryAccountForToken

Treasury Account does not exist or is deleted

InvalidWipeKey

The provided wipe key was invalid.

InvalidWipingAmount

The provided wipe amount must not be negative, zero or bigger than the token holder balance

InvalidZeroByteInString

A string field in the transaction has a UTF-8 encoding with the prohibited zero byte

KeyNotProvided

The keys were not provided in the request.

KeyPrefixMismatch

one public key matches more than one prefixes on the signature map

KeyRequired

Key not provided in the transaction body

LiveHashAlreadyExists

the livehash already exists for a given account

LiveHashNotFound

the livehash is not present

LocalCallModificationException

local execution (query) is requested for a function which changes state

MaxContractStorageExceeded

Contract permanent storage exceeded the currently allowable limit

MaxFileSizeExceeded

File size exceeded the currently allowable limit

MaxGasLimitExceeded

Gas exceeded currently allowable gas limit per transaction

MaxNftsInPriceRegimeHaveBeenMinted

All the NFTs allowed in the current price regime have already been minted

MemoTooLong

Transaction memo size exceeded 100 bytes

MessageSizeTooLarge

ConsensusSubmitMessage request's message size is larger than allowed.

MetadataTooLong

Nft metadata is too long

MissingQueryHeader

Header is missing in Query request

MissingTokenName

Token Name is not provided

MissingTokenSymbol

A token symbol was not provided

ModifyingImmutableContract

attempting to modify (update or delete a immutable smart contract, i.e. one created without a admin key)

NodeCapacityNotSufficientForOperation

Given the network size in the address book, the node-level capacity for an operation would never be enough to accept a single request; usually means a bucket burstPeriod should be increased

NoNewValidSignatures

The provided sig map did not contain any new valid signatures from required signers of the scheduled transaction

NoRemainingAutomaticAssociations

The account has reached the limit on the automatic associations count.

NotSpecialAccount

The payer account is not a special account(account 0.0.55)

NotSupported

The API is not currently supported

NoWaclKey

WriteAccess Control Keys are not provided for the file

NullSolidityAddress

null solidity address

ObtainerDoesNotExist

transferAccountId or transferContractId specified for contract delete does not exist

ObtainerRequired

when deleting smart contract that has crypto balance either transfer account or transfer smart contract is required

ObtainerSameContractId

when deleting smart contract that has crypto balance you can not use the same contract id as transferContractId as the one being deleted

Ok

The transaction passed the precheck validations.

OperationRepeatedInBucketGroups

An operation was assigned to more than one throttle group in a given bucket

PayerAccountDeleted

The payer account has been marked as deleted

PayerAccountNotFound

Payer account does not exist.

PayerAccountUnauthorized

The fee payer account doesn't have permission to submit such Transaction

PlatformNotActive

the platform node is either disconnected or lagging behind.

PlatformTransactionNotCreated

transaction not created by platform due to large backlog

ReceiptNotFound

Receipt for given transaction id does not exist

ReceiverSigRequired

When a valid signature is not provided for operations on account with receiverSigRequired=true

RecordNotFound

Record for given transaction id does not exist

RequestedNumAutomaticAssociationsExceedsAssociationLimit

Cannot set the number of automatic associations for an account more than the maximum allowed token associations <tt>tokens.maxPerAccount</tt>

ResultSizeLimitExceeded

Smart contract result size greater than specified maxResultSize

RoyaltyFractionCannotExceedOne

A royalty cannot exceed the total fungible value exchanged for an NFT

RpcError

A RPC Error occurred preventing the transaction from being submitted to the network.

ScheduleAlreadyDeleted

A schedule being signed or deleted has already been deleted

ScheduleAlreadyExecuted

A schedule being signed or deleted has already been executed

ScheduledTransactionNotInWhitelist

Only whitelisted transaction types may be scheduled

ScheduleIsImmutable

The Scheduled entity cannot be modified. Admin key not set

SenderDoesNotOwnNftSerialNo

The transaction attempted to move an NFT serial number from an account other than its owner

SerializationFailed

Serialization failure

SerialNumberLimitReached

Currently no more than 4,294,967,295 NFTs may be minted for a given unique token type

SettingNegativeAccountBalance

attempting to set negative balance value for crypto account

SomeSignaturesWereInvalid

At least one of the signatures in the provided sig map did not represent a valid signature for any required signer

Success

The transaction succeeded

SuccessButMissingExpectedOperation

The throttle definitions file was updated, but some supported operations were not assigned a bucket

ThrottleGroupHasZeroOpsPerSec

A throttle group was granted zero opsPerSec

TokenAlreadyAssociatedToAccount

An <tt>associateToken</tt> operation specified a token already associated to the account

TokenHasNoFeeScheduleKey

Fee schedule key is not set on token

TokenHasNoFreezeKey

Freeze key is not set on token

TokenHasNoKycKey

KYC key is not set on token

TokenHasNoSupplyKey

Supply key is not set on token

TokenHasNoWipeKey

Wipe key is not set on token

TokenIdRepeatedInTokenList

Same TokenIDs present in the token list

TokenIsImmutable

Token does not have Admin key set, thus update/delete transactions cannot be performed

TokenMaxSupplyReached

A token cannot have more units minted due to its configured supply ceiling

TokenNameTooLong

Token Name is too long

TokenNotAssociatedToAccount

A required token-account relationship is missing

TokenNotAssociatedToFeeCollector

Any of the token Ids in customFees are not associated to feeCollector

TokensPerAccountLimitExceeded

An involved account already has more than <tt>tokens.maxPerAccount</tt> associations with non-deleted tokens.

TokenSymbolTooLong

The provided token symbol was too long

TokenTransferListSizeLimitExceeded

Exceeded the number of token transfers (both from and to) allowed for token transfer list

TokenWasDeleted

Token transactions cannot be executed on deleted token

TopicExpired

The topic has expired, was not automatically renewed, and is in a 7 day grace period before the topic will be deleted unrecoverably. This error response code will not be returned until autoRenew functionality is supported by HAPI.

TotalLedgerBalanceInvalid
TransactionExpired

Pre-Check error when TransactionValidStart + transactionValidDuration is less than current consensus time.

TransactionIdFieldNotAllowed

The scheduled field in the TransactionID may not be set to true

TransactionOversize

The size of the Transaction is greater than transactionMaxBytes

TransactionRequiresZeroTokenBalances

An attempted operation is invalid until all token balances for the target account are zero

TransactionTooManyLayers

The Transaction has more than 50 levels

TransferAccountSameAsDeleteAccount

Transfer Account should not be same as Account to be deleted

TransferListSizeLimitExceeded

Exceeded the number of accounts (both from and to) allowed for crypto transfer list

TransfersNotZeroSumForToken

Amounts in transfer list are not net zero

TreasuryMustOwnBurnedNft

A NFT can only be burned when owned by the unique token's treasury

Unauthorized

An attempted operation was not authorized (ie - a deleteTopic for a topic with no adminKey).

Unknown

The responding node has submitted the transaction to the network. Its final status is still unknown.

UnparseableThrottleDefinitions

The new contents for the throttle definitions system file were not valid protobuf

UnresolvableRequiredSigners

The required signers for a scheduled transaction cannot be resolved, for example because they do not exist or have been deleted

  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph