On this page

latest contributor to this doc

Last Edit:

@smk762

My Tx History

API-v1my_tx_history

The my_tx_history method returns the blockchain transactions involving the Komodo DeFi Framework API node's coin address.

The coin that is used must have tx_history set to true in its enable or electrum call.

This method is deprecated and is incompatible with coins activated in HD mode. Use the v2 my_tx_history method instead.

ParameterTypeRequiredDefaultDescription
coinstring-The name of the coin for the history request
from_idstring-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
limitnumber10Limits the number of returned transactions; ignored if max = true
maxboolfalseWhether to return all available records; defaults to false
page_numbernumber-Komodo DeFi Framework API will return limit swaps from the selected page; this param will be ignored if from_id 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 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

my_tx_history

POST
my_tx_history
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "my_tx_history",
  "coin": "DOC",
  "limit": 1,
  "from_id": "1d5c1b67f8ebd3fc480e25a1d60791bece278f5d1245c5f9474c91a142fee8e1"
}

my_tx_history (max = true)

POST
my_tx_history
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "my_tx_history",
  "coin": "DOC",
  "max": true,
  "from_id": "1d5c1b67f8ebd3fc480e25a1d60791bece278f5d1245c5f9474c91a142fee8e1"
}