BTM000", “Bytom API Error”* \ r* Q( ~9 n' }. U8 p/ s" g3 p# d1 z5 ]
非比原标准错误, ~% o5 \7 F5 D
BTM001", “Request timed out”
API请求超时! U: L" }% j( C# o: k5 z' f& H. `
BTM002", “Invalid request body”
非法的API请求体
1XX为网络错误6 r( H, }6 }6 v% W
BTM103", “A peer core is operating on a different blockchain network”
区块链网络类型不匹配( o* c& l! q3 V: ~# c- ?
2xx是签名相关的错误
BTM200 :"Quorum must be greater than 1 and less than or equal to the length of xpubs“3 ?4 `7 A9 L1 N( j
需要签名的个数超过实际需求签名的个数- e/ Q. W4 H+ G4 z, S/ T
BTM201 :”Invalid xpub format"2 C; @2 ]# V0 X* A4 h; e4 T2 ?
签名格式错误
BTM202 :“At least one xpub is required”
缺少主公钥+ T7 l7 Y+ f9 {: T& }& P
BTM204 : “Root XPubs cannot contain the same key more than once”
主公钥重复
7XX为交易相关的错误7 {: O+ ^8 f# H- P
72X - 73X 构建交易错误4 t3 i+ J! e1 }& J+ F5 r( F7 o
BTM700 : “Funds of account are insufficient”, f) P2 T8 P) f$ R, j/ ~
资产余额不足
BTM701 : “Available funds of account are immature”
coinbase交易未成熟,币不可花费
BTM702 : "Available UTXOs of account have been reserved* a: T$ a' _1 P r9 b7 v
资产被锁定五分钟,不可花费(一般密码输入错误会产生)
BTM703 : “Not found UTXO with given hash”
UTXO不属于当前钱包
BTM704 : “Invalid action type”
action类型不存在' m! c- @9 x8 m; E7 K3 W
BTM705 : “Invalid action object”
action输入内容错误$ r) F' x. W2 j) _% O9 O& @ c
BTM706 : “Invalid action construction”+ Q9 y& ]* F- N5 x% Q
action结构错误(只有输入或者只有输出)
BTM707 : “One or more fields are missing”9 ?( {1 n5 T! @+ b' R* k& @
action输入内容缺失: {1 m* ~- n0 Y
BTM708 : “Invalid asset amount”
资产数量格式错误(超过最大数量)% e1 e, M0 |7 W, D
BTM709 : “Not found account”$ R: E5 D1 u# a2 e% D1 N3 }
账户不存在
BTM710 : “Not found asset”% ^: d) x; s* H0 Y, p3 e ^6 y
资产不存在7 w) |" \0 Z3 P1 y1 L( x. [
73X - 75X 验证交易错误
BTM730 :“Invalid transaction version”$ s( O* u$ |% l" ?/ f6 ?
交易版本不对
BTM731 :“Invalid transaction size”9 ]+ ]$ \, l" n& j
交易大小不能为0; `- X4 m- `0 m& D% l9 _
BTM732 :“Invalid transaction time range”
超出交易时间范围,用于将停留时间过久的未确认交易作废0 V. c' z2 u1 W; ^3 L' [' S p
BTM733 : “Not standard transaction”
不是标准的交易,使用合约地址接受BTM时报错- u! K$ v" z% v
BTM734 : “Invalid coinbase transaction”: V2 u7 m/ m7 { y1 E
非法coinbase交易
BTM735 : “Invalid coinbase assetID”
非法的coinbase资产ID
BTM736 : “Invalid coinbase arbitrary size”! {1 O. y- y% G% B9 j( u
coinbase尺寸过大,附加数据超过一定限制: {- i: i' }2 r* ~ X. |
BTM737 : “No results in the transaction”
交易action hash缺失
BTM738 : “Mismatched assetID”
不匹配的资产ID,发布资产时资产ID错误
BTM739 : “Mismatched value source/dest position” m/ C+ t, A* N+ Q( Y4 G% v- F, {5 Y2 ~
不匹配的action位置9 [) {; d, j9 [% r E2 ^2 Y
BTM740 : “Mismatched reference”0 u) g( Y0 Y5 X6 ?9 ~2 U
不匹配的引用& n4 z5 W1 s" P& K5 Z3 ~
BTM741 : “Mismatched value”
不匹配的值,action的资产值不匹配
BTM742 : “Missing required field”
不匹配的字段,action输入的资产值类型不匹配
BTM743 : “No source for value”1 D7 Y0 ]# X `
输入源不存在# d$ J7 ^! w: r. v: Z
BTM744 : “Arithmetic overflow/underflow”$ r' k" U9 k0 R! ?3 b& n+ A
计算溢出,资产计算值超出限制+ Z/ ` s _. [3 e: D0 L
BTM745 : “Invalid source or destination position”
action位置不匹配) S7 P4 O4 O$ p# s3 O1 S: V+ J: E
BTM746 : “Unbalanced asset amount between input and output”
输入输出非BTM资产总量不平衡! n; i" k% B% d0 c* b4 A
BTM747 : “Gas credit has been spent”# c8 Z+ I+ E# }# ^: w2 t- u0 r
UTXO数量超过上限(当前为21个)
BTM748 : “Gas usage calculate got a math error”
Gas运算错误
76X - 78X 虚拟机错误
BTM760 :“Alt stack underflow”
子虚拟机栈溢出4 k# B( b) z4 @. }" }5 W
BTM761 : “Bad value”2 I. [4 s% H9 W" f* \' R/ L
非法栈数据8 \0 G! h& e, |- o
BTM762 : “Wrong context”
context值错误,context为虚拟机执行上下文, V( z( e/ g. V2 T0 k& w
BTM763 : “Data stack underflow”
虚拟机数据溢出
BTM764 : “Disallowed opcode”) Y" c8 ?7 f7 m
虚拟机指令不存在* F& M+ |1 G. V' A. X% _! J
BTM765 : “Division by zero”5 q. Y+ V4 c+ K
除零错误( o& w, k9 T4 N# f1 } q [9 @6 [
BTM766 : “False result for executing VM”
虚拟机执行结果为Fasle" Y$ Z; @& y4 |
BTM767 : “Program size exceeds max int32”
合约的字节大小超过int32上限3 o$ ?+ @: x: i3 F) x5 D/ J
BTM768 : “Arithmetic range error”
计算出错( w8 r8 J" T& b7 }% J
BTM769 : “RETURN executed”3 p2 n' l: z1 s. K! M- E, f
执行opfail指令返回的结果/ ^1 K2 @ c8 ^" p' c/ D
BTM770 : “Run limit exceeded because the BTM Fee is insufficient” M l) ^0 L' r2 m F: s
Gas费用不足,引起合约终止6 U8 U* z. R) _: l2 }
BTM771 : “Unexpected end of program”
合约程序参数输入错误
BTM772 : “Unrecognized token”
不识别的虚拟机指令数据3 r: m2 o1 x$ q
BTM773 : “Unexpected error”
异常错误
BTM774 : “Unsupported VM because the version of VM is mismatched”" G" a3 @7 Y9 P0 Y8 C5 ^( h$ G
虚拟机版本不匹配
BTM775 : “VERIFY failed”( m2 Z# K: O4 W" _: z* O
verify指令执行失败0 t1 o1 A1 R6 s5 Q. k# b) v. _
8XX 为HSM相关错误
BTM800 :“Key Alias already exists”# J) [5 C! G; C) [' X
密钥别名重复( z* G, `2 l" |, N( n' A+ V
BTM801 :“Invalid after in query”. P2 b0 A+ d, }" a
此错误已废弃6 b# x4 x# ~, k0 Y
BTM802 : “Key not found or wrong password”
密钥不存在或者密码错误$ r- V p8 J, G; |" L$ F# z
BTM803 : “Requested key aliases exceeds limit”
此错误已废弃$ m5 r+ S- q/ Y& s `% h
BTM804 :“Could not decrypt key with given passphrase”- S- B! {3 r' B6 S$ t7 L
解密流程失败
BTM860", “Request could not be authenticated”
access token错误
成为第一个吐槽的人