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

> Broadcast a signed Bitcoin transaction to the network for confirmation and inclusion in the blockchain.

# Transaction



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json post /tx
openapi: 3.0.3
info:
  title: Bitcoin - Esplora API
  version: 1.0.0
  description: >
    OpenAPI spec for core Esplora endpoints: blocks, transactions, addresses,
    mempool, fees, UTXO data and more.
servers:
  - url: https://xbt-mainnet.gomaestro-api.org/v0/esplora
  - url: https://xbt-testnet.gomaestro-api.org/v0/esplora
security:
  - api-key: []
paths:
  /tx:
    post:
      tags:
        - Transactions
      summary: Transaction
      description: >-
        Broadcast a raw transaction to the network. The transaction should be
        provided as hex in the request body. The txid will be returned on
        success.
      requestBody:
        description: Hex-encoded raw transaction data.
        required: true
        content:
          text/plain:
            schema:
              type: string
              example: 02000000000101c3...
      responses:
        '200':
          description: Returns the transaction ID (txid) if successfully broadcast.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BroadcastResponse'
              examples:
                success:
                  value:
                    txid: 4d1b9a....
        '400':
          description: Invalid transaction format or missing body.
        '500':
          description: Internal server error while processing the transaction.
components:
  schemas:
    BroadcastResponse:
      type: object
      properties:
        txid:
          type: string
          description: Transaction ID of the broadcast transaction.
      required:
        - txid
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````