You have multiple xpubs in your wallet watcher

How to fix the {“status”: 500, “error_code”: 1002, “message”: “You have multiple xpubs in your wallet watcher”}%

curl -X POST https://www.blockonomics.co/api/new_address
-H “Authorization: Bearer myKEY”
-H “Content-Type: application/json”
-d ‘{“reset”: 0, “match_account”: “WHAT INFO WILL BE HERE ??? TO BE ABLE TO MATCH THE STORE I WANT TO USE”}’

Delete the other(s) xpub in the wallet watcher n leave only one xpub

As detailed in our API documentation, you can fix this error by specifying the xPub you want to use in the “match_account” field of your API call.

I want to use it for two project.

I have tried that same thing
curl -X POST https://www.blockonomics.co/api/new_address
-H “Authorization: Bearer myapikey”
-H “Content-Type: application/json”
-d ‘{“reset”: 0, “match_account”: “myxpub”}’

{“status”: 500, “error_code”: 1002, “message”: “You have multiple xpubs in your wallet watcher”}%

Hi @web6853, please note that you have to provide match_account as query parameter and not in POST data. so following should work:

curl -X POST 'https://www.blockonomics.co/api/new_address?match_account=myxpub&reset=0'
-H “Authorization: Bearer myapikey”
-H “Content-Type: application/json”
-d ‘’