details method

Future details (dynamic addresses, [ dynamic returnAsMap = false ])

Returns details of the provided address or addresses

  • If addresses is String, it will return Map with address details.
  • If addresses is List of Strings and returnAsMap is true, it will return Map with cashAddress used as keys and Map with address details in values.
  • If addresses is List of Strings and returnAsMap is false, it will return List 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);