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.

FACT_NOT_REGISTERED = 5

Fact not registered in fact registry.

INSUFFICIENT_ONCHAIN_BALANCE = 6

Not enough onchain balance to complete deposit.

INVALID_BATCH_ID = 7

Invalid batch ID.

INVALID_CLAIM_HASH = 8

Invalid committee claim hash.

INVALID_COMMITTEE_MEMBER = 9

Invalid committee member key.

INVALID_CONTRACT_ADDRESS = 10

StarkEx contracts information missing or corrupt.

INVALID_CONTRACT_RESPONSE = 11

Invalid response from a contract (for example, Infura too many requests).

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_TRANSACTION = 24

Invalid transaction.

INVALID_TRANSACTION_ID = 25

Invalid transaction ID.

INVALID_VAULT = 26

Invalid vault.

MALFORMED_REQUEST = 27

Malformed request.

MIGRATED_PIPELINE_OBJECT_MISSING = 28

Pipeline object is missing because it was migrated from an older version object.

MISSING_FEE_OBJECT = 29

One of the fee objects is missing while the other exists.

ORDER_OVERDUE = 30

The order is expired.

OUT_OF_RANGE_AMOUNT = 32

Amount value is out of range.

OUT_OF_RANGE_BALANCE = 33

Vault balance is out of range.

OUT_OF_RANGE_BATCH_ID = 34

Batch ID value is out of range.

OUT_OF_RANGE_ETH_ADDRESS = 35

Ethereum address value is out of range.

OUT_OF_RANGE_EXPIRATION_TIMESTAMP = 36

Expiration timestamp value is out of range.

OUT_OF_RANGE_NONCE = 37

Nonce value is out of range.

OUT_OF_RANGE_ORACLE_PRICE_QUORUM = 38

Oracle price quorum value is out of range.

OUT_OF_RANGE_ORDER_ID = 39

Order ID value is out of range.

OUT_OF_RANGE_POSITIVE_AMOUNT = 31

Positive amount value is out of range.

OUT_OF_RANGE_PUBLIC_KEY = 40

Public key (Stark key) value is out of range.

OUT_OF_RANGE_SIGNATURE_SUBFIELD = 41

Signature subfield is out of range.

OUT_OF_RANGE_TOKEN_ID = 42

Token ID value is out of range.

OUT_OF_RANGE_VAULT_ID = 43

Vault ID value is out of range.

REPLACED_BEFORE = 44

Alternative transaction requested before for this transaction. Transaction is now valid.

REQUEST_FAILED = 45

Failed response for alternative transaction request.

SCHEMA_VALIDATION_ERROR = 46

Object schema validation failed.

TRANSACTION_CANCELLED = 47

Transaction is manually cancelled.

TRANSACTION_PENDING = 48

Transaction received successfully by the gateway.