> ## 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.

# Post v1projects gas executionsprepare



## OpenAPI

````yaml /openapi/platform.json post /v1/projects/{projectId}/gas-executions/prepare
openapi: 3.1.0
info:
  title: GOL Platform API
  description: >-
    Public API for GOL developer projects, credentials, owner gas policies,
    hosted gas executions, and webhooks.
  version: 0.2.0
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/projects/{projectId}/gas-executions/prepare:
    post:
      tags:
        - gas-executions
      operationId: prepareGasExecution
      parameters:
        - schema:
            format: uuid
            type: string
          in: path
          name: projectId
          required: true
        - schema:
            pattern: ^0x[0-9a-fA-F]{64}$
            type: string
          in: header
          name: idempotency-key
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: false
              type: object
              required:
                - mandateId
                - gasPolicyId
                - recipient
                - amountBaseUnits
                - deadline
              properties:
                mandateId:
                  pattern: ^0x[0-9a-fA-F]{64}$
                  type: string
                gasPolicyId:
                  pattern: ^0x[0-9a-fA-F]{64}$
                  type: string
                recipient:
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                amountBaseUnits:
                  pattern: ^[1-9][0-9]{0,77}$
                  type: string
                deadline:
                  minimum: 1
                  maximum: 281474976710655
                  type: integer
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - actionId
                  - chainId
                  - core
                  - asset
                  - recipient
                  - amountBaseUnits
                  - digest
                  - typedData
                properties:
                  actionId:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  chainId:
                    type: number
                    enum:
                      - 84532
                  core:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  asset:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  recipient:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  amountBaseUnits:
                    type: string
                  digest:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  typedData:
                    additionalProperties: false
                    type: object
                    required:
                      - domain
                      - types
                      - primaryType
                      - message
                    properties:
                      domain:
                        type: object
                        required:
                          - name
                          - version
                          - chainId
                          - verifyingContract
                        properties:
                          name:
                            type: string
                            enum:
                              - GOL Mandate
                          version:
                            type: string
                            enum:
                              - '2'
                          chainId:
                            type: number
                            enum:
                              - 84532
                          verifyingContract:
                            pattern: ^0x[0-9a-fA-F]{40}$
                            type: string
                      types:
                        type: object
                        required:
                          - ActionAuthorization
                        properties:
                          ActionAuthorization:
                            type: array
                            items:
                              type: object
                              required:
                                - name
                                - type
                              properties:
                                name:
                                  type: string
                                type:
                                  type: string
                      primaryType:
                        type: string
                        enum:
                          - ActionAuthorization
                      message:
                        type: object
                        required:
                          - mandateId
                          - actionTag
                          - schemaVersion
                          - actionId
                          - capabilityDigest
                          - deadline
                          - inputHash
                        properties:
                          mandateId:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                          actionTag:
                            type: number
                            enum:
                              - 1
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          actionId:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                          capabilityDigest:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                          deadline:
                            type: integer
                          inputHash:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````