On this page

latest contributor to this doc

Last Edit:

@smk762

ZHTLC Coin Transaction History

API-v2z_coin_tx_history

To get the transaction history for ZHTLC coins, you need to use this special method—the v2 my_tx_history and legacy my_tx_history methods are not compatible with ZHTLC coins. Currently, transaction memos will not be displayed in output, though they can be added to outgoing transactions with the task::withdraw methods.

ParameterTypeRequiredDefaultDescription
coinstring-Ticker of the coin to get history for.
limitinteger10Limits the number of returned transactions. Ignored if max = true.
paging_options.FromIdstring-Komodo DeFi Framework API will skip records until it reaches this ID, skipping the from_id as well; track the internal_id of the last displayed transaction to find the value of this field for the next page
paging_options.PageNumberinteger-Komodo DeFi Framework API will return limit swaps from the selected page. Ignored if FromId is set.

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 information to track the progress of transaction history preloading in the background.
totalnumberThe total number of transactions available.
total_pagesnumberTotal pages available with the selected limit.
transactionsarray of objectsTransactions data.

ZHTLC Coin Transaction History

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

ParameterTypeDescription
NotSupportedForstringThe method is not supported for the specified coin
CoinIsNotActivestringThe specified coin is not active