Motivation
When importdescriptors is given multiple requests, a missing timestamp still fails the whole call with a static error (Missing required timestamp field for key). That does not say which request failed.
#34861 is merged. Other parse failures are returned per item, but a missing or invalid timestamp is still a top-level RPC error from GetImportTimestamp.
Solution
Include the failing request in that error message.
Example
Request
[
{
"desc": "wpkh([abcd1234/84h/1h/0h]tpub.../0/*)#x9abc123",
"timestamp": 1710000000,
"active": true,
"range": [0, 100]
},
{
"desc": "pkh(039dcc64c5c644baf0145a5f7322b16399a01a0ee2a182e3150946fe7946358247)#68u5tv65",
"active": false
}
]
Before
{
"code": -3,
"message": "Missing required timestamp field for key"
}
After
{
"code": -3,
"message": "Missing required timestamp field for import request: {\"desc\":\"pkh(039dcc64c5c644baf0145a5f7322b16399a01a0ee2a182e3150946fe7946358247)#68u5tv65\",\"active\":false}"
}