# com.publicdomainrelay.temp.market.submitAccept

> Published by [johnandersen777.bsky.social](https://lexicon.garden/identity/did:plc:5svqtrhheairglgiiyvutzik)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.market.submitAccept)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.market.submitAccept/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5svqtrhheairglgiiyvutzik/com.publicdomainrelay.temp.market.submitAccept/examples)

## Definitions

### `com.publicdomainrelay.temp.market.submitAccept`

**Type**: `procedure`

Submit the AT-URI and CID of an accept record directly to the bidder named in the winning bid's payload, settling the contract: the bidder resolves accept->bid->rfp->vm, provisions the resource, mints a market.receipt record, and returns a strong reference to it plus its submitEvent service DID reference. Must be called via PDS service-proxying (atproto-proxy); the receiver verifies the inter-service auth JWT and requires its issuer to be the DID that authored the referenced accept record. The receiver additionally verifies badge.blue attestations (network.attested.signature) across the contract graph: the accept's inline signature, the bid's and RFP's inline signatures, and the accept payload's remote-attestation binding (receipts.* cid) before provisioning.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `acceptCid` | `string` | Yes | CID of the accept record. |
| `acceptUri` | `string` | Yes | AT-URI of the accept record. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes | Record key (rkey) of the newly minted receipt. |
| `cid` | `string` | Yes | CID of the newly minted receipt record. |
| `uri` | `string` | Yes | AT-URI of the newly minted receipt record. |
| `submitEvent` | `string` | Yes | Service DID reference (did:web:HOST#compute_event) of the bidder's compute-event service, scoped to this receipt's strongRef. The requester calls com.publicdomainrelay.temp.market.submitEvent via PDS service-proxying using this value as the atproto-proxy target. |

#### Errors

- **InvalidRequest**
- **Forbidden**

## Raw Schema

```json
{
  "id": "com.publicdomainrelay.temp.market.submitAccept",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "acceptUri",
            "acceptCid"
          ],
          "properties": {
            "acceptCid": {
              "type": "string",
              "description": "CID of the accept record."
            },
            "acceptUri": {
              "type": "string",
              "description": "AT-URI of the accept record."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "id",
            "uri",
            "cid",
            "submitEvent"
          ],
          "properties": {
            "id": {
              "type": "string",
              "description": "Record key (rkey) of the newly minted receipt."
            },
            "cid": {
              "type": "string",
              "description": "CID of the newly minted receipt record."
            },
            "uri": {
              "type": "string",
              "description": "AT-URI of the newly minted receipt record."
            },
            "submitEvent": {
              "type": "string",
              "description": "Service DID reference (did:web:HOST#compute_event) of the bidder's compute-event service, scoped to this receipt's strongRef. The requester calls com.publicdomainrelay.temp.market.submitEvent via PDS service-proxying using this value as the atproto-proxy target."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Submit the AT-URI and CID of an accept record directly to the bidder named in the winning bid's payload, settling the contract: the bidder resolves accept->bid->rfp->vm, provisions the resource, mints a market.receipt record, and returns a strong reference to it plus its submitEvent service DID reference. Must be called via PDS service-proxying (atproto-proxy); the receiver verifies the inter-service auth JWT and requires its issuer to be the DID that authored the referenced accept record. The receiver additionally verifies badge.blue attestations (network.attested.signature) across the contract graph: the accept's inline signature, the bid's and RFP's inline signatures, and the accept payload's remote-attestation binding (receipts.* cid) before provisioning."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
