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

# Solana JSON-RPC proxy (sendTransaction)

> JSON-RPC 2.0 endpoint mirroring Solana's HTTP RPC. Currently supports only `sendTransaction`.
The encoded transaction is forwarded to the LP-Agent priority RPC; the signature is returned
as soon as the priority RPC accepts it (the rotating RPC pool is fanned out to in the
background). Behavior matches https://solana.com/docs/rpc/http/sendtransaction — the client
is responsible for polling confirmation.

On success the response is HTTP 200 with a `result` field. On failure the response is HTTP 400
with a JSON-RPC `error` envelope (invalid request, unsupported method, bad params, decode failure, or upstream error).




## OpenAPI

````yaml /api-reference/openapi.json post /rpc
openapi: 3.0.0
info:
  title: LP Agent Open API
  version: 1.0.0
  description: |+
    Public API for LP Agent

    **Authentication**

    All endpoints require an API key passed via the `x-api-key` header.

servers:
  - url: https://api.lpagent.io/open-api/v1
    description: Production
security:
  - apiKeyAuth: []
tags: []
paths:
  /rpc:
    post:
      tags:
        - RPC
      summary: Solana JSON-RPC proxy (sendTransaction)
      description: >
        JSON-RPC 2.0 endpoint mirroring Solana's HTTP RPC. Currently supports
        only `sendTransaction`.

        The encoded transaction is forwarded to the LP-Agent priority RPC; the
        signature is returned

        as soon as the priority RPC accepts it (the rotating RPC pool is fanned
        out to in the

        background). Behavior matches
        https://solana.com/docs/rpc/http/sendtransaction — the client

        is responsible for polling confirmation.


        On success the response is HTTP 200 with a `result` field. On failure
        the response is HTTP 400

        with a JSON-RPC `error` envelope (invalid request, unsupported method,
        bad params, decode failure, or upstream error).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                id:
                  description: Request id, echoed back in the response
                  oneOf:
                    - type: number
                    - type: string
                method:
                  type: string
                  enum:
                    - sendTransaction
                params:
                  type: array
                  minItems: 1
                  maxItems: 2
                  description: '[transaction (encoded string), config? (object)]'
                  items: {}
      responses:
        '200':
          description: >-
            Success — JSON-RPC envelope with `result` set to the transaction
            signature (base58).
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  id:
                    oneOf:
                      - type: number
                      - type: string
                  result:
                    type: string
                    description: Transaction signature (base58)
        '400':
          description: >-
            Validation or upstream failure — JSON-RPC envelope with the `error`
            field populated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  id:
                    oneOf:
                      - type: number
                      - type: string
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                      data:
                        description: Optional structured details
                        nullable: true
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````