RPC Error Messages¶
Wallet¶
Account Not Found¶
{
code: -20001,
message: "Account Not Found",
data: <address>
}
Description¶
Error returned when an account has not been found for a given address.
Code¶
-20001
Data¶
address
-string
: Address of the queried account.
Invalid Password¶
{
code: -20002,
message: "Invalid Password",
data: <address>
}
Description¶
Returned when the user attempts to unlock an account with an invalid password.
Code¶
-20002
Data¶
address
-string
: Address of the account the user attempted to unlock.
Transactions¶
Invalid Transaction Encoding¶
{
code: -20004,
message: "Invalid Transaction Encoding"
}
Description¶
Returned when a user attempts to submit an incorrectly encoded transaction.
Code¶
-20004
Invalid Transaction¶
{
code: -20005,
message: "Invalid Transaction"
}
Description¶
Returned when a user submits a transaction that executes incorrectly.
Code¶
-20005
State Queries¶
Invalid State Query¶
{
code: -20006,
message: "Invalid State Query"
}
Description¶
Returned when the user attempts to make an invalid state query.
Code¶
-20006