BTM000", “Bytom API Error”
非比原标准错误
BTM001", “Request timed out”0 |8 | B Q8 J0 J h
API请求超时& E+ s% D/ U; T7 [" x9 y/ ?, L
BTM002", “Invalid request body”
非法的API请求体
1XX为网络错误- q0 U5 H6 H& f+ k6 z% w, d. f% Z2 W( e
BTM103", “A peer core is operating on a different blockchain network”3 k4 n# X5 g4 R. [" J1 J. h3 \
区块链网络类型不匹配8 K% \8 X& w9 K
2xx是签名相关的错误3 n$ {" l- g5 d" l8 l E2 k: i
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”2 c& H) _, q% Y4 J" |8 Y" z
缺少主公钥
BTM204 : “Root XPubs cannot contain the same key more than once”8 g5 j% H, o. B
主公钥重复
7XX为交易相关的错误
72X - 73X 构建交易错误
BTM700 : “Funds of account are insufficient”: m- l- p$ x( n' s! b& g8 z
资产余额不足2 R) _4 H: {+ `; B9 _) b6 D
BTM701 : “Available funds of account are immature”( P% a9 y" v$ y. e/ G
coinbase交易未成熟,币不可花费
BTM702 : "Available UTXOs of account have been reserved
资产被锁定五分钟,不可花费(一般密码输入错误会产生)7 Q5 j! P" v9 S( C
BTM703 : “Not found UTXO with given hash”
UTXO不属于当前钱包
BTM704 : “Invalid action type”: S! a& p4 e2 L7 F6 O+ P% B
action类型不存在3 u3 @# C% i3 z1 n! @
BTM705 : “Invalid action object” |; y0 M1 o3 l# P
action输入内容错误
BTM706 : “Invalid action construction”
action结构错误(只有输入或者只有输出)
BTM707 : “One or more fields are missing”
action输入内容缺失
BTM708 : “Invalid asset amount”
资产数量格式错误(超过最大数量)" {" p/ E2 G/ Q$ C
BTM709 : “Not found account”# g* |; |/ K n" A7 Y$ d
账户不存在* o5 m4 U8 C! Q, @) F" E
BTM710 : “Not found asset”- s6 f' ^0 N, W: r
资产不存在
73X - 75X 验证交易错误2 t9 x" Z1 Y, U: c# S5 J! r
BTM730 :“Invalid transaction version”
交易版本不对 u' v( m' J% J: V! j
BTM731 :“Invalid transaction size”
交易大小不能为0
BTM732 :“Invalid transaction time range”% C; Y& m* u- n, }6 S& b
超出交易时间范围,用于将停留时间过久的未确认交易作废
BTM733 : “Not standard transaction”
不是标准的交易,使用合约地址接受BTM时报错$ s" V$ A$ o3 {; |0 j5 x
BTM734 : “Invalid coinbase transaction”" U0 o& T% `& d
非法coinbase交易
BTM735 : “Invalid coinbase assetID”8 j( w: q+ K& A
非法的coinbase资产ID
BTM736 : “Invalid coinbase arbitrary size”9 H: e8 q, w+ B2 r" b# s
coinbase尺寸过大,附加数据超过一定限制
BTM737 : “No results in the transaction”1 E+ U b3 R4 J. x+ F
交易action hash缺失
BTM738 : “Mismatched assetID”( ^' p! L, s8 H" W: i! A" O
不匹配的资产ID,发布资产时资产ID错误
BTM739 : “Mismatched value source/dest position”
不匹配的action位置( T8 h% }/ N& F2 K7 u; l$ x
BTM740 : “Mismatched reference”
不匹配的引用, [- a. B, U$ j
BTM741 : “Mismatched value” g) O8 ?% F: b; X# \& G
不匹配的值,action的资产值不匹配
BTM742 : “Missing required field”
不匹配的字段,action输入的资产值类型不匹配
BTM743 : “No source for value”9 O" w' _2 X1 w# K) }, P4 D3 m
输入源不存在
BTM744 : “Arithmetic overflow/underflow”
计算溢出,资产计算值超出限制" Y" Q7 p( P4 d
BTM745 : “Invalid source or destination position”0 P( U' m: `- m2 H; I- X
action位置不匹配
BTM746 : “Unbalanced asset amount between input and output”
输入输出非BTM资产总量不平衡8 b- |; T3 o$ s. a6 o/ j
BTM747 : “Gas credit has been spent”% I* @# l. Q- A8 J: Z; e7 f
UTXO数量超过上限(当前为21个)9 O2 V2 n; P4 @" w I2 w
BTM748 : “Gas usage calculate got a math error”
Gas运算错误" _" ?1 d) F) U) \4 y- V2 t
76X - 78X 虚拟机错误
BTM760 :“Alt stack underflow”" X0 r# ~) x' @/ a; }
子虚拟机栈溢出
BTM761 : “Bad value” V( K1 K& `" B2 R9 |# q' W
非法栈数据8 F9 Q! R7 f. t Q( b2 m
BTM762 : “Wrong context”, ?4 }( b7 x1 R& W4 r& Z
context值错误,context为虚拟机执行上下文- m$ v& }$ l" C' Y1 T+ D
BTM763 : “Data stack underflow”( Z2 B) i& F* T K
虚拟机数据溢出
BTM764 : “Disallowed opcode”5 _: e k6 B3 _3 u8 }, s4 z) N5 G
虚拟机指令不存在
BTM765 : “Division by zero”
除零错误
BTM766 : “False result for executing VM”
虚拟机执行结果为Fasle
BTM767 : “Program size exceeds max int32”
合约的字节大小超过int32上限( P' i |' p% y" m. c
BTM768 : “Arithmetic range error”- \% i6 ^- L! w7 \/ n! e
计算出错
BTM769 : “RETURN executed”
执行opfail指令返回的结果6 f4 @8 Y- K2 ~" t7 |/ r
BTM770 : “Run limit exceeded because the BTM Fee is insufficient”$ T, `7 y3 s' h% ]& \# R# O2 D* Z
Gas费用不足,引起合约终止
BTM771 : “Unexpected end of program”' c4 n; \1 _% C% U" v2 j9 o
合约程序参数输入错误/ @) f. w! e; V6 j' S% w
BTM772 : “Unrecognized token”
不识别的虚拟机指令数据
BTM773 : “Unexpected error”- _& [9 s: _& q* d. Z5 o0 g B$ p( }
异常错误
BTM774 : “Unsupported VM because the version of VM is mismatched”- z* Y5 {* O# P. k z3 A3 V2 T
虚拟机版本不匹配
BTM775 : “VERIFY failed”
verify指令执行失败4 Y7 |' K3 M/ {, W3 U# E1 C
8XX 为HSM相关错误0 g! C G9 d3 s W7 P; _8 n. V
BTM800 :“Key Alias already exists”$ R7 I& B) |, H/ D! B' w/ d
密钥别名重复
BTM801 :“Invalid after in query”
此错误已废弃
BTM802 : “Key not found or wrong password”+ ?9 V/ ^: [4 @
密钥不存在或者密码错误
BTM803 : “Requested key aliases exceeds limit”9 k, l+ P& k- _2 w- |: z3 j
此错误已废弃. I" B m/ k2 d3 b' D: P0 C7 ^/ G, z
BTM804 :“Could not decrypt key with given passphrase”
解密流程失败) g0 `4 S& r3 ~' f3 D4 a; M( e
BTM860", “Request could not be authenticated”
access token错误
成为第一个吐槽的人