On this page

latest contributor to this doc

Last Edit:

@smk762

ZHTLC Coin Transaction 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 trasaction memos will not be displayed in output, though they can be added to outgoing transactions with the task::withdraw methods.

StructureTypeDescription
coinstringTicker of the coin to get history for.
limitintegerOptional. Limits the number of returned transactions. Defaults to 10. Ignored if max = true.
paging_options.FromIdstringOptional. 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.PageNumberintegerOptional. Komodo DeFi Framework API will return limit swaps from the selected page. Ignored if FromId .

StructureTypeDescription
transactionsarray of objectstransactions data
from_idstringthe from_id specified in the request; this value is null if from_id was not set
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
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)
totalnumberthe total number of transactions available
page_numbernumberthe page_number that was set in the request
total_pagesnumbertotal pages available with the selected limit
current_blocknumberthe number of the latest block of coin blockchain
sync_statusobjectA standard SyncStatus object. Provides the information that helps to track the progress of transaction history preloading at background

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
    }
  }
}

{
  "mmrpc": "2.0",
  "result": {
    "coin": "ARRR",
    "target": {
      "type": "iguana"
    },
    "current_block": 2228711,
    "transactions": [
      {
        "tx_hash": "b7e8307778d7d61ebb2ebc7a130661ef6fbeb66ee5d15d0f84a3bfce3ebad5a1",
        "from": [
          "zs1e3puxpnal8ljjrqlxv4jctlyndxnm5a3mj5rarjvp0qv72hmm9caduxk9asu9kyc6erfx4zsauj"
        ],
        "to": [
          "zs1e3puxpnal8ljjrqlxv4jctlyndxnm5a3mj5rarjvp0qv72hmm9caduxk9asu9kyc6erfx4zsauj"
        ],
        "spent_by_me": "17.65495855",
        "received_by_me": "17.65494855",
        "my_balance_change": "-0.00001000",
        "block_height": 2224011,
        "confirmations": 4701,
        "timestamp": 1673018341,
        "transaction_fee": "0.00001",
        "coin": "ARRR",
        "internal_id": 26
      },
      {
        "tx_hash": "967deb0a8cbce0c1f0ba20deee7a955e1a82bd1173bb3dd15cc95f03738ca65c",
        "from": [
          "zs1e3puxpnal8ljjrqlxv4jctlyndxnm5a3mj5rarjvp0qv72hmm9caduxk9asu9kyc6erfx4zsauj"
        ],
        "to": [
          "zs10ah73fpudlecg678jmqjdyeym5fgccvjytqry533rq2w04dekenxe8ekt349s3lelmlss3j4u9q",
          "zs1e3puxpnal8ljjrqlxv4jctlyndxnm5a3mj5rarjvp0qv72hmm9caduxk9asu9kyc6erfx4zsauj"
        ],
        "spent_by_me": "20.65496855",
        "received_by_me": "17.65495855",
        "my_balance_change": "-3.00001000",
        "block_height": 2196913,
        "confirmations": 31799,
        "timestamp": 1671100306,
        "transaction_fee": "0.00001",
        "coin": "ARRR",
        "internal_id": 25
      }
    ],
    "sync_status": {
      "state": "Finished"
    },
    "limit": 2,
    "skipped": 2,
    "total": 28,
    "total_pages": 14,
    "paging_options": {
      "PageNumber": 2
    }
  },
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "TKL",
  "error_path": "my_tx_history_v2",
  "error_trace": "my_tx_history_v2:523]",
  "error_type": "NotSupportedFor",
  "error_data": "TKL",
  "id": null
}

{
  "mmrpc": "2.0",
  "error": "ZOMBIE",
  "error_path": "my_tx_history_v2.lp_coins",
  "error_trace": "my_tx_history_v2:521] lp_coins:2849]",
  "error_type": "CoinIsNotActive",
  "error_data": "ZOMBIE",
  "id": null
}