---
title: "GetTransactionHistory"
method: POST
path: "/rpc/Indexer/GetTransactionHistory"
tags: ["public"]
---

# GetTransactionHistory

`POST /rpc/Indexer/GetTransactionHistory`

History of mined transactions for the account which includes a list of token transfers (sent/recieved) and sent transactions from a Sequence wallet

## Request body

- IndexerGetTransactionHistoryRequest
  - `filter` TransactionHistoryFilter
    - `accountAddress` string
    - `contractAddress` string
    - `accountAddresses` string[] — []string
    - `contractAddresses` string[] — []string
    - `transactionHashes` string[] — []string
    - `metaTransactionIDs` string[] — []string
    - `fromBlock` number
    - `toBlock` number
    - `tokenID` string
  - `page` Page
    - `pageSize` number
    - `page` number
    - `more` boolean
    - `totalRecords` number
    - `column` string
    - `before` object
    - `after` object
    - `sort` SortBy[] — []SortBy
      - `column` string, required
      - `order` 'DESC' | 'ASC', required — Represented as uint32 on the server side
  - `includeMetadata` boolean
  - `metadataOptions` MetadataOptions
    - `verifiedOnly` boolean
    - `unverifiedOnly` boolean
    - `includeContracts` string[] — []string

## Response `200`

OK

- IndexerGetTransactionHistoryResponse
  - `page` Page
    - `pageSize` number
    - `page` number
    - `more` boolean
    - `totalRecords` number
    - `column` string
    - `before` object
    - `after` object
    - `sort` SortBy[] — []SortBy
      - `column` string, required
      - `order` 'DESC' | 'ASC', required — Represented as uint32 on the server side
  - `transactions` Transaction[] — []Transaction
    - `txnHash` string, required
    - `blockNumber` number, required
    - `blockHash` string, required
    - `chainId` number, required
    - `metaTxnID` string
    - `transfers` TxnTransfer[] — []TxnTransfer
      - `transferType` 'UNKNOWN' | 'SEND' | 'RECEIVE', required — Represented as uint32 on the server side
      - `contractAddress` string, required
      - `contractType` 'UNKNOWN' | 'ERC20' | 'ERC721' | 'ERC1155', required — Represented as uint16 on the server side
      - `from` string, required
      - `to` string, required
      - `tokenIds` string[] — []string
      - `amounts` string[], required — []string
      - `logIndex` number, required
      - `contractInfo` ContractInfo
        - `chainId` number, required
        - `address` string, required
        - `name` string, required
        - `type` string, required
        - `symbol` string, required
        - `decimals` number
        - `logoURI` string, required
        - `deployed` boolean, required
        - `bytecodeHash` string, required
        - `extensions` ContractInfoExtensions, required
          - `link` string, required
          - `description` string, required
          - `categories` string[], required — []string
          - `ogImage` string, required
          - `ogName` string, required
          - `originChainId` number, required
          - `originAddress` string, required
          - `blacklist` boolean, required
          - `verified` boolean, required
          - `verifiedBy` string, required
          - `featured` boolean, required
        - `contentHash` number, required
        - `updatedAt` string, required
        - `notFound` boolean, required
        - `queuedAt` string
        - `status` 'NOT_AVAILABLE' | 'STALE' | 'AVAILABLE', required — Represented as uint32 on the server side
      - `tokenMetadata` object — map<string,TokenMetadata>
    - `timestamp` string, required

## Other responses

- `4XX` — Client error
- `5XX` — Server error

---

[API](https://skmtc.dev/sequence/apis/analytics-api.md) · [All operations](https://skmtc.dev/sequence/apis/analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sequence/analytics-api/revisions/12db1459a050/schema)
