比原链Bytom错误码一览

0XX API错误

编号内容注释
BTM000Bytom API Error非比原标准错误
BTM001Request timed outAPI请求超时
BTM002Invalid request body非法的API请求体

1XX为网络错误

编号内容注释
BTM103A peer core is operating on a different blockchain network区块链网络类型不匹配

2xx是签名相关的错误

编号内容注释
BTM200Quorum must be greater than 1 and less than or equal to the length of xpubs需要签名的个数超过实际需求签名的个数
BTM201Invalid xpub format签名格式错误
BTM202At least one xpub is required缺少主公钥
BTM204Root XPubs cannot contain the same key more than once主公钥重复

7XX为交易相关的错误

72X – 73X 构建交易错误

编号内容注释
BTM700Funds of account are insufficient资产余额不足
BTM701Available funds of account are immaturecoinbase交易未成熟,币不可花费
BTM702Available UTXOs of account have been reserved资产被锁定五分钟,不可花费(一般密码输入错误会产生)
BTM703Not found UTXO with given hashUTXO不属于当前钱包
BTM704Invalid action typeaction类型不存在
BTM705Invalid action objectaction输入内容错误
BTM706Invalid action constructionaction结构错误(只有输入或者只有输出)
BTM707One or more fields are missingaction输入内容缺失
BTM708Invalid asset amount资产数量格式错误(超过最大数量)
BTM709Not found account账户不存在
BTM710Not found asset资产不存在

73X – 75X 验证交易错误

编号内容注释
BTM730Invalid transaction version交易版本不对
BTM731Invalid transaction size交易大小不能为0
BTM732Invalid transaction time range超出交易时间范围,用于将停留时间过久的未确认交易作废
BTM733Not standard transaction不是标准的交易,使用合约地址接受BTM时报错
BTM734Invalid coinbase transaction非法coinbase交易
BTM735Invalid coinbase assetID非法的coinbase资产ID
BTM736Invalid coinbase arbitrary sizecoinbase尺寸过大,附加数据超过一定限制
BTM737No results in the transaction交易action hash缺失
BTM738Mismatched assetID不匹配的资产ID,发布资产时资产ID错误
BTM739Mismatched value source/dest position不匹配的action位置
BTM740Mismatched reference不匹配的引用
BTM741Mismatched value不匹配的值,action的资产值不匹配
BTM742Missing required field不匹配的字段,action输入的资产值类型不匹配
BTM743No source for value输入源不存在
BTM744Arithmetic overflow/underflow计算溢出,资产计算值超出限制
BTM745Invalid source or destination positionaction位置不匹配
BTM746Unbalanced asset amount between input and output输入输出非BTM资产总量不平衡
BTM747Gas credit has been spentUTXO数量超过上限(当前为21个)
BTM748Gas usage calculate got a math errorGas运算错误

76X – 78X 虚拟机错误

编号内容注释
BTM760Alt stack underflow子虚拟机栈溢出
BTM761Bad value非法栈数据
BTM762Wrong contextcontext值错误,context为虚拟机执行上下文
BTM763Data stack underflow虚拟机数据溢出
BTM764Disallowed opcode虚拟机指令不存在
BTM765Division by zero除零错误
BTM766False result for executing VM虚拟机执行结果为Fasle
BTM767Program size exceeds max int32合约的字节大小超过int32上限
BTM768Arithmetic range error计算出错
BTM769RETURN executed执行opfail指令返回的结果
BTM770Run limit exceeded because the BTM Fee is insufficientGas费用不足,引起合约终止
BTM771Unexpected end of program合约程序参数输入错误
BTM772Unrecognized token不识别的虚拟机指令数据
BTM773Unexpected error异常错误
BTM774Unsupported VM because the version of VM is mismatched虚拟机版本不匹配
BTM775VERIFY failedverify指令执行失败

8XX 为HSM相关错误

编号内容注释
BTM800Key Alias already exists密钥别名重复
BTM801Invalid after in query此错误已废弃
BTM802Key not found or wrong password密钥不存在或者密码错误
BTM803Requested key aliases exceeds limit此错误已废弃
BTM804Could not decrypt key with given passphrase解密流程失败
BTM860Request could not be authenticatedaccess token错误
    原文作者:比原链Bytom
    原文地址: https://segmentfault.com/a/1190000016944193
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞