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

# Get transaction details by signature

> Look up a transaction or user operation by its hash or signature. Supports EVM
(transaction hash or user operation hash), Solana (signature), Bitcoin (txid),
Stellar (hash), and Tron (txid).




## OpenAPI

````yaml /openapi/client-api.yaml get /clients/me/chains/{chain}/transactions/{signature}
openapi: 3.1.0
info:
  title: Portal Client API
  version: '3.0'
  description: >
    The Portal Client API provides endpoints for managing wallets, building
    transactions,

    and interacting with blockchain networks. All endpoints require
    authentication via a

    Client API Key or Client Session Token (CST) passed as a Bearer token.


    ## Base URL

    `https://api.portalhq.io/api/v3`


    ## Authentication

    Include your Client API Key or Client Session Token as a Bearer token in the

    `Authorization` header of every request.


    ## Chain ID Format

    Chain parameters use either friendly names (e.g. `ethereum`, `solana`) or
    CAIP-2 format

    (e.g. `eip155:1`, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). When using
    CAIP-2 format

    in URLs, ensure the colon is URI-encoded (`%3A`).
servers:
  - url: https://api.portalhq.io/api/v3
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Clients
    description: Core client management endpoints
  - name: Wallet
    description: >-
      Read wallet state — balances, NFTs, transaction history, capabilities, and
      transaction details
  - name: Transactions
    description: Build, broadcast, and evaluate blockchain transactions
  - name: Funding
    description: Fund wallets with testnet tokens
  - name: Wallet Shares
    description: Manage signing and backup share pairs
  - name: Delegations
    description: Manage token approvals, revocations, and delegated transfers
  - name: Session Keys
    description: Manage EIP-7702 session keys for smart accounts
  - name: 0x
    description: Token swap endpoints powered by the 0x protocol
  - name: Yield.xyz
    description: Yield opportunities and staking actions powered by Yield.xyz
  - name: Li.Fi
    description: Cross-chain swaps and bridging powered by Li.Fi
  - name: Blockaid
    description: Transaction and address security scanning powered by Blockaid
  - name: Hypernative
    description: >-
      Transaction, address, token, and NFT security scanning powered by
      Hypernative
  - name: Noah
    description: KYC onboarding, payins, and payouts powered by Noah
  - name: EIP-7702
    description: EIP-7702 account type detection and authorization management
  - name: Deprecated
    description: >-
      Legacy endpoints scheduled for removal. Use the newer equivalents listed
      in each endpoint's description.
paths:
  /clients/me/chains/{chain}/transactions/{signature}:
    get:
      tags:
        - Wallet
      summary: Get transaction details by signature
      description: >
        Look up a transaction or user operation by its hash or signature.
        Supports EVM

        (transaction hash or user operation hash), Solana (signature), Bitcoin
        (txid),

        Stellar (hash), and Tron (txid).
      operationId: getTransactionBySignature
      parameters:
        - $ref: '#/components/parameters/chain'
        - name: signature
          in: path
          required: true
          description: >
            The transaction hash, signature, or txid to look up. The format
            depends on the

            chain type (e.g. EVM transaction hash, Solana signature, Bitcoin
            txid).
          schema:
            type: string
      responses:
        '200':
          description: Transaction details retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/TransactionLookupResponse'
                  metadata:
                    type: object
                    properties:
                      chainId:
                        type: string
                        description: CAIP-2 chain identifier (e.g. "eip155:10143")
                      signature:
                        type: string
                        description: The input signature/hash echoed back
        '400':
          description: Bad request - invalid chain format or parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Transaction not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    chain:
      name: chain
      in: path
      required: true
      description: >
        The blockchain chain identifier. Use either a friendly name or CAIP-2
        format.

        When using CAIP-2 format in URLs, ensure the colon (`:`) is URI-encoded
        as `%3A`.


        **Supported chains:**

        - `ethereum` (`eip155:1`)

        - `sepolia` (`eip155:11155111`)

        - `base` (`eip155:8453`)

        - `base-sepolia` (`eip155:84532`)

        - `polygon` (`eip155:137`)

        - `polygon-mumbai` (`eip155:80001`)

        - `celo` (`eip155:42220`)

        - `celo-alfajores` (`eip155:44787`)

        - `monad` (`eip155:143`)

        - `monad-testnet` (`eip155:10143`)

        - `solana` (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`)

        - `solana-devnet` (`solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1`)

        - `tron` (`tron:mainnet`)

        - `tron-nile` (`tron:nile`)

        - `tron-shasta` (`tron:shasta`)

        - `stellar` (`stellar:pubnet`)

        - `stellar-testnet` (`stellar:testnet`)

        - `bitcoin-segwit` (`bip122:000000000019d6689c085ae165831e93-p2wpkh`)

        - `bitcoin-segwit-testnet`
        (`bip122:000000000933ea01ad0ee984209779ba-p2wpkh`)

        - `bitcoin-p2wpkh` (`bip122:000000000019d6689c085ae165831e93-p2wpkh`)

        - `bitcoin-p2wpkh-testnet`
        (`bip122:000000000933ea01ad0ee984209779ba-p2wpkh`)
      schema:
        type: string
      examples:
        ethereum:
          value: ethereum
          summary: Ethereum mainnet (friendly name)
        eip155:
          value: eip155:1
          summary: Ethereum mainnet (CAIP-2)
        solana:
          value: solana
          summary: Solana mainnet (friendly name)
        bitcoin:
          value: bitcoin-segwit
          summary: Bitcoin segwit (friendly name)
  schemas:
    TransactionLookupResponse:
      type: object
      description: >
        Exactly one of the chain-specific fields will be non-null, depending on
        the chain

        namespace of the requested transaction.
      properties:
        evmTransaction:
          $ref: '#/components/schemas/EvmTransactionLookupResult'
          nullable: true
        evmUserOperation:
          $ref: '#/components/schemas/EvmUserOperationLookupResult'
          nullable: true
        solanaTransaction:
          $ref: '#/components/schemas/SolanaTransactionDetails'
          nullable: true
        bitcoinTransaction:
          $ref: '#/components/schemas/BitcoinTransactionLookupResult'
          nullable: true
        stellarTransaction:
          $ref: '#/components/schemas/StellarTransactionLookupResult'
          nullable: true
        tronTransaction:
          $ref: '#/components/schemas/TronTransactionLookupResult'
          nullable: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message describing what went wrong
    EvmTransactionLookupResult:
      type: object
      properties:
        hash:
          type: string
        from:
          type: string
        to:
          type: string
          nullable: true
        value:
          type: string
        nonce:
          type: string
        blockNumber:
          type: string
          nullable: true
        blockHash:
          type: string
          nullable: true
        transactionIndex:
          type: string
          nullable: true
        gas:
          type: string
        gasPrice:
          type: string
          nullable: true
        maxFeePerGas:
          type: string
          nullable: true
        maxPriorityFeePerGas:
          type: string
          nullable: true
        input:
          type: string
        type:
          type: string
        status:
          type: string
          nullable: true
          description: From receipt
        gasUsed:
          type: string
          nullable: true
          description: From receipt
        effectiveGasPrice:
          type: string
          nullable: true
          description: From receipt
        logs:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/EvmTransactionLog'
          description: From receipt
        contractAddress:
          type: string
          nullable: true
          description: From receipt
    EvmUserOperationLookupResult:
      type: object
      properties:
        sender:
          type: string
        nonce:
          type: string
        callData:
          type: string
        callGasLimit:
          type: string
        verificationGasLimit:
          type: string
        preVerificationGas:
          type: string
        maxFeePerGas:
          type: string
        maxPriorityFeePerGas:
          type: string
        signature:
          type: string
        entryPoint:
          type: string
        success:
          type: boolean
          nullable: true
        actualGasCost:
          type: string
          nullable: true
          description: >-
            Actual gas cost in Wei, hex-encoded with `0x` prefix. Only populated
            for AA user operations.
        formattedActualGasCost:
          type: string
          nullable: true
          description: >-
            Actual gas cost in Wei as a base-10 string. Same value as
            `actualGasCost`, formatted for convenience. Only populated for AA
            user operations; reflects the gas sponsored when a gas policy is
            enabled for the chain.
        actualGasUsed:
          type: string
          nullable: true
        receipt:
          $ref: '#/components/schemas/EvmTransactionLookupResult'
          nullable: true
          description: The underlying bundler transaction
    SolanaTransactionDetails:
      type: object
      properties:
        blockTime:
          type: integer
          description: Unix timestamp of the block.
        error:
          type: string
          nullable: true
          description: Transaction error as JSON string, or null if successful.
        signature:
          type: string
          description: Transaction signature.
        status:
          type: string
          description: Transaction status (e.g. "finalized", "confirmed", "processed").
        tokenMint:
          type: string
          nullable: true
          description: SPL token mint address, or null for native SOL transactions.
        transactionDetails:
          type: object
          nullable: true
          properties:
            transaction:
              type: object
              nullable: true
              description: Parsed transaction data.
              properties:
                message:
                  type: object
                  properties:
                    accountKeys:
                      type: array
                      items:
                        type: string
                    header:
                      type: object
                    instructions:
                      type: array
                      items:
                        type: object
                    recentBlockhash:
                      type: string
                signatures:
                  type: array
                  items:
                    type: string
            signatureDetails:
              type: object
              nullable: true
              description: Signature verification details.
              properties:
                blockTime:
                  type: integer
                confirmationStatus:
                  type: string
                error:
                  type: object
                  nullable: true
                memo:
                  type: string
                  nullable: true
                signature:
                  type: string
                slot:
                  type: integer
            metadata:
              type: object
              nullable: true
              description: Additional transaction metadata.
              properties:
                blockTime:
                  type: integer
                  nullable: true
                slot:
                  type: integer
                  nullable: true
                error:
                  type: object
                  nullable: true
                fee:
                  type: integer
                  nullable: true
                innerInstructions:
                  type: array
                  nullable: true
                  items:
                    type: object
                loadedAddresses:
                  type: object
                  nullable: true
                  properties:
                    readonly:
                      type: array
                      items:
                        type: string
                    writable:
                      type: array
                      items:
                        type: string
                logMessages:
                  type: array
                  nullable: true
                  items:
                    type: string
                postBalances:
                  type: array
                  nullable: true
                  items:
                    type: number
                postTokenBalances:
                  type: array
                  nullable: true
                  items:
                    type: object
                preBalances:
                  type: array
                  nullable: true
                  items:
                    type: number
                preTokenBalances:
                  type: array
                  nullable: true
                  items:
                    type: object
                rewards:
                  type: array
                  nullable: true
                  items:
                    type: object
                status:
                  type: object
                  nullable: true
                version:
                  type: string
                  nullable: true
                  description: Transaction version (e.g. "legacy" or a version number)
    BitcoinTransactionLookupResult:
      type: object
      properties:
        txid:
          type: string
        version:
          type: number
        size:
          type: number
        weight:
          type: number
        locktime:
          type: number
        fee:
          type: number
        status:
          type: object
          properties:
            confirmed:
              type: boolean
            blockHeight:
              type: number
              nullable: true
            blockHash:
              type: string
              nullable: true
            blockTime:
              type: number
              nullable: true
        vin:
          type: array
          items:
            type: object
            properties:
              txid:
                type: string
              vout:
                type: number
              prevout:
                type: object
                nullable: true
                properties:
                  scriptpubkey:
                    type: string
                  scriptpubkey_address:
                    type: string
                  value:
                    type: number
              scriptsig:
                type: string
              witness:
                type: array
                items:
                  type: string
              sequence:
                type: number
        vout:
          type: array
          items:
            type: object
            properties:
              scriptpubkey:
                type: string
              scriptpubkey_address:
                type: string
              value:
                type: number
    StellarTransactionLookupResult:
      type: object
      properties:
        id:
          type: string
        hash:
          type: string
        ledger:
          type: number
        createdAt:
          type: string
        sourceAccount:
          type: string
        feeCharged:
          type: string
        maxFee:
          type: string
        operationCount:
          type: number
        successful:
          type: boolean
        memo:
          type: string
          nullable: true
        memoType:
          type: string
        operations:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
              sourceAccount:
                type: string
    TronTransactionLookupResult:
      type: object
      properties:
        txID:
          type: string
        blockNumber:
          type: number
          nullable: true
        blockTimeStamp:
          type: number
          nullable: true
        contractResult:
          type: array
          items:
            type: string
        receipt:
          type: object
          nullable: true
          properties:
            result:
              type: string
              nullable: true
            energyUsage:
              type: number
              nullable: true
            energyUsageTotal:
              type: number
              nullable: true
            netUsage:
              type: number
              nullable: true
        contractType:
          type: string
          nullable: true
        contractData:
          type: object
          nullable: true
          description: Contract call data; structure varies by contract type
        result:
          type: string
          nullable: true
    EvmTransactionLog:
      type: object
      properties:
        address:
          type: string
        topics:
          type: array
          items:
            type: string
        data:
          type: string
        blockNumber:
          type: string
        transactionHash:
          type: string
        logIndex:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Client API Key or Client Session Token (CST). Pass as a Bearer token in
        the

        Authorization header.

````