On this page

latest contributor to this doc

Last Edit:

@smk762

My TX History

API-v2my_tx_history

To use this method, you must activate your coin with "tx_history": true. The response will vary depending on the coin. For ZHTLC coins, you must use the z_coin_tx_history method. For all other coins, use the legacy my_tx_history method.

ParameterTypeRequiredDefaultDescription
coinstring-Ticker of the coin to get history for.
limitinteger10Limits the number of returned transactions. Defaults to 10. Ignored if max = true.
paging_optionsobject-A standard Pagination object.
targetobject-A standard HistoryTarget object.

ParameterTypeDescription
current_blocknumberthe number of the latest block of coin blockchain
from_idstringthe from_id specified in the request; this value is null if from_id was not set
limitnumberthe limit that was set in the request; note that the actual number of transactions can differ from the specified limit (e.g. on the last page)
page_numbernumberthe page_number that was set in the request
skippednumberthe number of skipped records (i.e. the position of from_id in the list + 1); this value is 0 if from_id was not set
sync_statusobjectA standard SyncStatus object. Provides the information that helps to track the progress of transaction history preloading at background
totalnumberthe total number of transactions available
total_pagesnumbertotal pages available with the selected limit
transactionsarray of objectstransactions data

HD Wallet Account Request

POST
my_tx_history
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "my_tx_history",
  "params": {
    "coin": "DOC",
    "limit": 10,
    "paging_options": {
      "PageNumber": 1
    },
    "target": {
      "type": "account_id",
      "account_id": 0
    }
  }
}

HD Wallet Address Request

POST
my_tx_history
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "my_tx_history",
  "params": {
    "coin": "DOC",
    "limit": 1,
    "paging_options": {
      "PageNumber": 1
    },
    "target": {
      "type": "address_id",
      "account_id": 0,
      "chain": "External",
      "address_id": 1
    }
  }
}

BCH Request with Pagination

POST
my_tx_history
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "my_tx_history",
  "mmrpc": "2.0",
  "params": {
    "coin": "BCH",
    "limit": 2,
    "paging_options": {
      "PageNumber": 2
    }
  }
}

TTT-SLP Request with FromId

POST
my_tx_history
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "my_tx_history",
  "mmrpc": "2.0",
  "params": {
    "coin": "BCH",
    "limit": 2,
    "paging_options": {
      "FromId": "433b641bc89e1b59c22717918583c60ec98421805c8e85b064691705d9aeb970"
    }
  }
}

IRIS Request with High Limit

POST
my_tx_history
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "my_tx_history",
  "mmrpc": "2.0",
  "params": {
    "coin": "IRIS",
    "limit": 50
  }
}

ParameterTypeDescription
NoSuchCoinstringThe specified coin was not found or is not activated yet
InvalidHashErrorstringThe specified hash is not valid
TransportstringThe request was failed due to a network error
HashNotExiststringThe specified hash does not exist
InternalErrorstringThe request was failed due to a Komodo DeFi Framework API internal error