Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document entire HTTP request/response
Browse files Browse the repository at this point in the history
freddiecoleman committed Dec 17, 2024
1 parent b070708 commit 04c9fd9
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions CHIPs/chip-0039.md
Original file line number Diff line number Diff line change
@@ -115,12 +115,18 @@ Fee services should:
6. Service returns complete spend bundle to client
7. Client can verify and submit the transaction

### Example Spend Bundle Modification
### HTTP Request/Response Examples

#### Request

```http
POST /api/fees HTTP/1.1
Content-Type: application/json
```
# Original spend bundle:
{
"coin_spends": [
"network": "mainnet",
"spendBundle": {
"coin_spends": [
{
"coin": {
"parent_coin_info": "0x...",
@@ -134,9 +140,20 @@ Fee services should:
"aggregated_signature": "0x..."
}
# After fee service:
},
"submit": false
}
```

#### Success Response

```http
HTTP/1.1 201 OK
Content-Type: application/json
{
"coin_spends": [
"spendBundle": {
"coin_spends": [
# Original spend
{
"coin": {
@@ -159,6 +176,9 @@ Fee services should:
}
],
"aggregated_signature": "0x..." # Updated to include fee spend
},
"fees": 100000,
"submitted": false
}
```

0 comments on commit 04c9fd9

Please sign in to comment.