BTM000", “Bytom API Error”
非比原标准错误: t7 |% p2 _* @) Y, Q3 s
BTM001", “Request timed out”
API请求超时
BTM002", “Invalid request body”+ G3 e! d. f Q. _. @! H
非法的API请求体6 n: b. y. B$ ~, }+ I
1XX为网络错误% b6 s! n5 E0 V# Z' H+ U
BTM103", “A peer core is operating on a different blockchain network”
区块链网络类型不匹配0 C* O6 _ R! c% B C
2xx是签名相关的错误
BTM200 :"Quorum must be greater than 1 and less than or equal to the length of xpubs“( K8 A3 Q, K$ @: \# X
需要签名的个数超过实际需求签名的个数& T8 ]3 A& R, ?5 m
BTM201 :”Invalid xpub format"
签名格式错误0 S( I' u% K9 Q
BTM202 :“At least one xpub is required”5 V8 V4 P" w! e. b+ [8 `1 a
缺少主公钥. C; S `6 d; \. s: r2 }/ l
BTM204 : “Root XPubs cannot contain the same key more than once”
主公钥重复7 f% S2 y/ W& q! Y0 {+ a
7XX为交易相关的错误
72X - 73X 构建交易错误6 Z3 M1 T) B K8 e4 v& s
BTM700 : “Funds of account are insufficient”9 c. @4 E$ K) Y4 ]+ d2 e! h
资产余额不足
BTM701 : “Available funds of account are immature”
coinbase交易未成熟,币不可花费7 n9 d% o/ L+ v T8 l; t
BTM702 : "Available UTXOs of account have been reserved
资产被锁定五分钟,不可花费(一般密码输入错误会产生)$ J D i- h+ a! T5 F1 ^
BTM703 : “Not found UTXO with given hash”
UTXO不属于当前钱包
BTM704 : “Invalid action type”
action类型不存在/ G4 k' `2 B+ p' ~ x3 F
BTM705 : “Invalid action object”
action输入内容错误7 F3 G8 L. R, C
BTM706 : “Invalid action construction”
action结构错误(只有输入或者只有输出)8 S7 E1 `1 q6 W, ?7 X `/ ?
BTM707 : “One or more fields are missing”
action输入内容缺失
BTM708 : “Invalid asset amount”
资产数量格式错误(超过最大数量)
BTM709 : “Not found account”) O- O1 F9 K& q( C7 C
账户不存在
BTM710 : “Not found asset”
资产不存在9 V; D: }' ^, S" p2 t; h. v% Y
73X - 75X 验证交易错误
BTM730 :“Invalid transaction version”
交易版本不对) Y! n1 ^, @7 z; E$ w
BTM731 :“Invalid transaction size”* N& m8 W# y+ m4 n7 ?. w
交易大小不能为0
BTM732 :“Invalid transaction time range”6 g" \4 _7 h& q; D5 }
超出交易时间范围,用于将停留时间过久的未确认交易作废3 |0 g4 A6 m2 X8 t( k( X) N
BTM733 : “Not standard transaction”+ r* d' D" Y; W- H. b0 _# b2 i
不是标准的交易,使用合约地址接受BTM时报错/ O0 i5 \/ t0 q
BTM734 : “Invalid coinbase transaction”6 ~/ [& S# ?7 g* S m5 D4 |
非法coinbase交易4 O w3 B, s/ h# F
BTM735 : “Invalid coinbase assetID”
非法的coinbase资产ID
BTM736 : “Invalid coinbase arbitrary size”9 P/ S! q7 |2 c1 z4 Y: | p
coinbase尺寸过大,附加数据超过一定限制, V3 |/ u: r5 B5 ]: G
BTM737 : “No results in the transaction”2 s: @/ J W5 v! d
交易action hash缺失# d% Q1 h9 r# g% j4 J0 v3 ^
BTM738 : “Mismatched assetID”
不匹配的资产ID,发布资产时资产ID错误" T8 d' r) w9 L5 g' X7 [; D& n
BTM739 : “Mismatched value source/dest position”
不匹配的action位置& ^) y6 L* g( q
BTM740 : “Mismatched reference”; s& F$ E' R5 T. c' o2 c1 V
不匹配的引用- }- n- Q" D2 j1 S- H$ q
BTM741 : “Mismatched value”
不匹配的值,action的资产值不匹配) ^3 p: `8 ^5 Q! R5 H# x
BTM742 : “Missing required field”
不匹配的字段,action输入的资产值类型不匹配
BTM743 : “No source for value”5 J- B" z2 \ e. n' @9 R( j6 f
输入源不存在
BTM744 : “Arithmetic overflow/underflow”
计算溢出,资产计算值超出限制
BTM745 : “Invalid source or destination position” E& [3 s1 B7 e5 d4 S% y' g- r" P6 x
action位置不匹配9 {: i) |( q R. l
BTM746 : “Unbalanced asset amount between input and output”
输入输出非BTM资产总量不平衡
BTM747 : “Gas credit has been spent”
UTXO数量超过上限(当前为21个)0 x2 v- X; ~# x$ i8 T4 w" k
BTM748 : “Gas usage calculate got a math error”
Gas运算错误
76X - 78X 虚拟机错误9 x0 j0 X4 e' k. N) L$ y' I
BTM760 :“Alt stack underflow”5 L1 R, t$ t5 v( S% H& ?
子虚拟机栈溢出; m' d8 Y9 Z8 G& o
BTM761 : “Bad value”7 {- W" ?4 F6 D( {# ?6 O
非法栈数据
BTM762 : “Wrong context”8 y6 y/ I0 `7 Q4 Y( F/ ^
context值错误,context为虚拟机执行上下文$ s" i$ L n6 e! `. n1 t
BTM763 : “Data stack underflow”- L9 ~0 c7 J) D. _
虚拟机数据溢出
BTM764 : “Disallowed opcode”
虚拟机指令不存在* v8 H. s/ Z- L) c% N1 e! Z
BTM765 : “Division by zero”" g ~3 b6 P* b2 F
除零错误
BTM766 : “False result for executing VM”. M3 S$ y4 S. D* U6 A v
虚拟机执行结果为Fasle
BTM767 : “Program size exceeds max int32”( f: }0 J# p9 M5 g! q; Q
合约的字节大小超过int32上限4 }/ I0 C# V8 y2 ?! c
BTM768 : “Arithmetic range error”
计算出错9 T# W: x3 x& c1 z3 F1 Q
BTM769 : “RETURN executed”
执行opfail指令返回的结果
BTM770 : “Run limit exceeded because the BTM Fee is insufficient”% a" \. v4 M) g( m0 K+ y/ B
Gas费用不足,引起合约终止
BTM771 : “Unexpected end of program”
合约程序参数输入错误$ u8 H. M+ w2 A4 s% W- `
BTM772 : “Unrecognized token”
不识别的虚拟机指令数据
BTM773 : “Unexpected error”; |. b$ U' [0 p% g0 B2 M
异常错误
BTM774 : “Unsupported VM because the version of VM is mismatched”
虚拟机版本不匹配
BTM775 : “VERIFY failed”( f6 @; `& x1 |, r
verify指令执行失败
8XX 为HSM相关错误' c4 y: D; d. T: A
BTM800 :“Key Alias already exists”! V6 z6 c! _* `, ]) z/ J
密钥别名重复
BTM801 :“Invalid after in query”. j4 l/ R5 S+ P. C0 K$ Q. e* _8 Y9 t
此错误已废弃+ x4 j1 g) q6 B# H: N
BTM802 : “Key not found or wrong password”0 O: d5 c& n- b% Y) Y0 u6 }) q: F
密钥不存在或者密码错误+ D3 O6 _0 B5 F* v1 u1 v
BTM803 : “Requested key aliases exceeds limit”, z7 S- a$ k- s% v6 }. p
此错误已废弃
BTM804 :“Could not decrypt key with given passphrase”
解密流程失败1 V( W ~! @8 D
BTM860", “Request could not be authenticated”
access token错误
成为第一个吐槽的人