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

# Owner-approved local Anvil vault onboarding

> No public-chain writes. Preparations expire after five minutes. Duplicate submissions refuse. Deposit is an owner operation and never agent action evidence.



## OpenAPI

````yaml /openapi/platform.json post /v1/yield/vault/deposit/prepare
openapi: 3.1.0
info:
  title: GOL Platform API
  description: >-
    Versioned GOL developer and consumer API. Consumer routes are mounted when
    their runtime integrations are configured.
  version: 0.8.0-rc.1
servers:
  - url: http://localhost:4100
    description: Local development
security: []
tags:
  - name: system
  - name: authentication
  - name: projects
  - name: api-keys
  - name: audit
  - name: gas-executions
  - name: gas-policies
  - name: webhooks
paths:
  /v1/yield/vault/deposit/prepare:
    post:
      tags:
        - Yield
      summary: Owner-approved local Anvil vault onboarding
      description: >-
        No public-chain writes. Preparations expire after five minutes.
        Duplicate submissions refuse. Deposit is an owner operation and never
        agent action evidence.
      operationId: prepareYieldVaultDeposit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - chainId
                - account
                - owner
                - profileId
                - vault
                - amount
              properties:
                chainId:
                  type: string
                  enum:
                    - '8453'
                    - '84532'
                account:
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                owner:
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                profileId:
                  pattern: ^0x[0-9a-fA-F]{64}$
                  type: string
                vault:
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                amount:
                  type: string
                  pattern: ^[1-9][0-9]*$
      responses:
        '201':
          description: Verified owner onboarding result
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - draftId
                  - chainId
                  - owner
                  - account
                  - profileId
                  - vault
                  - asset
                  - amount
                  - expiresAt
                  - userOpHash
                  - userOp
                  - calls
                properties:
                  draftId:
                    format: uuid
                    type: string
                  chainId:
                    type: string
                    enum:
                      - '8453'
                      - '84532'
                  owner:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  account:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  profileId:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  vault:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  asset:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  amount:
                    pattern: ^(0|[1-9][0-9]*)$
                    type: string
                  expiresAt:
                    pattern: ^(0|[1-9][0-9]*)$
                    type: string
                  userOpHash:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  userOp:
                    type: object
                    additionalProperties:
                      type: string
                  calls:
                    type: array
                    items:
                      type: object
                      additionalProperties: false
                      required:
                        - to
                        - value
                        - data
                      properties:
                        to:
                          pattern: ^0x[0-9a-fA-F]{40}$
                          type: string
                        value:
                          type: string
                          enum:
                            - '0'
                        data:
                          type: string
                          pattern: ^0x(?:[0-9a-fA-F]{2})*$
        '400':
          description: >-
            Invalid, expired, replayed, unsafe, wrong-chain or unauthorized
            request
        '503':
          description: Local onboarding adapter unavailable

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.