Update a Monero view wallet with signed key images
A view-only wallet can detect incoming outputs but needs additional information to recognize their spends. Signed key images from the corresponding spending wallet bring that view up to date.
Transfer the exact export sequence
Use the offset and ordered image/signature pairs produced by export_key_images on the matching wallet. Zero is an example for an export starting at zero. Replace the sample pair before importing into the view wallet. POST this example to /json_rpc on monero-wallet-rpc.
{
"jsonrpc": "2.0",
"id": "guide",
"method": "import_key_images",
"params": {
"offset": 0,
"signed_key_images": [
{
"key_image": "<hex key image>",
"signature": "<signature from matching export>"
}
]
}
}
Read the wallet's spend accounting
The response includes a height and spent and unspent amounts in atomic units. Record the export range and observed height alongside the import. An old or partial export cannot establish the spend status of newly received outputs, even when the import itself succeeds.