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.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
coin | string | ✓ | - | The name of the coin for the history request |
from_id | string | ✗ | - | 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 |
limit | number | ✗ | 10 | Limits the number of returned transactions; ignored if max = true |
max | bool | ✗ | false | Whether to return all available records; defaults to false |
page_number | number | ✗ | - | Komodo DeFi Framework API will return limit swaps from the selected page; this param will be ignored if from_id is set. |
Parameter | Type | Description |
---|---|---|
current_block | number | The number of the latest block of coin blockchain |
from_id | string | The from_id specified in the request; this value is null if from_id was not set |
limit | number | The 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_number | number | The page_number that was set in the request |
skipped | number | The 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_status | object | A standard SyncStatus object. Provides the information that helps to track the progress of transaction history preloading at background |
total | number | The total number of transactions available |
total_pages | number | Total pages available with the selected limit |
transactions | array of objects | Transactions 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"
}