BTM000", “Bytom API Error”; M. |) b& d- C
非比原标准错误
BTM001", “Request timed out”
API请求超时
BTM002", “Invalid request body”
非法的API请求体7 E7 x) o# Q$ C7 U3 z9 W$ E6 A
1XX为网络错误- ^ W. ~: z4 u( |
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“
需要签名的个数超过实际需求签名的个数- F2 b% c; _" E1 q) x4 b& ]
BTM201 :”Invalid xpub format"
签名格式错误
BTM202 :“At least one xpub is required”
缺少主公钥0 W) w/ z8 X8 i/ ]1 n6 }
BTM204 : “Root XPubs cannot contain the same key more than once”
主公钥重复& @9 t, q3 i0 `! h% f @
7XX为交易相关的错误
72X - 73X 构建交易错误
BTM700 : “Funds of account are insufficient”' `; @1 w( {: S8 n2 f, j
资产余额不足5 @3 o8 [+ r" N5 v+ ~3 E$ Z% J
BTM701 : “Available funds of account are immature”
coinbase交易未成熟,币不可花费" o* |# \: l5 D7 `' g) y' }6 L- _( F
BTM702 : "Available UTXOs of account have been reserved& o, m7 V0 v+ Q, Q
资产被锁定五分钟,不可花费(一般密码输入错误会产生)
BTM703 : “Not found UTXO with given hash”
UTXO不属于当前钱包
BTM704 : “Invalid action type”
action类型不存在
BTM705 : “Invalid action object”
action输入内容错误# b! z1 s$ f3 C# g1 r. k; c
BTM706 : “Invalid action construction”
action结构错误(只有输入或者只有输出)
BTM707 : “One or more fields are missing”
action输入内容缺失2 [- J8 X! Z$ @2 x2 v; o
BTM708 : “Invalid asset amount”
资产数量格式错误(超过最大数量)1 G' g1 e3 a& G# a
BTM709 : “Not found account”
账户不存在8 N( m, w' {: s( G+ } }5 ^5 A
BTM710 : “Not found asset”
资产不存在. y& R& ]3 N, M) ?- |
73X - 75X 验证交易错误. K: @+ `5 U$ B' q: |9 @& _
BTM730 :“Invalid transaction version”
交易版本不对7 e: M" C: T: j; H5 n7 H
BTM731 :“Invalid transaction size” h% ]+ a. l! ^; p0 L5 N
交易大小不能为0( W5 K& c9 N4 S! [3 ~" P& y
BTM732 :“Invalid transaction time range”
超出交易时间范围,用于将停留时间过久的未确认交易作废) Q N- \4 v3 d* Y$ w5 N) `+ Z
BTM733 : “Not standard transaction”8 f* h( K' i$ g; A% g, z
不是标准的交易,使用合约地址接受BTM时报错 ^1 ]0 n8 `! D# ?
BTM734 : “Invalid coinbase transaction”% g: n: s; T" n- W+ J8 g4 g9 c! ]
非法coinbase交易" k# r) J0 D$ S" f# w- ~
BTM735 : “Invalid coinbase assetID”
非法的coinbase资产ID
BTM736 : “Invalid coinbase arbitrary size”
coinbase尺寸过大,附加数据超过一定限制
BTM737 : “No results in the transaction”
交易action hash缺失
BTM738 : “Mismatched assetID”/ I; j& p; ?3 I2 U, O
不匹配的资产ID,发布资产时资产ID错误
BTM739 : “Mismatched value source/dest position”) j4 m& @5 H' z
不匹配的action位置# N" m6 t: S" S& N# `4 i* _: A5 Z
BTM740 : “Mismatched reference”* _' k; S- y' A* G: C3 A
不匹配的引用
BTM741 : “Mismatched value”2 A( D! {% X- M9 E$ {+ R9 E- R
不匹配的值,action的资产值不匹配
BTM742 : “Missing required field”5 D* w$ O6 o6 j3 \- v
不匹配的字段,action输入的资产值类型不匹配5 a1 W9 u( f, |$ y( q
BTM743 : “No source for value”
输入源不存在. ^5 H6 ^5 R1 y. X1 Y/ n
BTM744 : “Arithmetic overflow/underflow”
计算溢出,资产计算值超出限制- D; c3 K4 V8 G' o
BTM745 : “Invalid source or destination position”
action位置不匹配7 W. I8 G( i4 O7 V0 M
BTM746 : “Unbalanced asset amount between input and output”
输入输出非BTM资产总量不平衡: N# V ~: v ~) z
BTM747 : “Gas credit has been spent”/ q8 Z) Q( i+ g2 d9 I& p
UTXO数量超过上限(当前为21个)* x9 `; q1 |. A* i, F
BTM748 : “Gas usage calculate got a math error”
Gas运算错误
76X - 78X 虚拟机错误
BTM760 :“Alt stack underflow”
子虚拟机栈溢出, X, @1 ^. W" j. m: d! R8 w; y
BTM761 : “Bad value”
非法栈数据 e1 \' \7 e3 }# E; X
BTM762 : “Wrong context” \- S2 F( O/ x: ^/ }1 s ~
context值错误,context为虚拟机执行上下文
BTM763 : “Data stack underflow”
虚拟机数据溢出8 j) n4 a6 E: K x7 R
BTM764 : “Disallowed opcode”& V& ?) R; F+ I9 y$ O
虚拟机指令不存在
BTM765 : “Division by zero”' `5 v. o+ K; v/ o2 v
除零错误
BTM766 : “False result for executing VM”
虚拟机执行结果为Fasle
BTM767 : “Program size exceeds max int32”
合约的字节大小超过int32上限
BTM768 : “Arithmetic range error”9 K, X- ~% z1 k9 }1 ]+ t
计算出错
BTM769 : “RETURN executed”
执行opfail指令返回的结果
BTM770 : “Run limit exceeded because the BTM Fee is insufficient”2 y( l: S4 ?' b) g3 h
Gas费用不足,引起合约终止7 ~+ O/ [ `/ y; N3 f# O
BTM771 : “Unexpected end of program”
合约程序参数输入错误7 C( h" v0 Z; d8 `4 ?
BTM772 : “Unrecognized token”: A- H* m: c% \! X
不识别的虚拟机指令数据
BTM773 : “Unexpected error”
异常错误" g1 Y* a) r6 j. b
BTM774 : “Unsupported VM because the version of VM is mismatched”; z2 D' o9 h* ?$ S; v/ E! ^
虚拟机版本不匹配
BTM775 : “VERIFY failed”
verify指令执行失败
8XX 为HSM相关错误! z( o+ g: v L0 F& B
BTM800 :“Key Alias already exists”3 n4 A, f! S: R+ G" d" D) j
密钥别名重复4 ?$ D6 b8 F" U, P* P$ Y# v$ [
BTM801 :“Invalid after in query”$ a4 j6 m2 ~& M$ `3 h, Z v* E
此错误已废弃
BTM802 : “Key not found or wrong password”
密钥不存在或者密码错误 J9 u0 v1 |7 _" m" W& k0 [
BTM803 : “Requested key aliases exceeds limit”4 `! E, m4 F8 U% P
此错误已废弃
BTM804 :“Could not decrypt key with given passphrase”8 O/ d1 i* I( x$ O; u/ \1 q1 M7 P
解密流程失败
BTM860", “Request could not be authenticated”
access token错误
成为第一个吐槽的人