1. 程式人生 > >比原鏈Bytom錯誤碼一覽

比原鏈Bytom錯誤碼一覽

0XX API錯誤

BTM000", "Bytom API Error"
非比原標準錯誤

BTM001", "Request timed out"
API請求超時

BTM002", "Invalid request body"
非法的API請求體

1XX為網路錯誤

BTM103", "A peer core is operating on a different blockchain network"
區塊鏈網路型別不匹配

2xx是簽名相關的錯誤

BTM200 :"Quorum must be greater than 1 and less than or equal to the length of xpubs“
需要簽名的個數超過實際需求籤名的個數

BTM201 :”Invalid xpub format"
簽名格式錯誤

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錯誤