0XX API錯誤網絡
BTM000", "Bytom API Error" 非比原標準錯誤less
BTM001", "Request timed out" API請求超時區塊鏈
BTM002", "Invalid request body" 非法的API請求體ui
1XX爲網絡錯誤code
BTM103", "A peer core is operating on a different blockchain network" 區塊鏈網絡類型不匹配orm
2xx是簽名相關的錯誤token
BTM200 :"Quorum must be greater than 1 and less than or equal to the length of xpubs「
須要簽名的個數超過實際需求籤名的個數ci
BTM201 :」Invalid xpub format" 簽名格式錯誤input
BTM202 :"At least one xpub is required" 缺乏主公鑰虛擬機
BTM204 : "Root XPubs cannot contain the same key more than once" 主公鑰重複
7XX爲交易相關的錯誤
72X - 73X 構建交易錯誤
BTM700 : "Funds of account are insufficient" 資產餘額不足
BTM701 : "Available funds of account are immature" coinbase交易未成熟,幣不可花費
BTM702 : "Available UTXOs of account have been reserved 資產被鎖定五分鐘,不可花費(通常密碼輸入錯誤會產生)
BTM703 : "Not found UTXO with given hash" UTXO不屬於當前錢包
BTM704 : "Invalid action type" action類型不存在
BTM705 : "Invalid action object" action輸入內容錯誤
BTM706 : "Invalid action construction" action結構錯誤(只有輸入或者只有輸出)
BTM707 : "One or more fields are missing" action輸入內容缺失
BTM708 : "Invalid asset amount" 資產數量格式錯誤(超過最大數量)
BTM709 : "Not found account" 帳戶不存在
BTM710 : "Not found asset" 資產不存在
73X - 75X 驗證交易錯誤
BTM730 :"Invalid transaction version" 交易版本不對
BTM731 :"Invalid transaction size" 交易大小不能爲0
BTM732 :"Invalid transaction time range" 超出交易時間範圍,用於將停留時間太久的未確認交易做廢
BTM733 : "Not standard transaction" 不是標準的交易,使用合約地址接受BTM時報錯
BTM734 : "Invalid coinbase transaction" 非法coinbase交易
BTM735 : "Invalid coinbase assetID" 非法的coinbase資產ID
BTM736 : "Invalid coinbase arbitrary size" coinbase尺寸過大,附加數據超過必定限制
BTM737 : "No results in the transaction" 交易action hash缺失
BTM738 : "Mismatched assetID" 不匹配的資產ID,發佈資產時資產ID錯誤
BTM739 : "Mismatched value source/dest position" 不匹配的action位置
BTM740 : "Mismatched reference" 不匹配的引用
BTM741 : "Mismatched value" 不匹配的值,action的資產值不匹配
BTM742 : "Missing required field" 不匹配的字段,action輸入的資產值類型不匹配
BTM743 : "No source for value" 輸入源不存在
BTM744 : "Arithmetic overflow/underflow" 計算溢出,資產計算值超出限制
BTM745 : "Invalid source or destination position" action位置不匹配
BTM746 : "Unbalanced asset amount between input and output" 輸入輸出非BTM資產總量不平衡
BTM747 : "Gas credit has been spent" UTXO數量超過上限(當前爲21個)
BTM748 : "Gas usage calculate got a math error" Gas運算錯誤
76X - 78X 虛擬機錯誤
BTM760 :"Alt stack underflow" 子虛擬機棧溢出
BTM761 : "Bad value" 非法棧數據
BTM762 : "Wrong context" context值錯誤,context爲虛擬機執行上下文
BTM763 : "Data stack underflow" 虛擬機數據溢出
BTM764 : "Disallowed opcode" 虛擬機指令不存在
BTM765 : "Division by zero" 除零錯誤
BTM766 : "False result for executing VM" 虛擬機執行結果爲Fasle
BTM767 : "Program size exceeds max int32" 合約的字節大小超過int32上限
BTM768 : "Arithmetic range error" 計算出錯
BTM769 : "RETURN executed" 執行opfail指令返回的結果
BTM770 : "Run limit exceeded because the BTM Fee is insufficient" Gas費用不足,引發合約終止
BTM771 : "Unexpected end of program" 合約程序參數輸入錯誤
BTM772 : "Unrecognized token" 不識別的虛擬機指令數據
BTM773 : "Unexpected error" 異常錯誤
BTM774 : "Unsupported VM because the version of VM is mismatched" 虛擬機版本不匹配
BTM775 : "VERIFY failed" verify指令執行失敗
8XX 爲HSM相關錯誤
BTM800 :"Key Alias already exists" 密鑰別名重複
BTM801 :"Invalid after
in query" 此錯誤已廢棄
BTM802 : "Key not found or wrong password" 密鑰不存在或者密碼錯誤
BTM803 : "Requested key aliases exceeds limit" 此錯誤已廢棄
BTM804 :"Could not decrypt key with given passphrase" 解密流程失敗
BTM860", "Request could not be authenticated" access token錯誤