# README

API Error code ranges

  • 999 - Unknown Errors
  • 10XXX - Transaction Errors
  • 20XXX - Commitment Errors
  • 30XXX - Batch Errors
  • 40XXX - Badger Errors
  • 50XXX - Proof Errors
  • 99XXX - Uncategorized Errors like NetworkInfo, BLS, UserStates etc.
  • -32XXX - JSON-RPC library errors

Commander API errors

Error codeMessage
999unknown error: COMMANDER_ERROR
10000transaction not found
10001DEPRECATED:transactions not found
10002some field is missing, verify the transfer/create2transfer object
10003invalid recipient, cannot send funds to yourself
10004nonce too low
10005DEPRECATED: nonce too high
10006not enough balance
10007amount must be greater than 0
10008fee too low
10009invalid signature
10010amount is not encodable as multi-precission decimal
10011fee is not encodable as multi-precission decimal
10012sender state ID does not exist
10013DEPRECATED:spoke ID must be greater than 0
10014cannot update mined transaction
10015transaction already exists
10016spoke with given ID does not exist
10017commander instance is not accepting transactions
20000commitment not found
30000batch not found
30001batches not found
40000an error occurred while saving data to the Badger database
40001an error occurred while iterating over Badger database
50000proof methods disabled
50001commitment inclusion proof could not be generated
50002public key inclusion proof could not be generated
50003user state inclusion proof could not be generated
50004mass migration commitment inclusion proof could not be generated
50005withdraw proof could not be calculated for a given batch
50006invalid batch type, only mass migration batches are supported
50007mass migration with given transaction hash was not found in a given commitment
50008commitment inclusion proof can only be generated for Transfer/Create2Transfer commitments
50009mass migration commitment inclusion proof cannot be generated for different type of commitments
99000an error occurred while fetching the account count
99001public key not found
99002user state not found
99003user states not found
99004an error occurred while fetching the domain for signing

JSON-RPC library errors

Error codeTypeExample messages
-32700Parse error"parse error"
-32600Invalid request"empty batch" or "invalid request"
-32601Method not found"the method foo_bar does not exist/is not available"
-32602Invalid params"invalid argument 0: error unmarshalling Uint256"
-32603Internal errorreserved error code (probably unused)
-32099 to -32000Internal errorreserved error code range (probably unused)

Read more about default errors in JSON-RPC 2.0 specification here.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author