BTM000", “Bytom API Error”( d0 o1 y. I6 a/ u; v4 |6 K
非比原标准错误/ D8 |* b" \2 e) B: L3 N
BTM001", “Request timed out”
API请求超时
BTM002", “Invalid request body”
非法的API请求体
1XX为网络错误
BTM103", “A peer core is operating on a different blockchain network”! j0 U$ n2 _3 \3 w
区块链网络类型不匹配
2xx是签名相关的错误
BTM200 :"Quorum must be greater than 1 and less than or equal to the length of xpubs“0 S4 `" O5 a% c# ^ p+ y5 t* N# h# \
需要签名的个数超过实际需求签名的个数
BTM201 :”Invalid xpub format"
签名格式错误
BTM202 :“At least one xpub is required”
缺少主公钥% _/ V. Q8 x8 b3 E4 T& R
BTM204 : “Root XPubs cannot contain the same key more than once”, g% ~. B# e# R, `! C
主公钥重复9 H5 I& ?9 P# m- ^1 j P
7XX为交易相关的错误7 i2 {& B2 n+ T( C
72X - 73X 构建交易错误 v. F: G1 O+ ~+ L' g! Z
BTM700 : “Funds of account are insufficient”
资产余额不足
BTM701 : “Available funds of account are immature”7 R, _% v# L' J' O0 q! |
coinbase交易未成熟,币不可花费. j6 b( s4 n% a: W3 ^/ r! n
BTM702 : "Available UTXOs of account have been reserved/ X8 `8 x) j/ s0 E' U2 U# t
资产被锁定五分钟,不可花费(一般密码输入错误会产生)
BTM703 : “Not found UTXO with given hash”
UTXO不属于当前钱包
BTM704 : “Invalid action type”
action类型不存在* f+ {; g% R1 J1 l+ v8 ~
BTM705 : “Invalid action object”* ~6 V+ Y* S- y1 E* T
action输入内容错误
BTM706 : “Invalid action construction”
action结构错误(只有输入或者只有输出)
BTM707 : “One or more fields are missing”
action输入内容缺失
BTM708 : “Invalid asset amount”5 A* z' C7 S; i! Z2 y& j
资产数量格式错误(超过最大数量)
BTM709 : “Not found account”
账户不存在' D0 g# G+ {- O& D5 G6 c" U( Q
BTM710 : “Not found asset”
资产不存在
73X - 75X 验证交易错误
BTM730 :“Invalid transaction version”
交易版本不对) a0 O6 n, r! k+ I6 u. r9 N
BTM731 :“Invalid transaction size”: z6 M- K9 y8 D7 \, G7 J- L* i
交易大小不能为0, G: ^( ?# O- M
BTM732 :“Invalid transaction time range”7 l- m y% @1 I; p6 u1 v% g
超出交易时间范围,用于将停留时间过久的未确认交易作废
BTM733 : “Not standard transaction”7 ?( Z9 @; M6 x8 I/ M8 A/ [3 [& z
不是标准的交易,使用合约地址接受BTM时报错& d1 v/ k E6 c7 y' i3 K6 m
BTM734 : “Invalid coinbase transaction”/ U" Q. m! G: ~. O
非法coinbase交易9 Q- U7 {. ^6 a
BTM735 : “Invalid coinbase assetID”# I: q) V' C% L; s o5 o
非法的coinbase资产ID
BTM736 : “Invalid coinbase arbitrary size”3 O" s/ X$ N, P, l$ |. |, ^
coinbase尺寸过大,附加数据超过一定限制
BTM737 : “No results in the transaction”, @; _4 Q, k+ g' F
交易action hash缺失6 a# S% G7 q' Y; ~7 l# d" Z0 |
BTM738 : “Mismatched assetID”, ^. [: o, R% ?+ y1 k& Z1 D. U9 U
不匹配的资产ID,发布资产时资产ID错误4 ~" i: R6 {( w& ?- x, \! p# x
BTM739 : “Mismatched value source/dest position”( ?4 Z: D" m" k. Z
不匹配的action位置
BTM740 : “Mismatched reference”+ y: o- N$ l3 K3 }" S3 |7 V
不匹配的引用# e- ~% C3 @' k4 n, U- F) v
BTM741 : “Mismatched value”! c7 T5 x/ w% u: t( t. K; \* J
不匹配的值,action的资产值不匹配6 R. y! i( A6 D
BTM742 : “Missing required field”
不匹配的字段,action输入的资产值类型不匹配
BTM743 : “No source for value”( k+ c9 S1 a6 A
输入源不存在5 O# a- D* E2 F* `. m. @
BTM744 : “Arithmetic overflow/underflow”
计算溢出,资产计算值超出限制' C- l' X- `* T8 n4 L/ b' S2 s
BTM745 : “Invalid source or destination position”7 ?0 k" `8 h6 |! Y
action位置不匹配
BTM746 : “Unbalanced asset amount between input and output”
输入输出非BTM资产总量不平衡
BTM747 : “Gas credit has been spent”
UTXO数量超过上限(当前为21个)
BTM748 : “Gas usage calculate got a math error”$ e% D+ e6 I" t
Gas运算错误$ g9 t4 O6 L$ ?4 B$ m
76X - 78X 虚拟机错误
BTM760 :“Alt stack underflow”
子虚拟机栈溢出" U" I% p d1 l
BTM761 : “Bad value”, u+ C* Q' {$ U
非法栈数据" r% ]2 |5 N9 R6 o+ e# V# P6 r$ ]
BTM762 : “Wrong context”
context值错误,context为虚拟机执行上下文5 t3 s5 M% b0 r+ ~3 e
BTM763 : “Data stack underflow”
虚拟机数据溢出6 U( L, A7 g+ K* g( d `& Z
BTM764 : “Disallowed opcode”( P2 s7 o) J% W9 X& h
虚拟机指令不存在2 }) f* @+ t% i1 O
BTM765 : “Division by zero”. |" R: m+ V, _ o$ f5 t
除零错误( Y. W4 v1 q7 `6 G6 f0 L
BTM766 : “False result for executing VM”
虚拟机执行结果为Fasle
BTM767 : “Program size exceeds max int32”
合约的字节大小超过int32上限
BTM768 : “Arithmetic range error”
计算出错$ `: d6 Z: i( R! I; W/ H6 E
BTM769 : “RETURN executed”2 G7 b! A. H: ?7 \" u& ^
执行opfail指令返回的结果
BTM770 : “Run limit exceeded because the BTM Fee is insufficient”
Gas费用不足,引起合约终止$ d3 f& i: @2 L3 B b" N
BTM771 : “Unexpected end of program”3 c$ h$ U; F/ M; G- _3 B" n
合约程序参数输入错误
BTM772 : “Unrecognized token”( E8 _! L- d' f- V
不识别的虚拟机指令数据
BTM773 : “Unexpected error”
异常错误5 A4 R2 A! g% ^5 W7 x0 j
BTM774 : “Unsupported VM because the version of VM is mismatched”$ V" R# E/ `% z' Q- @
虚拟机版本不匹配
BTM775 : “VERIFY failed”
verify指令执行失败0 h1 G5 M8 W9 O1 U
8XX 为HSM相关错误
BTM800 :“Key Alias already exists”; d* v- S) m9 M9 s+ L6 }7 {
密钥别名重复
BTM801 :“Invalid after in query”8 ]4 O0 ^9 S2 o1 f# W, s
此错误已废弃
BTM802 : “Key not found or wrong password”4 F% l/ X5 R1 T
密钥不存在或者密码错误
BTM803 : “Requested key aliases exceeds limit”
此错误已废弃
BTM804 :“Could not decrypt key with given passphrase” d5 {- q+ g+ s$ ~
解密流程失败" a* Y% C* T4 C' T1 y& B% P
BTM860", “Request could not be authenticated”
access token错误
成为第一个吐槽的人