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

# Send blockchain transaction

> 
    Sends a blockchain transaction using Privy's server-side SDK.

    This endpoint:
    - Accepts transaction parameters (to, amount, data, chainSlug)
    - Uses unified auth verification (API keys or JWT tokens)
    - Converts chainSlug to chainId
    - Sends transaction using Privy SDK
    - Returns transaction hash on success

    The transaction is executed from the user's Privy wallet.
  



## OpenAPI

````yaml post /send-transaction
openapi: 3.0.3
info:
  title: Token Layer API
  version: 1.0.0
  description: |2-

          Token Layer is an omnichain token trading platform where users can create and trade tokens across multiple chains.

          This API provides comprehensive access to token operations, trading, earnings,
          blockchain transactions, and portfolio management.

          ## Base URL
          All endpoints are accessed via: `https://api.tokenlayer.network/{endpoint}`

          ## Authentication
          Most endpoints require authentication using an JWT token or API key passed as a Bearer token in the Authorization header.

          ## Rate Limiting
          API calls are rate limited per user. Please implement appropriate backoff strategies.
        
  contact:
    name: Token Layer API Support
    url: https://app.tokenlayer.network
servers:
  - url: https://api.tokenlayer.network/functions/v1
    description: Production server
  - url: https://api.tokenlayer.network/functions/v1
    description: Staging server
security: []
tags:
  - name: Tokens
    description: Token creation, browsing, search, trading, and price operations
  - name: Transactions
    description: Blockchain transactions (send, tip, ownership checks)
paths:
  /send-transaction:
    post:
      tags:
        - Transactions
      summary: Send blockchain transaction
      description: |2-

            Sends a blockchain transaction using Privy's server-side SDK.

            This endpoint:
            - Accepts transaction parameters (to, amount, data, chainSlug)
            - Uses unified auth verification (API keys or JWT tokens)
            - Converts chainSlug to chainId
            - Sends transaction using Privy SDK
            - Returns transaction hash on success

            The transaction is executed from the user's Privy wallet.
          
      operationId: sendTransaction
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendTransactionRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendTransactionResponse'
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid or missing authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    SendTransactionRequest:
      type: object
      properties:
        to:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: Recipient address
          example: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'
        amount:
          type: string
          description: Amount in wei (as string to handle large numbers)
          example: '1000000000000000000'
        data:
          type: string
          pattern: ^0x[a-fA-F0-9]*$
          description: Optional transaction data (hex string)
          example: 0x
        chainSlug:
          $ref: '#/components/schemas/ChainSlug'
      required:
        - to
        - amount
        - chainSlug
    SendTransactionResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        hash:
          type: string
          description: Transaction hash
          example: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'
      required:
        - success
        - hash
    Error:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
      required:
        - success
        - error
      description: Error response
    ChainSlug:
      type: string
      enum:
        - solana
        - solana-devnet
        - arbitrum
        - base
        - base-sepolia
        - avalanche
        - op-bnb
        - bnb
        - bnb-testnet
        - ethereum
        - monad
        - unichain
        - unichain-testnet
        - abstract
        - polygon
        - zksync
        - zksync-testnet
      description: >-
        Blockchain identifier. Supported chains: solana, solana-devnet,
        arbitrum, base, base-sepolia, avalanche, op-bnb, bnb, bnb-testnet,
        ethereum, monad, unichain, unichain-testnet, abstract, polygon, zksync,
        zksync-testnet
      example: base-sepolia
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token or API key

````