Skip to content

Commit bebe27b

Browse files
authored
docs: error codes
Added ErrorCode enum to README with JSON-RPC and relayer error codes.
1 parent 0792f02 commit bebe27b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,35 @@ enum StatusCode {
345345
}
346346
```
347347

348+
#### ErrorCode
349+
350+
```typescript
351+
enum ErrorCode {
352+
// JSON-RPC
353+
ParseError = -32700,
354+
InvalidRequest = -32600,
355+
MethodNotFound = -32601,
356+
InvalidParams = -32602,
357+
InternalError = -32603,
358+
359+
// Relayer
360+
Unauthorized = 4100,
361+
UnsupportedPaymentToken = 4202,
362+
InsufficientPayment = 4200,
363+
InsufficientBalance = 4205,
364+
UnsupportedChain = 4206,
365+
UnknownTransactionId = 4208,
366+
InvalidAuthorizationList = 4210,
367+
SimulationFailed = 4211,
368+
369+
// Bundler
370+
ValidationFailed = -32500,
371+
PaymasterValidationFailed = -32501,
372+
InvalidSignature = -32507,
373+
ExecutionFailed = -32521
374+
}
375+
```
376+
348377
#### PaymentType
349378

350379
```typescript

0 commit comments

Comments
 (0)