BTM000", “Bytom API Error”3 r' |' O( T7 C& Z6 A" c! K7 t
非比原标准错误% A4 R" J( j% m: |4 T9 o; U( K0 I6 w
BTM001", “Request timed out”
API请求超时& ~) v$ m2 Q% u; F) r5 ~" V5 s8 D
BTM002", “Invalid request body”1 J2 D% f7 d/ B( U' h
非法的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“
需要签名的个数超过实际需求签名的个数0 G6 [' X# C! Y
BTM201 :”Invalid xpub format"
签名格式错误5 K' a8 i6 U" @) _5 P9 s7 Z
BTM202 :“At least one xpub is required”
缺少主公钥- u5 X$ E; V* d( m0 j: r( V
BTM204 : “Root XPubs cannot contain the same key more than once”- d9 |+ X9 p( d1 W) f6 ?( \5 Y
主公钥重复
7XX为交易相关的错误4 T: T! A" G h6 e) H' C, @
72X - 73X 构建交易错误
BTM700 : “Funds of account are insufficient”) t% f/ u. ]$ ]
资产余额不足# |6 F) x% d; r
BTM701 : “Available funds of account are immature”
coinbase交易未成熟,币不可花费
BTM702 : "Available UTXOs of account have been reserved
资产被锁定五分钟,不可花费(一般密码输入错误会产生)
BTM703 : “Not found UTXO with given hash”
UTXO不属于当前钱包( m. `0 S2 u8 P( V1 r* L1 f- G
BTM704 : “Invalid action type”
action类型不存在
BTM705 : “Invalid action object”
action输入内容错误
BTM706 : “Invalid action construction”& j3 u/ U# \6 T) z- S1 v6 w
action结构错误(只有输入或者只有输出); c4 A$ K( P4 d4 Q4 G
BTM707 : “One or more fields are missing”% @4 g8 B$ R' E& `- S$ A% x
action输入内容缺失
BTM708 : “Invalid asset amount”8 S/ ^; v8 @' T8 f
资产数量格式错误(超过最大数量)
BTM709 : “Not found account”
账户不存在1 u6 |' O+ w9 W7 j4 O
BTM710 : “Not found asset”( L- Z8 v# a5 i9 {) }
资产不存在* f6 l, ]0 `" ^
73X - 75X 验证交易错误3 o3 c: W& g' [) }" W5 a( Z4 o5 ?
BTM730 :“Invalid transaction version”
交易版本不对, w, d. | E$ q5 ]
BTM731 :“Invalid transaction size”& e. i1 u7 x. p
交易大小不能为0
BTM732 :“Invalid transaction time range”* |/ z) x1 A: @5 v# T" x! x7 C. M
超出交易时间范围,用于将停留时间过久的未确认交易作废
BTM733 : “Not standard transaction”1 m6 J6 B& _1 d( F
不是标准的交易,使用合约地址接受BTM时报错
BTM734 : “Invalid coinbase transaction”
非法coinbase交易
BTM735 : “Invalid coinbase assetID”8 J& n' Q' I# s4 [
非法的coinbase资产ID A. m' P! i- x/ ?
BTM736 : “Invalid coinbase arbitrary size”
coinbase尺寸过大,附加数据超过一定限制 v! k6 P" y2 n# Q7 Y
BTM737 : “No results in the transaction”* f% f9 A$ t! o9 E7 i
交易action hash缺失' @ y3 S" b& ]) A% V
BTM738 : “Mismatched assetID”
不匹配的资产ID,发布资产时资产ID错误% x9 P+ }5 x% n: R
BTM739 : “Mismatched value source/dest position”
不匹配的action位置
BTM740 : “Mismatched reference”
不匹配的引用
BTM741 : “Mismatched value”
不匹配的值,action的资产值不匹配6 r) Y1 Y% i" S; |) b4 u; J
BTM742 : “Missing required field”1 G( @) d8 B, w3 ?" ^& d8 K
不匹配的字段,action输入的资产值类型不匹配
BTM743 : “No source for value”# Q, _% `) Y3 w+ }2 p( J
输入源不存在* s0 R5 M( W7 {1 h& \( c
BTM744 : “Arithmetic overflow/underflow”6 ?' s' n: A1 u. y k9 U0 \7 o; d
计算溢出,资产计算值超出限制
BTM745 : “Invalid source or destination position”+ o# G- N+ Q @+ ?+ A* h6 q
action位置不匹配4 Q7 l2 Y p/ R+ f1 |" P
BTM746 : “Unbalanced asset amount between input and output”
输入输出非BTM资产总量不平衡$ @! F! D. b# B! M
BTM747 : “Gas credit has been spent”
UTXO数量超过上限(当前为21个)
BTM748 : “Gas usage calculate got a math error”
Gas运算错误( ^' A4 [# @. t: G
76X - 78X 虚拟机错误6 `+ X* c [+ u/ D* d9 E
BTM760 :“Alt stack underflow”
子虚拟机栈溢出
BTM761 : “Bad value”# {+ f! G U% @ a6 e+ ~" x% l
非法栈数据7 C) V- m* \" `+ X F
BTM762 : “Wrong context”
context值错误,context为虚拟机执行上下文
BTM763 : “Data stack underflow”
虚拟机数据溢出8 }3 l6 m8 I- T: P7 j2 J f7 b
BTM764 : “Disallowed opcode”, N' u" [4 l4 z1 ]) p
虚拟机指令不存在6 k& G) t) m4 e6 L$ K+ {
BTM765 : “Division by zero”
除零错误
BTM766 : “False result for executing VM”
虚拟机执行结果为Fasle, S# @' e. r5 C0 H% x) O# `
BTM767 : “Program size exceeds max int32”
合约的字节大小超过int32上限
BTM768 : “Arithmetic range error”
计算出错, p7 \: D" d1 g3 ]7 i4 d
BTM769 : “RETURN executed”
执行opfail指令返回的结果
BTM770 : “Run limit exceeded because the BTM Fee is insufficient”
Gas费用不足,引起合约终止' ]8 W" ^' M# P+ s2 }7 k
BTM771 : “Unexpected end of program”$ [ ]; `, p7 F% r
合约程序参数输入错误2 B$ h% h. [8 i5 B
BTM772 : “Unrecognized token”/ H. `" h. M4 Q" u7 g/ E
不识别的虚拟机指令数据
BTM773 : “Unexpected error”' L" e1 Q% q2 t& ?
异常错误
BTM774 : “Unsupported VM because the version of VM is mismatched”
虚拟机版本不匹配
BTM775 : “VERIFY failed”
verify指令执行失败 X- J0 R, m3 ~" w
8XX 为HSM相关错误
BTM800 :“Key Alias already exists”/ y$ ?6 ]0 n4 k. V6 W! D
密钥别名重复/ d y7 q7 n8 b6 q- w( g K8 \
BTM801 :“Invalid after in query”/ {7 m3 y9 x' }: H( P9 e& z' L, l, J
此错误已废弃
BTM802 : “Key not found or wrong password”- V& O. [7 \4 k/ D/ D9 |
密钥不存在或者密码错误0 K1 z3 Q4 f' U# m# \
BTM803 : “Requested key aliases exceeds limit”
此错误已废弃+ T, q' g( x& t4 U8 U3 Q7 q
BTM804 :“Could not decrypt key with given passphrase”+ F2 i( ^5 r, i$ k9 G) O9 T$ j
解密流程失败
BTM860", “Request could not be authenticated”
access token错误
成为第一个吐槽的人