my_tx_history
my_tx_history (from_id limit=10 max=false page_number)
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.
Structure | Type | Description |
---|---|---|
coin | string | the name of the coin for the history request |
limit | number | limits the number of returned transactions; ignored if max = true |
max | bool | whether to return all available records; defaults to false |
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 |
page_number | number | Komodo DeFi Framework API will return limit swaps from the selected page; This param will be ignored if from_uuid is set. |
Structure | Type | Description |
---|---|---|
transactions | array of objects | transactions data |
from_id | string | the from_id specified in the request; this value is null if from_id was not set |
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 |
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) |
total | number | the total number of transactions available |
page_number | number | the page_number that was set in the request |
total_pages | number | total pages available with the selected limit |
current_block | number | the number of the latest block of coin blockchain |
sync_status | object | A standard SyncStatus object. Provides the information that helps to track the progress of transaction history preloading at background |
POST
my_tx_history{
"userpass": "RPC_UserP@SSW0RD",
"method": "my_tx_history",
"coin": "DOC",
"limit": 1,
"from_id": "1d5c1b67f8ebd3fc480e25a1d60791bece278f5d1245c5f9474c91a142fee8e1"
}
POST
my_tx_history{
"userpass": "RPC_UserP@SSW0RD",
"method": "my_tx_history",
"coin": "DOC",
"max": true,
"from_id": "1d5c1b67f8ebd3fc480e25a1d60791bece278f5d1245c5f9474c91a142fee8e1"
}