-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
I had some problems trying to use the api/addrs/utxo endpoint with the POST method.
The documentation shows the example post content as...
addrs: 2NF2baYuJAkCKo5onjUKEPdARQkZ6SYyKd5,2NAre8sX2povnjy4aeiHKeEh97Qhn97tB1f
... but I got errors (standard JS derps) until I arrived at the format below, (admittedly) very similar, naturally using my own addresses on testnet...
{"addrs":"mogwAXtwzKAEcDodAvKUGCERHjeBD2UW4g,mkyhPcpRsoE6hCZ9Apm8iec8oozC8of8Cp"}
As the unquoted, non-object text failed, I started guessing at JSON formats, and was assuming the value of the addrs property would be an array. Assumption is the mother of something something.
My intention with this raising this is to save someone else from going through the trial and error phase, and also to maybe get this endpoint used more, as it is quite efficient and it is a good alternative to multiple single address calls.
Apologies, this is a tiny point, but I am not trying to troll you guys with pedantry. Thanking you kindly in advance.