Error Codes
- class starkware.starkware_utils.error_handling.StarkErrorCode(value)
An enumeration.
- API_FUNCTION_TEMPORARILY_DISABLED = 0
Api function temporarily disabled.
- BATCH_ABORTED = 4
Bach was aborted.
- BATCH_CREATION_FAILURE = 1
Batch creation failure; batch currently cannot be created.
- BATCH_FULL = 2
Batch is full; there will be no additional attempt to insert any transactions.
- BATCH_NOT_READY = 3
Batch not ready to be created; does not indicate an error.
- CONNECTION_ERROR = 5
Connection error with the node (for example, Infura too many requests).
- DUPLICATE_ORDER = 6
Duplicate order.
- EMPTY_TRANSACTIONS_LIST_IN_MULTI_TRANSACTION = 8
Multi-Transaction with zero transactions.
- FACT_NOT_REGISTERED = 7
Fact not registered in fact registry.
- INSUFFICIENT_ONCHAIN_BALANCE = 9
Not enough onchain balance to complete deposit.
- INVALID_BATCH_ID = 10
Invalid batch ID.
- INVALID_BATCH_MIGRATION_INFO = 18
Batch migration information is invalid.
- INVALID_CLAIM_HASH = 11
Invalid committee claim hash.
- INVALID_COMMITTEE_MEMBER = 12
Invalid committee member key.
- INVALID_CONTRACT_ADDRESS = 13
StarkEx contracts information missing or corrupt.
- INVALID_DEPLOYMENT_INFO = 14
StarkEx deployment information missing or corrupt.
- INVALID_ETH_ADDRESS = 15
Invalid eth address.
- INVALID_FACT = 16
Fact is not 32 bytes length.
- INVALID_FEE_TAKEN = 17
Fee taken is too high.
- INVALID_MULTI_TRANSACTION = 19
Invalid multi transaction.
- INVALID_ORDER_ID = 20
Invalid order ID.
- INVALID_ORDER_TYPE = 21
Invalid order type.
- INVALID_REQUEST = 22
Invalid HTTP request.
- INVALID_REQUEST_PARAMETERS = 23
Invalid HTTP request parameters.
- INVALID_SETTLEMENT_INFO = 24
Settlement trade amounts mismatch.
- INVALID_SETTLEMENT_RATIO = 25
Settlement trade ratio not satisfied.
- INVALID_SETTLEMENT_TOKENS = 26
Mismatching tokens for orders in settlement.
- INVALID_SIGNATURE = 27
Invalid order signature.
- INVALID_TOKEN_TYPE = 28
Invalid token type.
- INVALID_TRANSACTION = 29
Invalid transaction.
- INVALID_TRANSACTION_ID = 30
Invalid transaction ID.
- INVALID_VAULT = 31
Invalid vault.
- MALFORMED_REQUEST = 32
Malformed request.
- MIGRATED_PIPELINE_OBJECT_MISSING = 33
Pipeline object is missing because it was migrated from an older version object.
- MISSING_BLOCKCHAIN_ID = 34
The chain ID does not exist in storage.
- MISSING_ENDPOINT_CONFIGURATION = 35
The required endpoint configuration is not available in the DB.
- MISSING_FEE_OBJECT = 36
One of the fee objects is missing while the other exists.
- NESTED_MULTI_TRANSACTION = 37
Nested multi-transaction (multi-transaction inside multi-transaction)
- ORDER_OVERDUE = 38
The order is expired.
- OUT_OF_RANGE_AMOUNT = 40
Amount value is out of range.
- OUT_OF_RANGE_BALANCE = 41
Vault balance is out of range.
- OUT_OF_RANGE_BATCH_ID = 42
Batch ID value is out of range.
- OUT_OF_RANGE_ETH_ADDRESS = 43
Ethereum address value is out of range.
- OUT_OF_RANGE_EXPIRATION_TIMESTAMP = 45
Expiration timestamp value is out of range.
- OUT_OF_RANGE_FIELD_ELEMENT = 44
Field element value is out of range.
- OUT_OF_RANGE_NONCE = 46
Nonce value is out of range.
- OUT_OF_RANGE_ORACLE_PRICE_QUORUM = 47
Oracle price quorum value is out of range.
- OUT_OF_RANGE_ORDER_ID = 48
Order ID value is out of range.
- OUT_OF_RANGE_POSITIVE_AMOUNT = 39
Positive amount value is out of range.
- OUT_OF_RANGE_PUBLIC_KEY = 49
Public key (Stark key) value is out of range.
- OUT_OF_RANGE_SIGNATURE_SUBFIELD = 50
Signature subfield is out of range.
- OUT_OF_RANGE_TOKEN_ID = 51
Token ID value is out of range.
- OUT_OF_RANGE_VAULT_ID = 52
Vault ID value is out of range.
- REPLACED_BEFORE = 53
Alternative transaction requested before for this transaction. Transaction is now valid.
- REQUEST_FAILED = 54
Failed response for alternative transaction request.
- SCHEMA_VALIDATION_ERROR = 55
Object schema validation failed.
- TRANSACTION_CANCELLED = 56
Transaction is manually cancelled.
- TRANSACTION_PENDING = 57
Transaction received successfully by the gateway.