details method
Returns details of the provided address or addresses
- If
addresses
isString
, it will returnMap
with address details. - If
addresses
isList
of Strings andreturnAsMap
is true, it will returnMap
with cashAddress used as keys andMap
with address details in values. - If
addresses
isList
of Strings andreturnAsMap
is false, it will returnList
with address details sorted in the same order as the addresses provided. - Otherwise it will throw
FormatException
See https://developer.bitcoin.com/bitbox/docs/address#details for details about returned format. However note, that processing from array to map is done on the library side
Implementation
static Future<dynamic> details(addresses, [returnAsMap = false]) async =>
await _sendRequest("details", addresses, returnAsMap);