get_recent_txs_and_info2
Returns wallet history of transactions V2(post-zarcanum version)
URL: http:://127.0.0.1:11211/json_rpc
Request:
{
  "id": 0,
  "jsonrpc": "2.0",
  "method": "get_recent_txs_and_info2",
  "params": {
    "count": 100,
    "exclude_mining_txs": false,
    "exclude_unconfirmed": false,
    "offset": 0,
    "order": "FROM_END_TO_BEGIN",
    "update_provision_info": true
  }
}
Request description:
    "count": How many items to fetch, if items fetched is less then count, then it enumeration is over
    "exclude_mining_txs": Exclude mining/staking transactions from results(last_item_index should be used for subsequential calls)
    "exclude_unconfirmed": Do not include uncomfirmed transactions in results (it also not included is offset is non zero)
    "offset": Offset from what index to start fetching transfers entries(if filters are used then last_item_index could be used from previous call)
    "order": Order: "FROM_BEGIN_TO_END" or "FROM_END_TO_BEGIN"
    "update_provision_info": If update pi is required, could be false only if need to optimize performance(appliable for a veru big wallets)
Response:
{
  "id": 0,
  "jsonrpc": "2.0",
  "result": {
    "last_item_index": 1,
    "pi": {
      "balance": 100000000000,
      "curent_height": 121212,
      "transfer_entries_count": 3,
      "transfers_count": 1,
      "unlocked_balance": 90000000000
    },
    "total_transfers": 1,
    "transfers": [{
      "ado": {
        "operation_type": 1,
        "opt_amount_commitment": "5688b56a5b4fa562e679ccaadd697463498a66de4f1760b2cd40f11c3a00a7a8",
        "opt_asset_id": "cc4e69455e63f4a581257382191de6856c2156630b3fba0db4bdd73ffcfb36b6",
        "version": 2
      },
      "comment": "Comment here",
      "contract": [{
        "cancel_expiration_time": 0,
        "contract_id": "0000000000000000000000000000000000000000000000000000000000000000",
        "expiration_time": 0,
        "height": 0,
        "is_a": false,
        "payment_id": "",
        "private_detailes": {
          "a_addr": "ZxBiDtnzhro111111111111111111111111111111111111111111111111111111111111111111111111111111116xzE1X",
          "a_pledge": 0,
          "b_addr": "ZxBiDtnzhro111111111111111111111111111111111111111111111111111111111111111111111111111111116xzE1X",
          "b_pledge": 0,
          "c": "",
          "t": "",
          "to_pay": 0
        },
        "state": 0,
        "timestamp": 0
      }],
      "employed_entries": {
      },
      "fee": 10000000000,
      "height": 0,
      "is_mining": false,
      "is_mixing": false,
      "is_service": false,
      "payment_id": "00000000ff00ff00",
      "remote_addresses": ["ZxBvJDuQjMG9R2j4WnYUhBYNrwZPwuyXrC7FHdVmWqaESgowDvgfWtiXeNGu8Px9B24pkmjsA39fzSSiEQG1ekB225ZnrMTBp"],
      "remote_aliases": ["roger"],
      "service_entries": [{
        "body": "dcfd7e055a6a3043ea3541a571a57a63e25dcc64e4a270f14fa9a58ac5dbec85dcfd7e055a6a3043ea3541a571a57a63e25dcc64e4a270f14fa9a58ac5dbec85",
        "flags": 0,
        "instruction": "K",
        "security": "d8f6e37f28a632c06b0b3466db1b9d2d1b36a580ee35edfd971dc1423bc412a5",
        "service_id": "C"
      }],
      "show_sender": false,
      "subtransfers": [{
        "amount": 1000000000000,
        "asset_id": "cc608f59f8080e2fbfe3c8c80eb6e6a953d47cf2d6aebd345bada3a1cab99852",
        "is_income": false
      }],
      "timestamp": 1712590951,
      "transfer_internal_index": 12,
      "tx_blob_size": 0,
      "tx_hash": "5509650e12c8f901e6731a2bfaf3abfd64409e3e1366d3d94cd11db8beddb0c3",
      "tx_type": 0,
      "unlock_time": 0
    }]
  }
}
Response description:
    "last_item_index": Last item index
    "pi": Details on wallet balance etc
      "balance": Current balance of native coins
      "curent_height": Current sync height of the wallet
      "transfer_entries_count": Number of UTXO entries in wallet
      "transfers_count": Number of transfers in wallet
      "unlocked_balance": Unlocked balance oof native coins
    "total_transfers": Total transfers
    "transfers": Transfers
      "ado": "Asset Descriptor Operation" if it was present in transaction
        "operation_type": Asset operation type identifier
        "opt_amount_commitment": (optional) Asset operation amount commitment (register/emit/burn).
        "opt_asset_id": (optional) ID of an asset (emit/burn/update).
        "version": Asset operation type struct version
      "comment": Some human-readable comment
      "contract": Escrow contract if it's part of transaction
      "employed_entries": Mark entries from transaction that was connected to this wallet
      "fee": Transaction fee
      "height": Height of the block that included transaction(0 i  transaction is unconfirmed)
      "is_mining": Tells if this transaction is coinbase transaction(ie generated by PoW mining or by PoS staking)
      "is_mixing": Tells if this transaction using mixins or not(auditble wallets normally don't use mixins)
      "is_service": Tells if this transaction is used as utility by one of Zano services(contracts, ionic swaps, etc)
      "payment_id": HEX-encoded payment id blob, if it was present
      "remote_addresses": Remote addresses of this transfer(destination if it's outgoing transfer or sender if it's incoming transaction)
      "remote_aliases": Aliases for remot addresses, of discovered
      "service_entries": Additional entries that might be stored in transaction but not part of it's consensus
        "body": Hex-encoded body of the attachment
        "flags": Flags that help wallet to automatically process some properties of the attachment(combination of TX_SERVICE_ATTACHMENT_ENCRYPT_BODY=1, TX_SERVICE_ATTACHMENT_DEFLATE_BODY=2, TX_SERVICE_ATTACHMENT_ENCRYPT_BODY_ISOLATE_AUDITABLE=4,TX_SERVICE_ATTACHMENT_ENCRYPT_ADD_PROOF=8 )
        "instruction": Instruction that make sence for this particular service
        "security": Hex-encoded public key of the owner, optional
        "service_id": Service ID, identificator that diferent one service from another
      "show_sender": If sender is included in tx
      "subtransfers": Essential part of transfer entry: amounts that been transfered in this transaction grouped by asset id
        "amount": Amount of asset the had been transfered
        "asset_id": Asset id
        "is_income": Indicates if transfer was income our outgoing
      "timestamp": Timestamp of the block that included transaction in blockchain, 0 for unconfirmed
      "transfer_internal_index": Index of this entry in the wallet's array of transaction's history
      "tx_blob_size": Size of transaction in bytes
      "tx_hash": Transaction ID(hash)
      "tx_type": Could be one of this:  GUI_TX_TYPE_NORMAL=0, GUI_TX_TYPE_PUSH_OFFER=1, GUI_TX_TYPE_UPDATE_OFFER=2, GUI_TX_TYPE_CANCEL_OFFER=3, GUI_TX_TYPE_NEW_ALIAS=4,GUI_TX_TYPE_UPDATE_ALIAS=5,GUI_TX_TYPE_COIN_BASE=6,GUI_TX_TYPE_ESCROW_PROPOSAL=7,GUI_TX_TYPE_ESCROW_TRANSFER=8,GUI_TX_TYPE_ESCROW_RELEASE_NORMAL=9,GUI_TX_TYPE_ESCROW_RELEASE_BURN=10,GUI_TX_TYPE_ESCROW_CANCEL_PROPOSAL=11,GUI_TX_TYPE_ESCROW_RELEASE_CANCEL=12,GUI_TX_TYPE_HTLC_DEPOSIT=13,GUI_TX_TYPE_HTLC_REDEEM=14
      "unlock_time": Unlock time of this transfer (if present)