monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
9.05k stars 3.13k forks source link

It is a out transfer, but I get a in transfer from 'get_transfers' api #9398

Open chenxiange opened 4 months ago

chenxiange commented 4 months ago

version: v0.18.3.3 - monero-wallet-rpc

tx_hash: 70f39ea6e6cbfa70519897e510897511a746409576a04e99282ade2809d621b6

截屏2024-07-12 11 10 48

It is a out transfer, but I get a in type transfer from rpc 'get_transfers', and the balance is wrong!

{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "in": [{
      "address": "49uPzR1BdjDepK8FvBrzCzLNwwCexMiuBZUyEhyZztbZK1x1tFpRHDEfRUCjg1jF7oQQbSDX5kHAD8yiFWPZk5utC5ULoo1",
      "amount": 31855520000,
      "amounts": [31855520000],
      "confirmations": 8505,
      "double_spend_seen": false,
      "fee": 44480000,
      "height": 3184682,
      "locked": false,
      "note": "",
      "payment_id": "01620eed8c5b5326",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 1,
      "timestamp": 1719996295,
      "txid": "8aa4320dbb20c3703ce300cd0170439c7e0dedd0c188fb6f4c2e789a9fc40fa9",
      "type": "in",
      "unlock_time": 0
    },{
      "address": "49uPzR1BdjDepK8FvBrzCzLNwwCexMiuBZUyEhyZztbZK1x1tFpRHDEfRUCjg1jF7oQQbSDX5kHAD8yiFWPZk5utC5ULoo1",
      "amount": 18794060000,
      "amounts": [18794060000],
      "confirmations": 2299,
      "double_spend_seen": false,
      "fee": 30680000,
      "height": 3190888,
      "locked": false,
      "note": "",
      "payment_id": "9647ddb237173184",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 1,
      "timestamp": 1720751902,
      "txid": "70f39ea6e6cbfa70519897e510897511a746409576a04e99282ade2809d621b6",
      "type": "in",
      "unlock_time": 0
    },{
      "address": "49uPzR1BdjDepK8FvBrzCzLNwwCexMiuBZUyEhyZztbZK1x1tFpRHDEfRUCjg1jF7oQQbSDX5kHAD8yiFWPZk5utC5ULoo1",
      "amount": 30824740000,
      "amounts": [30824740000],
      "confirmations": 2309,
      "double_spend_seen": false,
      "fee": 30780000,
      "height": 3190878,
      "locked": false,
      "note": "",
      "payment_id": "0a3256bf98512ab8",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 1,
      "timestamp": 1720750862,
      "txid": "54e0f2deb8761cdb6abfc83db2d55d9719e93aaecb7e750d5d7f5162a229e247",
      "type": "in",
      "unlock_time": 0
    },{
      "address": "49uPzR1BdjDepK8FvBrzCzLNwwCexMiuBZUyEhyZztbZK1x1tFpRHDEfRUCjg1jF7oQQbSDX5kHAD8yiFWPZk5utC5ULoo1",
      "amount": 1000000000,
      "amounts": [1000000000],
      "confirmations": 12099,
      "double_spend_seen": false,
      "fee": 44400000,
      "height": 3181088,
      "locked": false,
      "note": "",
      "payment_id": "0000000000000000",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 1,
      "timestamp": 1719572388,
      "txid": "67e0321833dadb7507816656c904f50d4bc9a0caf2b71737f0a6fccf56f69a50",
      "type": "in",
      "unlock_time": 0
    },{
      "address": "49uPzR1BdjDepK8FvBrzCzLNwwCexMiuBZUyEhyZztbZK1x1tFpRHDEfRUCjg1jF7oQQbSDX5kHAD8yiFWPZk5utC5ULoo1",
      "amount": 39900000000,
      "amounts": [39900000000],
      "confirmations": 63786,
      "double_spend_seen": false,
      "fee": 30680000,
      "height": 3129401,
      "locked": false,
      "note": "",
      "payment_id": "0000000000000000",
      "subaddr_index": {
        "major": 0,
        "minor": 0
      },
      "subaddr_indices": [{
        "major": 0,
        "minor": 0
      }],
      "suggested_confirmations_threshold": 1,
      "timestamp": 1713366963,
      "txid": "d39e5b2774f89246eaf4944ffc62df712c397dba862d22a307469d1dfd9ff4f0",
      "type": "in",
      "unlock_time": 0
    }]
  }
}
selsta commented 4 months ago

Are these the same two wallets?

chenxiange commented 4 months ago

Are these the same two wallets?

A GUI wallet, and a read only wallet generate by the view key!

selsta commented 4 months ago

Did you import key images to the view only wallet?