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

# Update Payout Wallet

> Update the publisher's USDC payout wallet address — all future x402 pay-per-crawl payments for this publisher will route to the new wallet on Base.

<RequestExample>
  ```bash theme={null}
  curl -X PUT https://xenarch.dev/v1/publishers/me/payout \
    -H "Authorization: Bearer xk_pub_abc123..." \
    -H "Content-Type: application/json" \
    -d '{"payout_wallet": "0xnew_wallet_address..."}'
  ```
</RequestExample>

## Notes

* Wallet changes may have a 48-hour delay before activation (security measure)
* The pending wallet is stored in `payout_wallet_pending` until the delay passes
* Cancel a pending change via `POST /v1/publishers/me/payout/cancel`


## OpenAPI

````yaml PUT /v1/publishers/me/payout
openapi: 3.1.0
info:
  title: Xenarch Platform
  version: 0.1.0
servers: []
security: []
paths:
  /v1/publishers/me/payout:
    put:
      tags:
        - publishers
      summary: Update Payout
      operationId: update_payout_v1_publishers_me_payout_put
      parameters:
        - name: x-confirm-password
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Confirm-Password
        - name: authorization
          in: header
          required: true
          schema:
            type: string
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayoutUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayoutUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PayoutUpdateRequest:
      properties:
        wallet:
          type: string
          pattern: ^0x[0-9a-fA-F]{40}$
          title: Wallet
        network:
          type: string
          title: Network
          default: base
      type: object
      required:
        - wallet
      title: PayoutUpdateRequest
    PayoutUpdateResponse:
      properties:
        confirmed:
          type: boolean
          title: Confirmed
        effective_at:
          type: string
          format: date-time
          title: Effective At
      type: object
      required:
        - confirmed
        - effective_at
      title: PayoutUpdateResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````