Skip to content

Commit

Permalink
Add error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Jul 23, 2024
1 parent 7628a38 commit 83f94f1
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 02.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ A useful flow is:
- For all new keyset returned here which we don't have yet, get it using `GET /v1/keys/{keyset_id}` and store it
- If any of the keysets has changed its `active` flag, update it in the db and use the keyset accordingly

## Errors

| Code | Description |
|--------|------------------------------------|
| 11002 | Insufficant fee included |
| 11003 | Fee over paid |
| 12001 | Keyset is not known |

[00]: 00.md
[01]: 01.md
[02]: 02.md
Expand Down
7 changes: 7 additions & 0 deletions 03.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ If successful, `Bob` will respond with a `PostSwapResponse`
}
```

## Errors

| Code | Description |
|--------|-------------------------------------------|
| 11001 | Token is already spent |
| 10002 | Blinded message of output already signed |

[00]: 00.md
[01]: 01.md
[02]: 02.md
Expand Down
11 changes: 11 additions & 0 deletions 04.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,17 @@ Example `MintMethodSetting`:
}
```

## Errors

| Code | Description |
|--------|-------------------------------------------|
| 10002 | Blinded message of output already signed |
| 11005 | Unit in request is not supported |
| 20001 | Quote request is not paid |
| 20002 | Tokens have already been issued for quote |
| 20003 | Minting is disabled |


[00]: 00.md
[01]: 01.md
[02]: 02.md
Expand Down
11 changes: 11 additions & 0 deletions 05.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,17 @@ Example `MeltMethodSetting`:
}
```

## Errors

| Code | Description |
|--------|-------------------------------------------|
| 10002 | Blinded message of output already signed |
| 11001 | Token is already spent |
| 11005 | Unit in request is not supported |
| 20005 | Quote is pending |
| 20006 | Invoice already paid |


[00]: 00.md
[01]: 01.md
[02]: 02.md
Expand Down

0 comments on commit 83f94f1

Please sign in to comment.