diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index d258e6e..be02f92 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -2923,10 +2923,6 @@ "code": 24, "message": "Block not found" }, - "TXN_HASH_NOT_FOUND": { - "code": 25, - "message": "Transaction hash not found" - }, "INVALID_TXN_INDEX": { "code": 27, "message": "Invalid transaction index in a block" @@ -2935,6 +2931,10 @@ "code": 28, "message": "Class hash not found" }, + "TXN_HASH_NOT_FOUND": { + "code": 29, + "message": "Transaction hash not found" + }, "PAGE_SIZE_TOO_BIG": { "code": 31, "message": "Requested page size is too big" diff --git a/api/starknet_trace_api_openrpc.json b/api/starknet_trace_api_openrpc.json index 54fec69..e47a875 100644 --- a/api/starknet_trace_api_openrpc.json +++ b/api/starknet_trace_api_openrpc.json @@ -355,14 +355,6 @@ } } }, - "INVALID_BLOCK_HASH": { - "code": 24, - "message": "Invalid block hash" - }, - "INVALID_TXN_HASH": { - "code": 25, - "message": "Invalid transaction hash" - }, "CONTRACT_NOT_FOUND": { "code": 20, "message": "Contract not found" @@ -371,6 +363,14 @@ "code": 24, "message": "Block not found" }, + "INVALID_TXN_HASH": { + "code": 25, + "message": "Invalid transaction hash" + }, + "INVALID_BLOCK_HASH": { + "code": 26, + "message": "Invalid block hash" + }, "CONTRACT_ERROR": { "code": 40, "message": "Contract error" diff --git a/api/starknet_write_api.json b/api/starknet_write_api.json index 557eeb4..7ee44b2 100644 --- a/api/starknet_write_api.json +++ b/api/starknet_write_api.json @@ -149,11 +149,44 @@ "message": "Invalid contract class" }, "CLASS_HASH_NOT_FOUND": { - "$ref": "./api/starknet_api_openrpc.json#/components/errors/CLASS_HASH_NOT_FOUND" + "code": 28, + "message": "Class hash not found" }, "CLASS_ALREADY_DECLARED": { "code": 51, "message": "Class already declared" + }, + "INVALID_TRANSACTION_NONCE": { + "code": 52, + "message": "Invalid transaction nonce" + }, + "INSUFFICIENT_MAX_FEE": { + "code": 53, + "message": "Max fee is smaller than the validation's actual fee" + }, + "INSUFFICIENT_ACCOUNT_BALANCE": { + "code": 54, + "message": "Account balance is smaller than the transaction's max_fee" + }, + "VALIDATION_FAILURE": { + "code": 55, + "message": "Account validation failed" + }, + "COMPILATION_FAILED": { + "code": 56, + "message": "Compilation failed" + }, + "CONTRACT_BYTECODE_SIZE_TOO_LARGE": { + "code": 57, + "message": "Contract bytecode size it too large" + }, + "NON_ACCOUNT": { + "code": 58, + "message": "Sender address in not an account contract" + }, + "DUPLICATE_TX": { + "code": 59, + "message": "A transaction with the same hash already exists in the mempool" } } }