Error Codes
- class starkware.starkware_utils.error_handling.StarkErrorCode(value)
An enumeration.
- API_FUNCTION_TEMPORARILY_DISABLED = 0
Api function temporarily disabled.
- 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.
- CONFLICTING_ORDER_AMOUNTS = 4
Order amount exceeds capacity.
- CONNECTION_ERROR = 5
Connection error with the node (for example, Infura too many requests).
- FACT_NOT_REGISTERED = 6
Fact not registered in fact registry.
- INSUFFICIENT_ONCHAIN_BALANCE = 7
Not enough onchain balance to complete deposit.
- INVALID_BATCH_ID = 8
Invalid batch ID.
- INVALID_CLAIM_HASH = 9
Invalid committee claim hash.
- INVALID_COMMITTEE_MEMBER = 10
Invalid committee member key.
- INVALID_CONTRACT_ADDRESS = 11
StarkEx contracts information missing or corrupt.
- INVALID_DEPLOYMENT_INFO = 12
StarkEx deployment information missing or corrupt.
- INVALID_ETH_ADDRESS = 13
Invalid eth address.
- INVALID_FACT = 14
Fact is not 32 bytes length.
- INVALID_FEE_TAKEN = 15
Fee taken is too high.
- INVALID_ORDER_ID = 16
Invalid order ID.
- INVALID_ORDER_TYPE = 17
Invalid order type.
- INVALID_REQUEST = 18
Invalid HTTP request.
- INVALID_REQUEST_PARAMETERS = 19
Invalid HTTP request parameters.
- INVALID_SETTLEMENT_INFO = 20
Settlement trade amounts mismatch.
- INVALID_SETTLEMENT_RATIO = 21
Settlement trade ratio not satisfied.
- INVALID_SETTLEMENT_TOKENS = 22
Mismatching tokens for orders in settlement.
- INVALID_SIGNATURE = 23
Invalid order signature.
- INVALID_TOKEN_TYPE = 24
Invalid token type.
- INVALID_TRANSACTION = 25
Invalid transaction.
- INVALID_TRANSACTION_ID = 26
Invalid transaction ID.
- INVALID_VAULT = 27
Invalid vault.
- MALFORMED_REQUEST = 28
Malformed request.
- MIGRATED_PIPELINE_OBJECT_MISSING = 29
Pipeline object is missing because it was migrated from an older version object.
- MISSING_BLOCKCHAIN_ID = 30
The chain ID does not exist in storage.
- MISSING_FEE_OBJECT = 31
One of the fee objects is missing while the other exists.
- ORDER_OVERDUE = 32
The order is expired.
- OUT_OF_RANGE_AMOUNT = 34
Amount value is out of range.
- OUT_OF_RANGE_BALANCE = 35
Vault balance is out of range.
- OUT_OF_RANGE_BATCH_ID = 36
Batch ID value is out of range.
- OUT_OF_RANGE_EXPIRATION_TIMESTAMP = 37
Expiration timestamp value is out of range.
- OUT_OF_RANGE_NONCE = 38
Nonce value is out of range.
- OUT_OF_RANGE_ORACLE_PRICE_QUORUM = 39
Oracle price quorum value is out of range.
- OUT_OF_RANGE_ORDER_ID = 40
Order ID value is out of range.
- OUT_OF_RANGE_POSITIVE_AMOUNT = 33
Positive amount value is out of range.
- OUT_OF_RANGE_PUBLIC_KEY = 41
Public key (Stark key) value is out of range.
- OUT_OF_RANGE_SIGNATURE_SUBFIELD = 42
Signature subfield is out of range.
- OUT_OF_RANGE_TOKEN_ID = 43
Token ID value is out of range.
- OUT_OF_RANGE_VAULT_ID = 44
Vault ID value is out of range.
- REPLACED_BEFORE = 45
Alternative transaction requested before for this transaction. Transaction is now valid.
- REQUEST_FAILED = 46
Failed response for alternative transaction request.
- SCHEMA_VALIDATION_ERROR = 47
Object schema validation failed.
- TRANSACTION_PENDING = 48
Transaction received successfully by the gateway.