EOS 目前大约有180种错误类型,虽然有错误码,但是还是很笼统的,具体的报错信息还得看detail里面的内容:
一、常见的错误码以及issue上对应的错误记录
3010001 Invalid name:账户名格式1-12位(a-z,1-5,“.” ) 且”.”不能在首尾
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3010001
3010004 Invalid authority:检查参数是否填写正确
authorization”: [{ “actor”: “accountname1”, “permission”: “active” }]
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3010004
3010008 Invalid block ID
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3010008
3010010 Invalid packed transaction:一般报这个错误就是打包交易的参数传的不正确
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3010010
3010011 Invalid asset:检查资产格式是否正确,如”stake_net_quantity”:”0.0001 EOS” 1.确保正确的精度 空格加Symbol
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3010011
3030000 Block exception
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3030000
3030001 Unlinkable block
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3030001
3030002 Transaction outputs in block do not match transaction outputs from applying block
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3030002
3030003 Block does not guarantee concurrent execution without conflicts
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3030003
3030008 Block is not signed with expected key 检查是否对块信息签名
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3030008
3040000 Transaction exception
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3040000
3040002 Transaction should have at least one normal action:查看action是否添加,是否正确
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3040002
3040005 Expired Transaction:交易过期,过期时间可以设置长一点
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3040005
3040006 Transaction Expiration Too Far:过期时间设置太长
3040007 Invalid Reference Block:引用块无效或不匹配,节点间不同有关
https://github.com/EOSIO/eos/issues/4659
3050000 Action validate exception:检查Action是否正确
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3050000
3050001 Account name already exists:账户名已存在
3050002 Invalid Action Arguments:检查Action参数
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3050002
3050003 eosio_assert_message assertion failure:账户不存在,资产金额不正确等
3060003 Contract Table Query Exception
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3060003
3060004 Contract Query Exception
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3060004
3070002 Runtime Error Processing WASM
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3070002
3080001 Account using more than allotted RAM usage:内存不足,买些内存
3080002 Transaction exceeded the current network usage limit imposed on the transaction:网络资源不足,抵押一些资源
3080004 Transaction exceeded the current CPU usage limit imposed on the transaction:CPU不足,抵押一些CPU
3080006 Transaction took too long
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3080006+
3081001 Transaction reached the deadline set due to leeway on account CPU limits
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3081001
3090003 Provided keys, permissions, and delays do not satisfy declared authorizations:检查权限,签名等是否正确
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3090003
3090004 Missing required authority
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3090004
3110001 Missing Chain API Plugin
https://github.com/EOSIO/eos/issues?utf8=%E2%9C%93&q=3110001
二、EOS 错误码大全