> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resq.software/llms.txt
> Use this file to discover all available pages before exploring further.

# Record a proof-of-delivery on the Solana blockchain.



## OpenAPI

````yaml /specs/infrastructure.json post /solana/delivery
openapi: 3.1.0
info:
  title: resq-api
  description: ''
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  version: 0.1.0
servers: []
security: []
tags:
  - name: resq-backend
    description: ResQ Infrastructure API
  - name: auth
    description: Authentication endpoints
  - name: incidents
    description: Incident management endpoints
  - name: evidence
    description: Evidence management endpoints
  - name: blockchain
    description: Blockchain query endpoints
  - name: solana
    description: Solana program endpoints (PoD + airspace)
paths:
  /solana/delivery:
    post:
      tags:
        - solana
      summary: Record a proof-of-delivery on the Solana blockchain.
      operationId: record_delivery
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecordDeliveryRequest'
        required: true
      responses:
        '200':
          description: Delivery recorded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SolanaTransactionResponse'
components:
  schemas:
    RecordDeliveryRequest:
      type: object
      required:
        - drone_pda
        - airspace_pda
        - ipfs_cid
        - latitude
        - longitude
        - altitude_m
        - delivered_at
      properties:
        drone_pda:
          type: string
          description: Base58 drone PDA
        airspace_pda:
          type: string
          description: Base58 airspace PDA
        ipfs_cid:
          type: string
          description: IPFS CID of delivery evidence
        latitude:
          type: number
          format: double
        longitude:
          type: number
          format: double
        altitude_m:
          type: integer
          format: uint32
        delivered_at:
          type: integer
          format: int64
          description: Unix timestamp
    SolanaTransactionResponse:
      type: object
      required:
        - signature
        - slot
        - confirmation
        - fee_lamports
      properties:
        signature:
          type: string
          description: Base58-encoded transaction signature
        slot:
          type: integer
          format: uint64
          description: Slot number
        confirmation:
          type: string
          description: Confirmation status
        fee_lamports:
          type: integer
          format: uint64
          description: Transaction fee in lamports

````