Skip to main content

Common RPC errors

Common errors

Method not found

{
"jsonrpc": "2.0",
"error": {
"code": -32601,
"message": "Method not found"
},
"id": "15922956697249514502"
}

Lacking parameters

{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params: invalid length 0, expected a tuple of size 1."
},
"id": "15922956697249514502"
}

Passing extra parameters

{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params: invalid length 2, expected fewer elements in array."
},
"id": "15922956697249514502"
}

Invalid base32 address passed

{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params: Invalid base32 address: input net8888:aak2rra2njvd77ezwjvx04kkds9fzagfe6xm1vavv4dd error invalid checksum (actual 1122 != 0)."
},
"id": "15922956697249514502"
}

Invalid block/transaction hash passed

{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params: invalid length 65, expected a (both 0x-prefixed or not) hex string with length of 64."
},
"id": "15922956697249514502"
}

Estimate error

{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Can not estimate: transaction execution failed, all gas will be charged (execution error: VmError(OutOfGas))"
},
"id": "15922956697249514502"
}