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

# getMultipleNewAddressProofsV2

> Retorna lotes de provas de compressão ZK (V2) confirmando que um conjunto de novos endereços comprimidos são únicos e disponíveis para criar.

## Parâmetros da Solicitação

<ParamField body="address" type="string" required default="11111118F5rixNBnFLmioWZSYzjjFuAL5dyoDVzhD">
  Uma chave pública Solana representada como uma string em base58.
</ParamField>

<ParamField body="tree" type="string" required default="11111118F5rixNBnFLmioWZSYzjjFuAL5dyoDVzhD">
  Uma chave pública Solana representada como uma string em base58.
</ParamField>


## OpenAPI

````yaml pt-BR/openapi/zk-compression/getMultipleNewAddressProofsV2.yaml POST /
openapi: 3.0.3
info:
  title: photon-indexer
  description: Indexador Solana para compressão geral
  license:
    name: Apache-2.0
  version: 0.50.0
servers:
  - url: https://mainnet.helius-rpc.com
    description: Endpoint RPC do Mainnet
  - url: https://devnet.helius-rpc.com
    description: Endpoint RPC do Devnet
security: []
paths:
  /:
    summary: getMultipleNewAddressProofsV2
    post:
      description: Recupera informações getMultipleNewAddressProofsV2
      operationId: getMultipleNewAddressProofsV2
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  description: A versão do protocolo JSON-RPC.
                  enum:
                    - '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Um ID para identificar a solicitação.
                  default: '1'
                method:
                  type: string
                  description: O nome do método a ser invocado.
                  enum:
                    - getMultipleNewAddressProofsV2
                  default: getMultipleNewAddressProofsV2
                params:
                  type: array
                  default:
                    - address: 11111117qkFjr4u54stuNNUR8fRF8dNhaP35yvANs
                      tree: amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2
                  items:
                    $ref: '#/components/schemas/AddressWithTree'
        required: true
      responses:
        '200':
          description: >-
            Provas de múltiplos endereços novas (V2) do serviço de compressão
            Solana recuperadas com sucesso
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    type: array
                    items:
                      $ref: '#/components/schemas/MerkleContextWithNewAddressProof'
        '400':
          description: >-
            Requisição Inválida - Parâmetros ou estrutura da requisição
            inválidos.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Parâmetros inválidos
                id: '1'
        '401':
          description: Não autorizado - API key inválida ou ausente.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Não autorizado
                id: '1'
        '429':
          description: Muitas Requisições - Limite de taxa excedido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Muitas requisições
                id: '1'
        '500':
          description: Erro Interno do Servidor - Um erro ocorreu no servidor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Erro interno
                id: '1'
        '503':
          description: Serviço Indisponível - O serviço está temporariamente indisponível.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Serviço indisponível
                id: '1'
        '504':
          description: Tempo de Espera do Gateway - O tempo da requisição expirou.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Tempo de espera do gateway
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    AddressWithTree:
      type: object
      required:
        - address
        - tree
      properties:
        address:
          $ref: '#/components/schemas/SerializablePubkey'
        tree:
          $ref: '#/components/schemas/SerializablePubkey'
      additionalProperties: false
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
    MerkleContextWithNewAddressProof:
      type: object
      required:
        - root
        - address
        - lowerRangeAddress
        - higherRangeAddress
        - nextIndex
        - proof
        - merkleTree
        - rootSeq
        - lowElementLeafIndex
      properties:
        address:
          $ref: '#/components/schemas/SerializablePubkey'
        higherRangeAddress:
          $ref: '#/components/schemas/SerializablePubkey'
        lowElementLeafIndex:
          type: integer
          format: int32
          minimum: 0
        lowerRangeAddress:
          $ref: '#/components/schemas/SerializablePubkey'
        merkleTree:
          $ref: '#/components/schemas/SerializablePubkey'
        nextIndex:
          type: integer
          format: int32
          minimum: 0
        proof:
          type: array
          items:
            $ref: '#/components/schemas/Hash'
        root:
          $ref: '#/components/schemas/Hash'
        rootSeq:
          type: integer
          format: int64
          minimum: 0
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: A versão do protocolo JSON-RPC.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: O código de erro.
              example: -32602
            message:
              type: string
              description: A mensagem de erro.
            data:
              type: object
              description: Dados adicionais sobre o erro.
        id:
          type: string
          description: Identificador correspondente à solicitação.
          example: '1'
    SerializablePubkey:
      type: string
      description: Uma chave pública Solana representada como uma string base58.
      default: 11111118F5rixNBnFLmioWZSYzjjFuAL5dyoDVzhD
      example: 11111118F5rixNBnFLmioWZSYzjjFuAL5dyoDVzhD
    Hash:
      type: string
      description: Um hash de 32 bytes representado como uma string base58.
      example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Sua API key da Helius. Você pode obter uma gratuitamente no
        [dashboard](https://dashboard.helius.dev/api-keys).

````