FISCO BCOS Transaction execution error Contract execution failure reason

 Query error reasons based on TransactionExceptionID

Transaction receipt status

status (decimal/hexadecimal) message meaning
0(0x0) None normal
1(0x1) Unknown Unknown exception
2(0x2) BadRLP Invalid RLP exception
3 (0x3) InvalidFormat invalid format exception
4(0x4) OutOfGasIntrinsic The length of the deployed contract exceeds the gas limit/parameters of the calling contract interface exceed the gas limit
5(0x5) InvalidSignature invalid signature exception
6(0x6) InvalidNonce invalid nonce exception
7(0x7) NotEnoughCash Abnormal shortage of cash
8(0x8) OutOfGasBase The parameters of the calling contract are too long (RC version)
9(0x9) BlockGasLimitReached GasLimit exception
10 (0xa) BadInstruction Bad command exception
11(0xb) BadJumpDestination wrong destination jump exception
12(0xc) OutOfGas When the contract is executed, the gas is insufficient / the length of the deployed contract exceeds the maximum limit
13(0xd) OutOfStack stack overflow exception
14(0xe) StackUnderflow stack lower limit overflow exception
15(0xf) NonceCheckFail nonce detection failure exception
16(0x10) BlockLimitCheckFail blocklimit detection failure exception
17(0x11) FilterCheckFail filter detection failure exception
18(0x12) NoDeployPermission Illegal deployment contract exception
19 (0x13) NoCallPermission Illegal call contract exception
20(0x14) NoTxPermission Illegal transaction exception
21(0x15) PrecompiledError precompiled error exception
22(0x16) RevertInstruction revert command exception
23(0x17) InvalidZeroSignatureFormat invalid signature format exception
24(0x18) AddressAlreadyUsed Abnormal address occupation
25(0x19) PermissionDenied No permission exception
26(0x1a) CallAddressError The called contract address does not exist
27(0x1b) GasOverflow Gas overflow error
28(0x1c) TxPoolIsFull The transaction pool is full and abnormal
29(0x1d) TransactionRefused Transaction rejected exception
30(0x1e) ContractFrozen The contract is frozen abnormally
31(0x1f) AccountFrozen Account is frozen abnormally
10000(0x2710) AlreadyKnown The transaction is already in the transaction pool
10001(0x2711) AlreadyInChain The transaction has been on the chain abnormally
10002(0x2712) InvalidChainId Invalid chain id exception
10003(0x2713) InvalidGroupId Invalid group ID exception
10004(0x2714) RequestNotBelongToTheGroup Request does not belong to group exception
10005(0x2715) MalformedTx Transaction format error
10006(0x2716) OverGroupMemoryLimit Exceeded group memory limit exception

 

FISCO BCOS complete error code description please refer to here.

1. Out of gas
problem description:

The transaction receipt status value is 0xc, and the error description is out-of-gas during EVM execution. Possible reasons for this error:

The contract logic is more complicated.
The contract logic problem, the array structure is not initialized, or there is an infinite loop.
Solution:

Use the console to increase the value of tx_gas_limit. Refer to the operation process: Set tx_gas_limit on the console to
check the logic of the contract and fix the loopholes in the contract logic


2. revert instruction
problem description:

交易回滚,交易回执状态值为0x16,错误描述revert instruction,这个错误是因为合约的逻辑问题,包括:

访问调用未初始化的合约
访问初始化为0x0的合约
数组越界访问
除零错误
调用assert、revert
其他错误


解决方法:

检查合约逻辑,修复漏洞。
 

 

交易执行失败 | FISCO BCOS开发问题排查_FISCO_BCOS的博客-CSDN博客

Guess you like

Origin blog.csdn.net/u013288190/article/details/124475330