JSON RPC SCT ErrorCodes
Sct Error Code
If validation fails when sending an SCT process transaction, it will be receipt status: 0x0
just like evm processing. However, in the case of SCT, since it is a built-in contract, the user can determine by checking the value of errorCode
which validation step failed.
SCT Error Receipt Example
The following is an example of calling the sym_getTransactionReceipt
API when an SCT transaction transfer fails. The errCode is included as shown below.
SCT Error Codes
check the failure status of Receipt with the error code (errCode
) below.
Sct Contract Error Code
1000
( hex:0x3e8
): occurs when a contract does not exist1001
( hex:0x3e9
): incorrect format when creating contract (Name length, Symbol length, etc.)1002
( hex:0x3ea
): contract state value is not correct1003
( hex:0x3eb
): contract owner or creator is, if not
Sct Balance or item insufficient Error Codes
2000
( hex:0x7d0
): insufficient or nonexistent amount of contract account2001
( hex:0x7d1
): insufficient or nonexistent amount of contract allowance
Sct Contract Item Error Codes
3000
( hex:0xbb8
): if the state value of the item is incorrect3001
( hex:0xbb9
): item is not in the correct format3002
( hex:0xbba
): when exceeding the creation time of item
Sct SymId or Citizen Info Error Codes
4000
( hex:0xfa0
): symid is null or does not exist in the parameter.4001
( hex:0xfa1
): when requesting transmission to the same symid in parameter
Sct 50/51 Contract Error Codes
5000
( hex:0x1388
): already registered poll creator5001
( hex:0x1389
): not any poll creators5002
( hex:0x138a
): no proper stake balance5003
( hex:0x138b
): invalid poll state5004
( hex:0x138c
): expired poll state5005
( hex:0x138d
): incorrect sct51 format5006
( hex:0x138e
): insufficient stake to vote5007
( hex:0x138f
): can not change voting decision5008
( hex:0x1390
): sct add poll creators format is incorrect
Last updated